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 RecordPosition ()
 Records an agent's latitude and longitude to the output db.
 
void RecordPosition ()
 Records an agent's latitude and longitude to the output db.
 
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

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 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 15 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 138 of file build/cycamore/manager_inst.h.

◆ BuildNotify() [1/2]

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

register a new child

Definition at line 17 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.

◆ DecomNotify() [1/2]

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

unregister a child

Definition at line 21 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 25 of file build/cycamore/manager_inst.cc.

References prototypes, RecordPosition(), 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

◆ 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 182 of file build/cycamore/manager_inst.h.

◆ RecordPosition() [1/2]

void cycamore::ManagerInst::RecordPosition ( )
private

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

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

References latitude, and longitude.

Referenced by EnterNotify().

◆ RecordPosition() [2/2]

void cycamore::ManagerInst::RecordPosition ( )
private

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

◆ 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

◆ SnapshotInv()

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

Definition at line 185 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

◆ 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 73 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

◆ coordinates

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

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

◆ cycpp_shape_latitude

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

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

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

◆ cycpp_shape_longitude

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

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

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

◆ cycpp_shape_prototypes

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

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

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

◆ latitude

double cycamore::ManagerInst::latitude
private

◆ longitude

double cycamore::ManagerInst::longitude
private

◆ prototypes

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

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

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


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