CYCLUS
Loading...
Searching...
No Matches
cyclus::Dummy Class Reference

Detailed Description

Definition at line 11 of file sim_init.cc.

Inheritance diagram for cyclus::Dummy:
cyclus::Region cyclus::Agent cyclus::TimeListener cyclus::StateWrangler cyclus::Ider cyclus::Ider

Public Member Functions

DummyClone ()
 
 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
 
Contextcontext () 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)
 
Agentparent () 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 cyclus::TimeListener
virtual void Decision ()
 

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_
 

Constructor & Destructor Documentation

◆ Dummy()

cyclus::Dummy::Dummy ( Context * ctx)
inline

Definition at line 13 of file sim_init.cc.

Member Function Documentation

◆ Clone()

Dummy * cyclus::Dummy::Clone ( )
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:

class MyAgentClass : virtual public Agent {
...
virtual Agent* Clone() {
MyAgentClass* m = new MyAgentClass(context());
m->InitFrom(this);
return m;
};
...
};
The abstract base class used by all types of agents that live and interact in a simulation.
Definition agent.h:49
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters

Implements cyclus::Agent.

Definition at line 14 of file sim_init.cc.


The documentation for this class was generated from the following file: