CYCAMORE
Loading...
Searching...
No Matches
cycamore::ManagerInst Class Reference

#include <manager_inst.h>

Inheritance diagram for cycamore::ManagerInst:

Public Member Functions

virtual Json::Value annotations ()
 
virtual void BuildNotify (Agent *m)
 register a new child
 
virtual void BuildNotify (Agent *m)
 register a new child
 
virtual cyclus::Agent * Clone ()
 
virtual void DecomNotify (Agent *m)
 unregister a child
 
virtual void DecomNotify (Agent *m)
 unregister a child
 
virtual void EnterNotify ()
 enter the simulation and register any children present
 
virtual void EnterNotify ()
 enter the simulation and register any children present
 
virtual void InfileToDb (cyclus::InfileTree *tree, cyclus::DbInit di)
 
virtual void InitFrom (cycamore::ManagerInst *m)
 
virtual void InitFrom (cyclus::QueryableBackend *b)
 
virtual void InitInv (cyclus::Inventories &inv)
 
 ManagerInst (cyclus::Context *ctx)
 Default constructor.
 
 ManagerInst (cyclus::Context *ctx)
 Default constructor.
 
virtual std::string schema ()
 
virtual void Snapshot (cyclus::DbInit di)
 
virtual cyclus::Inventories SnapshotInv ()
 
virtual std::string version ()
 
virtual std::string version ()
 
void WriteProducerInformation (cyclus::toolkit::CommodityProducer *producer)
 write information about a commodity producer to a stream
 
void WriteProducerInformation (cyclus::toolkit::CommodityProducer *producer)
 write information about a commodity producer to a stream
 
virtual ~ManagerInst ()
 Default destructor.
 
virtual ~ManagerInst ()
 Default destructor.
 

Private Member Functions

void Register_ (cyclus::Agent *agent)
 register a child
 
void Register_ (cyclus::Agent *agent)
 register a child
 
void Unregister_ (cyclus::Agent *agent)
 unregister a child
 
void Unregister_ (cyclus::Agent *agent)
 unregister a child
 

Private Attributes

std::vector< intcycpp_shape_prototypes
 
std::vector< std::string > prototypes
 

Detailed Description

Introduction

Detailed Behavior

Warning
The ManagerInst is experimental

Definition at line 15 of file build/cycamore/manager_inst.h.

Constructor & Destructor Documentation

◆ ManagerInst() [1/2]

cycamore::ManagerInst::ManagerInst ( cyclus::Context * ctx)

Default constructor.

Definition at line 8 of file build/cycamore/manager_inst.cc.

◆ ~ManagerInst() [1/2]

cycamore::ManagerInst::~ManagerInst ( )
virtual

Default destructor.

Definition at line 12 of file build/cycamore/manager_inst.cc.

◆ ManagerInst() [2/2]

cycamore::ManagerInst::ManagerInst ( cyclus::Context * ctx)

Default constructor.

◆ ~ManagerInst() [2/2]

virtual cycamore::ManagerInst::~ManagerInst ( )
virtual

Default destructor.

Member Function Documentation

◆ annotations()

virtual Json::Value cycamore::ManagerInst::annotations ( )
inlinevirtual

Definition at line 140 of file build/cycamore/manager_inst.h.

◆ BuildNotify() [1/2]

void cycamore::ManagerInst::BuildNotify ( Agent * m)
virtual

register a new child

Definition at line 14 of file build/cycamore/manager_inst.cc.

References Register_().

◆ BuildNotify() [2/2]

virtual void cycamore::ManagerInst::BuildNotify ( Agent * m)
virtual

register a new child

◆ Clone()

virtual cyclus::Agent * cycamore::ManagerInst::Clone ( )
inlinevirtual

Definition at line 109 of file build/cycamore/manager_inst.h.

References InitFrom().

◆ DecomNotify() [1/2]

void cycamore::ManagerInst::DecomNotify ( Agent * m)
virtual

unregister a child

Definition at line 18 of file build/cycamore/manager_inst.cc.

References Unregister_().

◆ DecomNotify() [2/2]

