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_;
The abstract base class used by all types of agents that live and interact in a simulation.
A simulation context provides access to necessary simulation-global functions and state.
The ExchangeManager is designed to house all of the internals involved in executing a resource exchan...
boost::shared_ptr< Material > Ptr
Container for a static simulation-global parameters that both describe the simulation and affect its ...
The TimeListener class is an inheritable class for any Agent that requires knowlege of ticks and tock...
Controls simulation timestepping and inter-timestep phases.
void KillSim()
Schedules the simulation to be terminated at the end of this timestep.
int time()
Returns the current time, in months since the simulation started.
void Snapshot()
Schedules a snapshot of simulation state to output database to occur at the beginning of the next tim...
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 SchedBuild(Agent *parent, std::string proto_name, int t)
Schedules the named prototype to be built for the specified parent at timestep t.
void Reset()
resets all data (registered listeners, etc.) to empty or initial state
void RunSim()
Runs the simulation.
void RegisterTimeListener(TimeListener *agent)
Registers an agent to receive tick/tock notifications every timestep.
void Initialize(Context *ctx, SimInfo si)
Sets intial time-related parameters for the simulation.
void SchedDecom(Agent *m, int time)
Schedules the given Agent to be decommissioned at the specified timestep t.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters