00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef __BAPSSOFFPACKER_H__
00031 #define __BAPSSOFFPACKER_H__
00032
00033
00034 #include "FreeSpace.h"
00035
00036
00037 #include <LEDA/string.h>
00038
00039
00040 class BAPSSOFFPacker
00041 {
00042 public:
00043
00044 BAPSSOFFPacker(list<Vessel>& aVesselList,
00045 string aPackAlgo,
00046 int aSectionLength,
00047 Bool aCompPackWidth = FALSE,
00048 Bool aOutput = FALSE);
00049
00050 ~BAPSSOFFPacker();
00051
00052
00053 void Solve();
00054 int GetPackingWidth() const;
00055
00056
00057 private:
00058
00059 Bool mCompPackWidth;
00060 Bool mOutput;
00061 list<Vessel>& mVesselList;
00062 string mPackAlgo;
00063 int mSectionLength;
00064
00065
00066
00067
00068
00069
00070
00071
00072 list<Vessel> FindIV(list<Vessel> & aVesselList,
00073 int aVesIndex);
00074
00075
00076
00077
00078
00079
00080 void FindFS(FreeSpace & aFreeSpace,
00081 list<Vessel> & aIV,
00082 int aSectLength);
00083
00084 };
00085
00086 #endif