virtual void cycamore::ManagerInst::DecomNotify ( Agent * m)
virtual

unregister a child

◆ EnterNotify() [1/2]

void cycamore::ManagerInst::EnterNotify ( )
virtual

enter the simulation and register any children present

Definition at line 22 of file build/cycamore/manager_inst.cc.

References prototypes, and Register_().

◆ EnterNotify() [2/2]

virtual void cycamore::ManagerInst::EnterNotify ( )
virtual

enter the simulation and register any children present

◆ InfileToDb()

virtual void cycamore::ManagerInst::InfileToDb ( cyclus::InfileTree * tree,
cyclus::DbInit di )
inlinevirtual

Definition at line 57 of file build/cycamore/manager_inst.h.

References cycpp_shape_prototypes, and prototypes.

◆ InitFrom() [1/2]

virtual void cycamore::ManagerInst::InitFrom ( cycamore::ManagerInst * m)
inlinevirtual

Definition at line 28 of file build/cycamore/manager_inst.h.

References cycpp_shape_prototypes, and prototypes.

Referenced by Clone().

◆ InitFrom() [2/2]

virtual void cycamore::ManagerInst::InitFrom ( cyclus::QueryableBackend * b)
inlinevirtual

Definition at line 42 of file build/cycamore/manager_inst.h.

References cycpp_shape_prototypes, and prototypes.

◆ InitInv()

virtual void cycamore::ManagerInst::InitInv ( cyclus::Inventories & inv)
inlinevirtual

Definition at line 183 of file build/cycamore/manager_inst.h.

◆ Register_() [1/2]

void cycamore::ManagerInst::Register_ ( cyclus::Agent * agent)
private

register a child

Referenced by BuildNotify(), and EnterNotify().

◆ Register_() [2/2]

void cycamore::ManagerInst::Register_ ( cyclus::Agent * agent)
private

register a child

◆ schema()

virtual std::string cycamore::ManagerInst::schema ( )
inlinevirtual

Definition at line 115 of file build/cycamore/manager_inst.h.

◆ Snapshot()

virtual void cycamore::ManagerInst::Snapshot ( cyclus::DbInit di)
inlinevirtual

Definition at line 191 of file build/cycamore/manager_inst.h.

References cycpp_shape_prototypes, and prototypes.

◆ SnapshotInv()

virtual cyclus::Inventories cycamore::ManagerInst::SnapshotInv ( )
inlinevirtual

Definition at line 186 of file build/cycamore/manager_inst.h.

◆ Unregister_() [1/2]

void cycamore::ManagerInst::Unregister_ ( cyclus::Agent * agent)
private

unregister a child

Referenced by DecomNotify().

◆ Unregister_() [2/2]

void cycamore::ManagerInst::Unregister_ ( cyclus::Agent * agent)
private

unregister a child

References prototypes.

◆ version() [1/2]

virtual std::string cycamore::ManagerInst::version ( )
inlinevirtual

Definition at line 27 of file build/cycamore/manager_inst.h.

References CYCAMORE_VERSION.

◆ version() [2/2]

virtual std::string cycamore::ManagerInst::version ( )
inlinevirtual

Definition at line 25 of file src/manager_inst.h.

References CYCAMORE_VERSION.

◆ WriteProducerInformation() [1/2]

void cycamore::ManagerInst::WriteProducerInformation ( cyclus::toolkit::CommodityProducer * producer)

write information about a commodity producer to a stream

Parameters
producerthe producer

Definition at line 71 of file build/cycamore/manager_inst.cc.

◆ WriteProducerInformation() [2/2]

void cycamore::ManagerInst::WriteProducerInformation ( cyclus::toolkit::CommodityProducer * producer)

write information about a commodity producer to a stream

Parameters
producerthe producer

Member Data Documentation

◆ cycpp_shape_prototypes

std::vector<int> cycamore::ManagerInst::cycpp_shape_prototypes
private

Definition at line 229 of file build/cycamore/manager_inst.h.

Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().

◆ prototypes

std::vector< std::string > cycamore::ManagerInst::prototypes
private

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