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

#include <deploy_inst.h>

Inheritance diagram for cycamore::DeployInst:

Public Member Functions

virtual Json::Value annotations ()
 
virtual void Build (cyclus::Agent *parent)
 
virtual void Build (cyclus::Agent *parent)
 
virtual void BuildNotify (Agent *m)
 
virtual void BuildNotify (Agent *m)
 
virtual cyclus::Agent * Clone ()
 
virtual void DecomNotify (Agent *m)
 
virtual void DecomNotify (Agent *m)
 
 DeployInst (cyclus::Context *ctx)
 
 DeployInst (cyclus::Context *ctx)
 
virtual void EnterNotify ()
 
virtual void EnterNotify ()
 
virtual void InfileToDb (cyclus::InfileTree *tree, cyclus::DbInit di)
 
virtual void InitFrom (cycamore::DeployInst *m)
 
virtual void InitFrom (cyclus::QueryableBackend *b)
 
virtual void InitInv (cyclus::Inventories &inv)
 
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 ~DeployInst ()
 
virtual ~DeployInst ()
 

Protected Attributes

std::vector< intbuild_times
 
std::vector< intcycpp_shape_build_times
 
std::vector< intcycpp_shape_lifetimes
 
std::vector< intcycpp_shape_n_build
 
std::vector< intcycpp_shape_prototypes
 
std::vector< intlifetimes
 
std::vector< intn_build
 
std::vector< std::string > prototypes
 

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
 
double latitude
 
double longitude
 

Detailed Description

Definition at line 24 of file build/cycamore/deploy_inst.h.

Constructor & Destructor Documentation

◆ DeployInst() [1/2]

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

Definition at line 7 of file build/cycamore/deploy_inst.cc.

◆ ~DeployInst() [1/2]

cycamore::DeployInst::~DeployInst ( )
virtual

Definition at line 13 of file build/cycamore/deploy_inst.cc.

◆ DeployInst() [2/2]

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

◆ ~DeployInst() [2/2]

virtual cycamore::DeployInst::~DeployInst ( )
virtual

Member Function Documentation

◆ annotations()

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

Definition at line 251 of file build/cycamore/deploy_inst.h.

◆ Build() [1/2]

void cycamore::DeployInst::Build ( cyclus::Agent * parent)
virtual

Definition at line 15 of file build/cycamore/deploy_inst.cc.

References build_times, lifetimes, n_build, and prototypes.

◆ Build() [2/2]

virtual void cycamore::DeployInst::Build ( cyclus::Agent * parent)
virtual

◆ BuildNotify() [1/2]

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

Definition at line 72 of file build/cycamore/deploy_inst.cc.

References Register_().

◆ BuildNotify() [2/2]

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

◆ Clone()

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

Definition at line 199 of file build/cycamore/deploy_inst.h.

References InitFrom().

◆ DecomNotify() [1/2]

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

Definition at line 76 of file build/cycamore/deploy_inst.cc.

References Unregister_().

◆ DecomNotify() [2/2]

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

◆ EnterNotify() [1/2]

void cycamore::DeployInst::EnterNotify ( )
virtual

Definition at line 50 of file build/cycamore/deploy_inst.cc.

References build_times, lifetimes, n_build, prototypes, and RecordPosition().

◆ EnterNotify() [2/2]

virtual void cycamore::DeployInst::EnterNotify ( )
virtual

◆ InfileToDb()

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

◆ InitFrom() [1/2]

◆ InitFrom() [2/2]

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

◆ InitInv()

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

Definition at line 324 of file build/cycamore/deploy_inst.h.

◆ RecordPosition() [1/2]

void cycamore::DeployInst::RecordPosition ( )
private

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

Definition at line 123 of file build/cycamore/deploy_inst.cc.

References latitude, and longitude.

Referenced by EnterNotify().

◆ RecordPosition() [2/2]

void cycamore::DeployInst::RecordPosition ( )
private

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

◆ Register_() [1/2]

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

register a child

Referenced by BuildNotify().

◆ Register_() [2/2]

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

register a child

◆ schema()

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

Definition at line 205 of file build/cycamore/deploy_inst.h.

◆ Snapshot()

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

◆ SnapshotInv()

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

Definition at line 327 of file build/cycamore/deploy_inst.h.

◆ Unregister_() [1/2]

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

unregister a child

Referenced by DecomNotify().

◆ Unregister_() [2/2]

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

unregister a child

◆ version() [1/2]

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

Definition at line 35 of file build/cycamore/deploy_inst.h.

References CYCAMORE_VERSION.

◆ version() [2/2]

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

Definition at line 43 of file src/deploy_inst.h.

References CYCAMORE_VERSION.

◆ WriteProducerInformation() [1/2]

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

write information about a commodity producer to a stream

Parameters
producerthe producer

Definition at line 103 of file build/cycamore/deploy_inst.cc.

◆ WriteProducerInformation() [2/2]

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

write information about a commodity producer to a stream

Parameters
producerthe producer

Member Data Documentation

◆ build_times

std::vector< int > cycamore::DeployInst::build_times
protected

◆ coordinates

cyclus::toolkit::Position cycamore::DeployInst::coordinates
private

Definition at line 403 of file build/cycamore/deploy_inst.h.

◆ cycpp_shape_build_times

std::vector<int> cycamore::DeployInst::cycpp_shape_build_times
protected

Definition at line 372 of file build/cycamore/deploy_inst.h.

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

◆ cycpp_shape_latitude

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

Definition at line 392 of file build/cycamore/deploy_inst.h.

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

◆ cycpp_shape_lifetimes

std::vector<int> cycamore::DeployInst::cycpp_shape_lifetimes
protected

Definition at line 384 of file build/cycamore/deploy_inst.h.

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

◆ cycpp_shape_longitude

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

Definition at line 399 of file build/cycamore/deploy_inst.h.

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

◆ cycpp_shape_n_build

std::vector<int> cycamore::DeployInst::cycpp_shape_n_build
protected

Definition at line 377 of file build/cycamore/deploy_inst.h.

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

◆ cycpp_shape_prototypes

std::vector<int> cycamore::DeployInst::cycpp_shape_prototypes
protected

Definition at line 366 of file build/cycamore/deploy_inst.h.

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

◆ latitude

double cycamore::DeployInst::latitude
private

◆ lifetimes

std::vector< int > cycamore::DeployInst::lifetimes
protected

◆ longitude

double cycamore::DeployInst::longitude
private

◆ n_build

std::vector< int > cycamore::DeployInst::n_build
protected

◆ prototypes

std::vector< std::string > cycamore::DeployInst::prototypes
protected

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