1#ifndef CYCLUS_SRC_REGION_H_
2#define CYCLUS_SRC_REGION_H_
92 virtual std::string
str();
The abstract base class used by all types of agents that live and interact in a simulation.
Agent * parent() const
Returns parent of this agent. Returns NULL if the agent has no parent.
A simulation context provides access to necessary simulation-global functions and state.
DbInit provides an interface for agents to record data to the output db that automatically injects th...
A class for extracting information from a given XML parser.
Interface implemented by backends that support rudimentary querying.
The Region class is the abstract class/interface used by all region agents.
virtual void Snapshot(DbInit di)
Snapshots agent-internal state to the database via the DbInit var di.
virtual void InfileToDb(InfileTree *qe, DbInit di)
Translates info for the agent from an input file to the database by reading parameters from the passe...
virtual void InitFrom(QueryableBackend *b)
Intializes an agent's internal state from the database.
virtual Inventories SnapshotInv()
Snapshots an agent's resource inventories to the database.
virtual void Tock()
Simulation agents do their end-of-timestep activities in the Tock method.
virtual void InitInv(Inventories &inv)
Provides an agent's initial inventory of resources before a simulation begins.
virtual void EnterNotify()
Called to give the agent an opportunity to register for services (e.g.
virtual std::string str()
every agent should be able to print a verbose description
Region(Context *ctx)
Default constructor for Region Class.
virtual void Tick()
Simulation agents do their beginning-of-timestep activities in the Tick method.
virtual void Build(Agent *parent)
perform actions required when entering the simulation
virtual ~Region()
Regions should not be indestructible.
virtual void Decommission()
Decommissions the agent, removing it from the simulation.
The TimeListener class is an inheritable class for any Agent that requires knowlege of ticks and tock...
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
std::map< std::string, std::vector< Resource::Ptr > > Inventories
map<inventory_name, vector<resources_in_inventory> >.
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters