CYCLUS
|
The TimeListener class is an inheritable class for any Agent that requires knowlege of ticks and tocks.
The agent should register as a TimeListener with its context from its Deploy method. For Example:
Definition at line 23 of file time_listener.h.
#include <time_listener.h>
Public Member Functions | |
virtual void | Decision () |
virtual void | Tick ()=0 |
virtual void | Tock ()=0 |
Public Member Functions inherited from cyclus::Ider | |
virtual const int | id () const =0 |
Simulation agents do their end-of-timestep decisions in the Decision method.
The decision method allows for agents to make decision based on the operation of facilities during the tick and tock of the current timestep. Facility operations should not occur during this phase.
time | is the current simulation timestep |
Definition at line 44 of file time_listener.h.
Simulation agents do their beginning-of-timestep activities in the Tick method.
time | is the current simulation timestep |
Implemented in cyclus::Institution, and cyclus::Region.
Simulation agents do their end-of-timestep activities in the Tock method.
time | is the current simulation timestep |
Implemented in cyclus::Institution, and cyclus::Region.