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
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 #ifndef SSINGLE_H
00058 #define SSINGLE_H
00059 #include "SIdentical.h"
00060 #include "SFlowShop.h"
00061 #include "SOpenShop.h"
00062
00068 class SSingle : public virtual SFlowShop, public virtual SIdentical, public virtual SOpenShop {
00069 TYPEINFO3(SSingle, "1", SFlowShop, SIdentical, SOpenShop);
00070 public:
00073 virtual leda_list<int> getMachinesFor(const SShopJob& job, int op) const {
00074 leda_list<int> ret;
00075 ret.append(op);
00076 return ret;
00077 };
00078
00081 virtual SEnvironmentMod& getModifier()
00082 { return _mod; };
00083
00084
00085
00086
00087 virtual double getRemProcTimeOn(SJob& j, const SMachines& m) const
00088 { return SIdentical::getRemProcTimeOn(j, m); };
00089 virtual int getNumOfMachines() const
00090 { return SIdentical::getNumOfMachines(); };
00091 virtual leda_list<int> getAvailOperations(const SShopJob& j) const
00092 { return SFlowShop::getAvailOperations(j); };
00093 virtual double getPartialProcTime(const SShopJob & j, int op,
00094 const SMachines & m) const
00095 { return SFlowShop::getPartialProcTime(j, op, m); };
00096 virtual int getNumOperations(const SShopJob & j) const
00097 { return SFlowShop::getNumOperations(j); };
00098 virtual int getNextOperation(const SShopJob &j) const
00099 { return SFlowShop::getNextOperation(j); };
00100
00101 private:
00103 SFlowShopMod _mod;
00104 };
00105
00106 #endif //SSINGLE_H