CYCAMORE
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cycamore::ManagerInst Class Reference

#include <manager_inst.h>

Inheritance diagram for cycamore::ManagerInst:
Inheritance graph
[legend]
Collaboration diagram for cycamore::ManagerInst:
Collaboration graph
[legend]

Public Member Functions

virtual Json::Value annotations ()
 
virtual void BuildNotify (Agent *m)
 register a new child More...
 
virtual void BuildNotify (Agent *m)
 register a new child More...
 
virtual cyclus::Agent * Clone ()
 
virtual void DecomNotify (Agent *m)
 unregister a child More...
 
virtual void DecomNotify (Agent *m)
 unregister a child More...
 
virtual void EnterNotify ()
 enter the simulation and register any children present More...
 
virtual void EnterNotify ()
 enter the simulation and register any children present More...
 
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. More...
 
 ManagerInst (cyclus::Context *ctx)
 Default constructor. More...
 
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 More...
 
void WriteProducerInformation (cyclus::toolkit::CommodityProducer *producer)
 write information about a commodity producer to a stream More...
 
virtual ~ManagerInst ()
 Default destructor. More...
 
virtual ~ManagerInst ()
 Default destructor. More...
 

Private Member Functions

void RecordPosition ()
 Records an agent's latitude and longitude to the output db. More...
 
void RecordPosition ()
 Records an agent's latitude and longitude to the output db. More...
 
void Register_ (cyclus::Agent *agent)
 register a child More...
 
void Register_ (cyclus::Agent *agent)
 register a child More...
 
void Unregister_ (cyclus::Agent *agent)
 unregister a child More...
 
void Unregister_ (cyclus::Agent *agent)
 unregister a child More...
 

Private Attributes

cyclus::toolkit::Position coordinates
 
std::vector< intcycpp_shape_latitude
 
std::vector< intcycpp_shape_longitude
 
std::vector< intcycpp_shape_prototypes
 
double latitude
 
double longitude
 
std::vector< std::string > prototypes
 

Detailed Description

Introduction

Detailed Behavior

Warning
The ManagerInst is experimental

Definition at line 15 of file _tmp_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 _tmp_build/cycamore/manager_inst.cc.

Referenced by cycamore::ConstructManagerInst().

◆ ~ManagerInst() [1/2]

cycamore::ManagerInst::~ManagerInst ( )
virtual

Default destructor.

Definition at line 15 of file _tmp_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 138 of file _tmp_build/cycamore/manager_inst.h.

◆ BuildNotify() [1/2]

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

register a new child

◆ BuildNotify() [2/2]

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

register a new child

Definition at line 17 of file _tmp_build/cycamore/manager_inst.cc.

References Register_().

Referenced by Snapshot(), and version().

Here is the call graph for this function:

◆ Clone()

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

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

References InitFrom().

Here is the call graph for this function:

◆ DecomNotify() [1/2]

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

unregister a child

◆ DecomNotify() [2/2]

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

unregister a child

Definition at line 21 of file _tmp_build/cycamore/manager_inst.cc.

References Unregister_().

Referenced by Snapshot(), and version().

Here is the call graph for this function:

◆ EnterNotify() [1/2]

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

enter the simulation and register any children present

◆ EnterNotify() [2/2]

void cycamore::ManagerInst::EnterNotify ( )
virtual

enter the simulation and register any children present

Definition at line 25 of file _tmp_build/cycamore/manager_inst.cc.

References prototypes, RecordPosition(), Register_(), and Unregister_().

Referenced by Snapshot(), and version().

Here is the call graph for this function:

◆ InfileToDb()

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

◆ InitFrom() [1/2]

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

◆ InitFrom() [2/2]

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

◆ InitInv()

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

Definition at line 180 of file _tmp_build/cycamore/manager_inst.h.

◆ RecordPosition() [1/2]

void cycamore::ManagerInst::RecordPosition ( )
private

Records an agent's latitude and longitude to the output db.

◆ RecordPosition() [2/2]

void cycamore::ManagerInst::RecordPosition ( )
private

Records an agent's latitude and longitude to the output db.

Definition at line 93 of file _tmp_build/cycamore/manager_inst.cc.

References latitude, longitude, and cycamore::string.

Referenced by EnterNotify(), and version().

◆ Register_() [1/2]

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

register a child

◆ Register_() [2/2]

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

register a child

Referenced by BuildNotify(), EnterNotify(), Snapshot(), and version().

◆ schema()

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

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

◆ Snapshot()

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

◆ SnapshotInv()

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

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

◆ Unregister_() [1/2]

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

unregister a child

◆ Unregister_() [2/2]

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

unregister a child

Referenced by DecomNotify(), EnterNotify(), Snapshot(), and version().

◆ version() [1/2]

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

◆ version() [2/2]

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

Definition at line 27 of file _tmp_build/cycamore/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

◆ WriteProducerInformation() [2/2]

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

write information about a commodity producer to a stream

Parameters
producerthe producer

Definition at line 73 of file _tmp_build/cycamore/manager_inst.cc.

Referenced by Snapshot(), and version().

Member Data Documentation

◆ coordinates

cyclus::toolkit::Position cycamore::ManagerInst::coordinates
private

Definition at line 241 of file _tmp_build/cycamore/manager_inst.h.

Referenced by version().

◆ cycpp_shape_latitude

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

Definition at line 230 of file _tmp_build/cycamore/manager_inst.h.

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

◆ cycpp_shape_longitude

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

Definition at line 237 of file _tmp_build/cycamore/manager_inst.h.

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

◆ cycpp_shape_prototypes

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

Definition at line 223 of file _tmp_build/cycamore/manager_inst.h.

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

◆ latitude

double cycamore::ManagerInst::latitude
private

◆ longitude

double cycamore::ManagerInst::longitude
private

◆ prototypes

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

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