Timer.h 744 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "TimerInterface.h"
  2. class Timer : public TimerInterface {
  3. private:
  4. TimedStatemachineInterface* statemachineSet;
  5. TimedStatemachineInterface* statemachineUnset;
  6. sc_eventid eventSet;
  7. sc_eventid eventUnset;
  8. sc_integer time;
  9. sc_boolean periodic;
  10. public:
  11. Timer();
  12. ~Timer();
  13. void setTimer(TimedStatemachineInterface* statemachine, sc_eventid event, sc_integer time, sc_boolean isPeriodic);
  14. void unsetTimer(TimedStatemachineInterface* statemachine, sc_eventid event);
  15. void cancel();
  16. TimedStatemachineInterface* getStatemachineSet();
  17. TimedStatemachineInterface* getStatemachineUnset();
  18. sc_eventid getEventSet();
  19. sc_eventid getEventUnset();
  20. sc_integer getTime();
  21. sc_boolean isPeriodic();
  22. };