Alex Bikfalvi
SimStream Documentation
Sim.h
00001 #pragma once 00002 00003 #include "SimHandler.h" 00004 #include "SimModel.h" 00005 #include "SimEventList.h" 00006 #include "SimCalls.h" 00007 00008 class CSim : public CSimHandler 00009 { 00010 private: 00011 char* name; 00012 CSimModel* model; 00013 CSimEventList* events; 00014 CSimCalls* calls; 00015 __time time; 00016 00017 public: 00018 CSim(char* name, CSimModel* model); 00019 ~CSim(); 00020 00021 __uint32 Run(time_t& duration); 00022 00023 virtual __time Time(); 00024 virtual void ScheduleEventNow(CSimEvent* evt); 00025 virtual void ScheduleEventAt(__time time, CSimEvent* evt); 00026 virtual void ScheduleEventAfter(__time delay, CSimEvent* evt); 00027 virtual void CancelEvent(__time time, CSimEvent* evt); 00028 virtual void operator()(ICall* call); 00029 };
Last updated: February 8, 2011