1 #ifndef CYCLUS_SRC_REGION_H_ 2 #define CYCLUS_SRC_REGION_H_ 104 #endif // CYCLUS_SRC_REGION_H_ virtual Inventories SnapshotInv()
Snapshots an agent's resource inventories to the database.
virtual std::string str()
every agent should be able to print a verbose description
virtual void InitInv(Inventories &inv)
Provides an agent's initial inventory of resources before a simulation begins.
double b(int nuc)
Computes the scattering length [cm] from the coherent and incoherent components.
virtual void InitFrom(QueryableBackend *b)
Intializes an agent's internal state from the database.
The Region class is the abstract class/interface used by all region agents.
A class for extracting information from a given XML parser.
virtual void Tock()
Simulation agents do their end-of-timestep activities in the Tock method.
virtual void Snapshot(DbInit di)
Snapshots agent-internal state to the database via the DbInit var di.
virtual void Build(Agent *parent)
perform actions required when entering the simulation
std::map< std::string, std::vector< Resource::Ptr > > Inventories
map<inventory_name, vector<resources_in_inventory> >.
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 Tick()
Simulation agents do their beginning-of-timestep activities in the Tick method.
Region(Context *ctx)
Default constructor for Region Class.
DbInit provides an interface for agents to record data to the output db that automatically injects th...
virtual void EnterNotify()
Called to give the agent an opportunity to register for services (e.g.
Agent * parent() const
Returns parent of this agent. Returns NULL if the agent has no parent.
The TimeListener class is an inheritable class for any Agent that requires knowlege of ticks and tock...
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.
virtual void Decommission()
Decommissions the agent, removing it from the simulation.
virtual ~Region()
Regions should not be indestructible.
Interface implemented by backends that support rudimentary querying.