![]() |
CYCLUS
|
Definition at line 11 of file sim_init.cc.
Public Member Functions | |
| Dummy * | Clone () |
| Dummy (Context *ctx) | |
Public Member Functions inherited from cyclus::Region | |
| 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 () |
Public Member Functions inherited from cyclus::Agent | |
| 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 () |
Public Member Functions inherited from EconomicEntity | |
| virtual double | FV (int n, double i, double P, double A) const |
| virtual std::unordered_map< std::string, double > | GenerateParamList () const |
| virtual double | GetEconParameter (const std::string &key) const |
| void | InitEconParameters () |
| virtual double | PMT (int n, double i, double P, double F) const |
| virtual double | PV (double i, const std::vector< double > &A) const |
| virtual double | PV (int n, double i, double F, double A) const |
| virtual void | SetEconParameter (const std::string &key, double value) |
Public Member Functions inherited from cyclus::TimeListener | |
| virtual void | Decision () |
| virtual bool | IsShim () |
Additional Inherited Members | |
Protected Member Functions inherited from cyclus::Region | |
| void | InitFrom (Region *m) |
Protected Member Functions inherited from cyclus::Agent | |
| virtual std::string | InformErrorMsg (std::string msg) |
| void | InitFrom (Agent *m) |
Protected Attributes inherited from cyclus::Agent | |
| std::string | kind_ |
Static Protected Attributes inherited from EconomicEntity | |
| static constexpr int | kDefaultUnitCost = 1 |
|
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.