00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SBroadcastMod.h,v 1.1 2003/01/24 10:04:59 hall Exp $ 00008 00009 Purpose : 00010 00011 * #end# ************************************************************* */ 00012 00013 #ifndef SBROADCASTMOD_H 00014 #define SBROADCASTMOD_H 00015 00016 // system header files 00017 00018 // project header files 00019 #include "SEnvironmentMod.h" 00020 00021 class SBroadcast; 00022 00026 class SBroadcastMod : public SEnvironmentMod { 00027 public: 00028 SBroadcastMod(SBroadcast& env) : _env(env) {}; 00029 virtual ~SBroadcastMod(); 00030 00031 // inherited member function 00035 virtual bool load(std::istream &in); 00038 virtual void save(std::ostream &out) const; 00039 virtual void sample() {}; 00040 00046 virtual void setNumOfMachines(int n); 00052 virtual void setNumOfJobs(int n); 00053 00054 // new member functions 00057 SBroadcast &getBroadcast() { return _env; }; 00058 private: 00059 SBroadcast& _env; 00060 }; 00061 00062 #endif