1 #ifndef CYCLUS_SRC_TIMER_H_ 2 #define CYCLUS_SRC_TIMER_H_ 23 friend class ::SimInitTest;
92 void RecordInventories(
Agent* a);
110 std::map<int, TimeListener*> tickers_;
113 std::map<int, std::vector<std::pair<std::string, Agent*> > > build_queue_;
116 std::map<int, std::vector<Agent*> > decom_queue_;
121 #endif // CYCLUS_SRC_TIMER_H_
void RegisterTimeListener(TimeListener *agent)
Registers an agent to receive tick/tock notifications every timestep.
boost::shared_ptr< Material > Ptr
std::string name(int nuc)
void Snapshot()
Schedules a snapshot of simulation state to output database to occur at the beginning of the next tim...
The ExchangeManager is designed to house all of the internals involved in executing a resource exchan...
void UnregisterTimeListener(TimeListener *tl)
Removes an agent from receiving tick/tock notifications.
int dur()
Returns the duration of the simulation this Timer's timing.
void Reset()
resets all data (registered listeners, etc.) to empty or initial state
int parent(int nuc, unsigned int rx, std::string z="n")
void Initialize(Context *ctx, SimInfo si)
Sets intial time-related parameters for the simulation.
int time()
Returns the current time, in months since the simulation started.
The TimeListener class is an inheritable class for any Agent that requires knowlege of ticks and tock...
void RunSim()
Runs the simulation.
Container for a static simulation-global parameters that both describe the simulation and affect its ...
A simulation context provides access to necessary simulation-global functions and state...
The abstract base class used by all types of agents that live and interact in a simulation.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
void KillSim()
Schedules the simulation to be terminated at the end of this timestep.
void SchedBuild(Agent *parent, std::string proto_name, int t)
Schedules the named prototype to be built for the specified parent at timestep t. ...
void SchedDecom(Agent *m, int time)
Schedules the given Agent to be decommissioned at the specified timestep t.
Controls simulation timestepping and inter-timestep phases.