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 #ifndef OSDL_MODEL_H_
00028 #define OSDL_MODEL_H_
00029
00030
00031
00032 #include "OSDLPeriodicalActiveObject.h"
00033 #include "OSDLProgrammedActiveObject.h"
00034 #include "OSDLEngineCommon.h"
00035
00036 #include "Ceylan.h"
00037
00038
00039 #include <string>
00040 #include <list>
00041
00042
00043
00044
00045 namespace OSDL
00046 {
00047
00048
00049
00050 namespace MVC
00051 {
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00074 class OSDL_DLL PeriodicalModel : public Ceylan::Model,
00075 public Engine::PeriodicalActiveObject
00076 {
00077
00078
00079 public:
00080
00081
00082
00106 explicit PeriodicalModel(
00107 Events::Period period = 1,
00108 bool autoRegister = true,
00109 Engine::ObjectSchedulingPolicy policy = Engine::relaxed,
00110 Engine::Weight weight = 1 ) ;
00111
00112
00113
00121 virtual ~PeriodicalModel() throw() ;
00122
00123
00124
00136 virtual const std::string toString(
00137 Ceylan::VerbosityLevels level = Ceylan::high ) const ;
00138
00139
00140 } ;
00141
00142
00143
00144
00152 class OSDL_DLL ProgrammedModel : public Ceylan::Model,
00153 public Engine::ProgrammedActiveObject
00154 {
00155
00156
00157 public:
00158
00159
00160
00185 explicit ProgrammedModel(
00186 const Engine::SimulationTickList & activationTicks,
00187 bool absolutelyDefined = true,
00188 bool autoRegister = true,
00189 Engine::ObjectSchedulingPolicy policy = Engine::relaxed,
00190 Engine::Weight weight = 1 ) ;
00191
00192
00193
00216 explicit ProgrammedModel(
00217 Events::SimulationTick activationTick,
00218 bool absolutelyDefined = true,
00219 bool autoRegister = true,
00220 Engine::ObjectSchedulingPolicy policy = Engine::relaxed,
00221 Engine::Weight weight = 1 ) ;
00222
00223
00224
00232 virtual ~ProgrammedModel() throw() ;
00233
00234
00235
00247 virtual const std::string toString(
00248 Ceylan::VerbosityLevels level = Ceylan::high ) const ;
00249
00250
00251
00252 } ;
00253
00254
00255 }
00256
00257 }
00258
00259
00260
00261 #endif // OSDL_MODEL_H_
00262