00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SFlowShopMod.h,v 1.4 2003/01/08 18:57:13 meierb Exp $ 00008 00009 Purpose : 00010 00011 RCS-Log: 00012 $Log: SFlowShopMod.h,v $ 00013 Revision 1.4 2003/01/08 18:57:13 meierb 00014 added randomized release times 00015 00016 Revision 1.1.1.1 2002/12/02 22:26:19 meierb 00017 my_schedule 00018 00019 Revision 1.2 2002/11/10 18:05:42 taeubig 00020 namespace and header include changes 00021 00022 Revision 1.1 2002/08/29 12:59:59 taeubig 00023 Added the sources 00024 00025 Revision 1.1 2000/05/29 19:44:24 taeubig 00026 Moved environment related files into subdirectory env 00027 00028 Revision 1.3 2000/01/13 16:44:00 zoidl 00029 added javadoc comments 00030 00031 Revision 1.2 1999/12/28 23:33:04 zoidl 00032 SShopJob::setNumOfOperations() is dead, long live 00033 SGeneralShopMod::setNumOperations() 00034 00035 Revision 1.1 1999/11/30 16:07:09 zoidl 00036 also flow shops work now 00037 00038 00039 * #end# ************************************************************* */ 00040 00041 #ifndef SFLOWSHOPMOD_H 00042 #define SFLOWSHOPMOD_H 00043 00044 // system header files 00045 00046 // project header files 00047 #include "SGeneralShopMod.h" 00048 #include "../jobs/SShopJob.h" 00049 00050 class SFlowShop; 00051 00052 class SFlowShopMod : public SGeneralShopMod 00053 { 00054 public: 00057 SFlowShopMod(SFlowShop& env) : _env(env) {}; 00058 /* Destructor 00059 */ 00060 virtual ~SFlowShopMod() {}; 00061 00062 // inherited of SEnvironmentMod 00063 00067 virtual void setNumOfMachines(int numMach); 00068 00073 virtual void setNumOfJobs(int jobs); 00074 00075 // inherited of SGeneralShopMod 00079 virtual void setNumOperations(SShopJob& job, int numOps); 00080 00088 virtual void setPartialProcTime(SShopJob& job,int op, int mach, 00089 double partTime); 00090 00091 // inherited of SModifier 00092 00096 virtual bool load(std::istream& in); 00097 00100 virtual void save(std::ostream& out) const; 00101 00102 private: 00103 SFlowShop& _env; 00104 }; 00105 00106 #endif