41 for (std::set<Agent*>::const_iterator inst =
children().
begin();
44 s += (*inst)->prototype() +
", ";
virtual std::string str()
every agent should be able to print a verbose description
virtual void Decommission()
Decommissions the agent, removing it from the simulation.
virtual std::string str()
Description of this agent.
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.
void UnregisterTimeListener(TimeListener *tl)
Removes an agent from receiving tick/tock notifications.
virtual void Build(Agent *parent)
perform actions required when entering the simulation
virtual void Build(Agent *parent)
Called when the agent enters the smiulation as an active participant and is only ever called once...
Context * context() const
Returns this agent's simulation context.
std::string kind_
describes the agent subclass (e.g.
Region(Context *ctx)
Default constructor for Region Class.
virtual void EnterNotify()
Called to give the agent an opportunity to register for services (e.g.
void RegisterTimeListener(TimeListener *tl)
Registers an agent to receive tick/tock notifications every timestep.
Agent * parent() const
Returns parent of this agent. Returns NULL if the agent has no parent.
Code providing rudimentary logging capability for the Cyclus core.
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 InitFrom(QueryableBackend *b)
Intializes an agent's internal state from the database.
virtual void Decommission()
Decommissions the agent, removing it from the simulation.
const std::set< Agent * > & children() const
Returns a list of children this agent has.
enable_if< has_const_iterator< T >::value, typename T::const_iterator >::type begin(const T &c)