- added scheduler and other incomplete backend classes

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@319 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
fpaparel 2006-02-12 17:12:54 +00:00
parent 98cc6fb20b
commit e2a0c3f248
21 changed files with 820 additions and 237 deletions

View file

@ -28,7 +28,7 @@
#include "slice.hh"
#include "observed_subject.hh"
#include "simulation_status.hh"
#include "schedulable_list.hh"
#include "schedulable_status.hh"
#include "../templates/smartp.hh"
@ -47,16 +47,17 @@ namespace sgpem
*/
class History;
class SG_DLLEXPORT History : public ObservedSubject {
class SG_DLLEXPORT History : public ObservedSubject
{
public:
memory::smart_ptr<const sgpem::SchedulableStatus> get_scheduled_at(int time);
memory::smart_ptr<const sgpem::SimulationStatus> get_simulation_status_at(int time);
int get_current_time();
void enqueue_slice(sgpem::SimulationStatus status);
void truncate_at(int instant);
memory::smart_ptr<const sgpem::SchedulableStatus> get_scheduled_at(int time) const;
memory::smart_ptr<const sgpem::SchedulableList> get_simulation_status_at(int time) const;
int get_current_time() const;
void enqueue_slice(const sgpem::SchedulableList& status);
void truncate_at(int instant);
static History& getInstance();
static History& get_instance();
private:
History(int); //private constructor. The parameter is discarded