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 #include "OSDLModel.h"
00028
00029 #include "OSDLEvents.h"
00030 #include "OSDLScheduler.h"
00031
00032 #include "Ceylan.h"
00033
00034
00035 using std::string ;
00036 using std::list ;
00037
00038 using namespace Ceylan::Log ;
00039
00040
00041 using namespace OSDL::Events ;
00042 using namespace OSDL::Engine ;
00043
00044 using namespace OSDL::MVC ;
00045
00046
00047
00048
00049
00050
00051
00052 PeriodicalModel::PeriodicalModel(
00053 Period period,
00054 bool autoRegister,
00055 ObjectSchedulingPolicy policy,
00056 Weight weight ) :
00057 Model(),
00058 PeriodicalActiveObject( period, autoRegister, policy, weight )
00059 {
00060
00061
00062 }
00063
00064
00065
00066 PeriodicalModel::~PeriodicalModel() throw()
00067 {
00068
00069 }
00070
00071
00072
00073 const string PeriodicalModel::toString( Ceylan::VerbosityLevels level ) const
00074 {
00075
00076 return "OSDL MVC periodical model, which is a "
00077 + Ceylan::Model::toString( level )
00078 + ", and a " + PeriodicalActiveObject::toString( level ) ;
00079
00080 }
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090 ProgrammedModel::ProgrammedModel(
00091 const list<SimulationTick> & triggeringTicks,
00092 bool absolutelyDefined,
00093 bool autoRegister,
00094 ObjectSchedulingPolicy policy,
00095 Weight weight ) :
00096 Model(),
00097 ProgrammedActiveObject( triggeringTicks, absolutelyDefined, autoRegister,
00098 policy, weight )
00099 {
00100
00101
00102 }
00103
00104
00105
00106 ProgrammedModel::ProgrammedModel(
00107 SimulationTick triggerTick,
00108 bool absolutelyDefined,
00109 bool autoRegister,
00110 ObjectSchedulingPolicy policy,
00111 Weight weight ) :
00112 Model(),
00113 ProgrammedActiveObject( triggerTick, absolutelyDefined, autoRegister,
00114 policy, weight )
00115 {
00116
00117
00118 }
00119
00120
00121
00122 ProgrammedModel::~ProgrammedModel() throw()
00123 {
00124
00125 }
00126
00127
00128
00129 const string ProgrammedModel::toString( Ceylan::VerbosityLevels level ) const
00130 {
00131
00132 return "OSDL MVC programmed model, which is a "
00133 + Ceylan::Model::toString( level )
00134 + ", and a " + ProgrammedActiveObject::toString( level ) ;
00135
00136 }
00137