38 std::stringstream ss(
"");
virtual void Decommission()
Decommissions the agent, removing it from the simulation.
void RegisterTrader(Trader *e)
Registers an agent as a participant in resource exchanges.
const int enter_time() const
Returns the time step at which this agent's Build function was called (-1 if the agent has never been...
virtual std::string str()
every agent should be able to print a verbose description
A generic mechanism to manually manage exceptions.
virtual std::string str()
Description of this agent.
const std::string prototype() const
Returns the agent's prototype.
virtual void Decommission()
decommissions the facility, default behavior is for the facility to delete itself ...
A simple API for agents that wish to exchange resources in the simulation.
void UnregisterTimeListener(TimeListener *tl)
Removes an agent from receiving tick/tock notifications.
virtual bool CheckDecommissionCondition()
facilities over write this method if a condition must be met before their destructors can be called ...
virtual void Build(Agent *parent)
Called when the agent enters the smiulation as an active participant and is only ever called once...
virtual void EnterNotify()
Called to give the agent an opportunity to register for services.
The Facility class is the abstract class/interface used by all facility agents.
void UnregisterTrader(Trader *e)
Unregisters an agent as a participant in resource exchanges.
virtual void EnterNotify()
Called to give the agent an opportunity to register for services (e.g.
Context * context() const
Returns this agent's simulation context.
std::string kind_
describes the agent subclass (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.
const int lifetime() const
Returns the number of time steps this agent operates between building and decommissioning (-1 if the ...
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 InitFrom(QueryableBackend *b)
Intializes an agent's internal state from the database.
virtual void Build(Agent *parent)
builds the facility in the simulation