![]() |
CYCLUS
|
Definition at line 11 of file sim_init.cc.
Public Member Functions | |
Dummy * | Clone () |
Dummy (Context *ctx) | |
![]() | |
virtual void | Build (Agent *parent) |
virtual void | Decommission () |
virtual void | EnterNotify () |
virtual void | InfileToDb (InfileTree *qe, DbInit di) |
virtual void | InitFrom (QueryableBackend *b) |
virtual void | InitInv (Inventories &inv) |
Region (Context *ctx) | |
virtual void | Snapshot (DbInit di) |
virtual Inventories | SnapshotInv () |
virtual std::string | str () |
virtual void | Tick () |
virtual void | Tock () |
virtual | ~Region () |
![]() | |
virtual void | AdjustMatlPrefs (PrefMap< Material >::type &prefs) |
virtual void | AdjustProductPrefs (PrefMap< Product >::type &prefs) |
Agent (Context *ctx) | |
bool | AncestorOf (Agent *other) |
virtual Json::Value | annotations () |
virtual void | BuildNotify (Agent *m) |
const std::set< Agent * > & | children () const |
Context * | context () const |
bool | DecendentOf (Agent *other) |
virtual void | DecomNotify (Agent *m) |
const int | enter_time () const |
const int | exit_time () const |
std::vector< std::string > | GetTreePrintOuts (Agent *m) |
virtual const int | id () const |
bool | InFamilyTree (Agent *other) |
const std::string | kind () const |
const int | lifetime () const |
void | lifetime (int n_timesteps) |
void | lifetime_force (int n_timesteps) |
Agent * | parent () const |
const int | parent_id () const |
std::string | PrintChildren () |
const std::string | prototype () const |
void | prototype (std::string p) |
virtual std::string | schema () |
std::string | spec () |
void | spec (std::string new_impl) |
virtual std::string | version () |
virtual | ~Agent () |
![]() | |
virtual void | Decision () |
virtual bool | IsShim () |
Additional Inherited Members | |
![]() | |
void | InitFrom (Region *m) |
![]() | |
virtual std::string | InformErrorMsg (std::string msg) |
void | InitFrom (Agent *m) |
![]() | |
std::string | kind_ |
|
inline |
Definition at line 13 of file sim_init.cc.
|
inlinevirtual |
Returns a newly created/allocated prototype that is an exact copy of this.
All initialization and state cloning operations should be done in the agent's InitFrom(Agent*) function. The new agent instance should NOT be created using a default copy-constructor. New agent instances should generally be created using a constructor that takes a single Context argument (the same context of the agent being cloned). Example:
Implements cyclus::Agent.
Definition at line 14 of file sim_init.cc.