00001 #ifndef __SIMULATION_H__ 00002 #define __SIMULATION_H__ 00003 00004 namespace DiscreteTimeSystems { 00005 class Simulation { 00006 static Simulation *_instance; 00007 00008 int _time; 00009 00010 double _time_step; 00011 00012 Simulation(); 00013 00014 public: 00015 static Simulation *getInstance(); 00016 00017 void setTimeStep(double ts); 00018 00019 double getTime(); 00020 00021 int getStep(); 00022 00023 void advance(); 00024 }; 00025 } 00026 00027 #endif
1.5.1