00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SJobShopMod.h,v 1.4 2003/01/08 18:57:13 meierb Exp $ 00008 00009 Purpose : 00010 00011 RCS-Log: 00012 $Log: SJobShopMod.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:33 taeubig 00026 Moved environment related files into subdirectory env 00027 00028 Revision 1.6 2000/01/13 16:44:04 zoidl 00029 added javadoc comments 00030 00031 Revision 1.5 2000/01/08 15:18:25 zoidl 00032 workplan is now set with setPartialProcTime 00033 00034 Revision 1.4 2000/01/06 17:17:41 zoidl 00035 allow #mach < #ops , cosmetic changes in save() 00036 00037 Revision 1.3 1999/12/28 23:33:02 zoidl 00038 SShopJob::setNumOfOperations() is dead, long live 00039 SGeneralShopMod::setNumOperations() 00040 00041 Revision 1.2 1999/11/30 16:08:05 zoidl 00042 added const in declaration of setWorkPlan() 00043 00044 Revision 1.1 1999/11/30 00:02:13 zoidl 00045 now job shops work, too 00046 00047 00048 * #end# ************************************************************* */ 00049 00050 #ifndef SJOBSHOPMOD_H 00051 #define SJOBSHOPMOD_H 00052 00053 // system header files 00054 00055 // project header files 00056 #include "SGeneralShopMod.h" 00057 #include "../jobs/SShopJob.h" 00058 00059 class SJobShop; 00060 00064 class SJobShopMod : public SGeneralShopMod 00065 { 00066 public: 00069 SJobShopMod(SJobShop& env) : _env(env) {}; 00070 00073 virtual ~SJobShopMod() {}; 00074 00075 // inherited of SEnvironmentMod 00076 00082 virtual void setNumOfMachines(int mach); 00083 00091 virtual void setNumOfJobs(int jobs); 00092 00093 // inherited of SGeneralShopMod 00094 00100 virtual void setNumOperations(SShopJob& job, int numOps); 00101 00110 virtual void setPartialProcTime(SShopJob& job, int op, int mach, 00111 double partTime) ; 00112 00113 // inherited of SModifier 00114 00118 virtual bool load(std::istream& in); 00121 virtual void save(std::ostream& out) const ; 00122 00123 private: 00124 SJobShop& _env; 00125 }; 00126 00127 #endif