#include <SECircuitManager.h>

Inherits Loggable.

Inherited by pulse::CircuitManager.

Public Member Functions

 SECircuitManager (Logger *logger)
 
virtual ~SECircuitManager ()
 
virtual void Clear ()
 
virtual void StateChange ()
 
void SetReadOnly (bool b)
 
virtual SEElectricalCircuitNodeCreateElectricalNode (const std::string &name)
 
virtual void DeleteElectricalNode (const std::string &name)
 
virtual bool HasElectricalNode (const std::string &name) const
 
virtual SEElectricalCircuitNodeGetElectricalNode (const std::string &name)
 
virtual const SEElectricalCircuitNodeGetElectricalNode (const std::string &name) const
 
virtual SEElectricalCircuitPathCreateElectricalPath (SEElectricalCircuitNode &src, SEElectricalCircuitNode &tgt, const std::string &name)
 
virtual void DeleteElectricalPath (const std::string &name)
 
virtual bool HasElectricalPath (const std::string &name) const
 
virtual SEElectricalCircuitPathGetElectricalPath (const std::string &name)
 
virtual const SEElectricalCircuitPathGetElectricalPath (const std::string &name) const
 
virtual SEElectricalCircuitCreateElectricalCircuit (const std::string &name)
 
virtual void DeleteElectricalCircuit (const std::string &name)
 
virtual bool HasElectricalCircuit (const std::string &name) const
 
virtual SEElectricalCircuitGetElectricalCircuit (const std::string &name)
 
virtual const SEElectricalCircuitGetElectricalCircuit (const std::string &name) const
 
virtual void SetReadOnlyElectrical (bool b)
 
virtual SEFluidCircuitNodeCreateFluidNode (const std::string &name)
 
virtual void DeleteFluidNode (const std::string &name)
 
virtual bool HasFluidNode (const std::string &name) const
 
virtual SEFluidCircuitNodeGetFluidNode (const std::string &name)
 
virtual const SEFluidCircuitNodeGetFluidNode (const std::string &name) const
 
virtual SEFluidCircuitPathCreateFluidPath (SEFluidCircuitNode &src, SEFluidCircuitNode &tgt, const std::string &name)
 
virtual void DeleteFluidPath (const std::string &name)
 
virtual bool HasFluidPath (const std::string &name) const
 
virtual SEFluidCircuitPathGetFluidPath (const std::string &name)
 
virtual const SEFluidCircuitPathGetFluidPath (const std::string &name) const
 
virtual SEFluidCircuitCreateFluidCircuit (const std::string &name)
 
virtual void DeleteFluidCircuit (const std::string &name)
 
virtual bool HasFluidCircuit (const std::string &name) const
 
virtual SEFluidCircuitGetFluidCircuit (const std::string &name)
 
virtual const SEFluidCircuitGetFluidCircuit (const std::string &name) const
 
virtual void SetReadOnlyFluid (bool b)
 
virtual SEThermalCircuitNodeCreateThermalNode (const std::string &name)
 
virtual void DeleteThermalNode (const std::string &name)
 
virtual bool HasThermalNode (const std::string &name) const
 
virtual SEThermalCircuitNodeGetThermalNode (const std::string &name)
 
virtual const SEThermalCircuitNodeGetThermalNode (const std::string &name) const
 
virtual SEThermalCircuitPathCreateThermalPath (SEThermalCircuitNode &src, SEThermalCircuitNode &tgt, const std::string &name)
 
virtual void DeleteThermalPath (const std::string &name)
 
virtual bool HasThermalPath (const std::string &name) const
 
virtual SEThermalCircuitPathGetThermalPath (const std::string &name)
 
virtual const SEThermalCircuitPathGetThermalPath (const std::string &name) const
 
virtual SEThermalCircuitCreateThermalCircuit (const std::string &name)
 
virtual void DeleteThermalCircuit (const std::string &name)
 
virtual bool HasThermalCircuit (const std::string &name) const
 
virtual SEThermalCircuitGetThermalCircuit (const std::string &name)
 
virtual const SEThermalCircuitGetThermalCircuit (const std::string &name) const
 
virtual void SetReadOnlyThermal (bool b)
 
- Public Member Functions inherited from Loggable
 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg) const
 
virtual void Debug (std::stringstream &msg) const
 
virtual void Debug (std::ostream &msg) const
 
virtual void Info (std::string const &msg) const
 
virtual void Info (std::stringstream &msg) const
 
virtual void Info (const std::stringstream &msg) const
 
virtual void Info (std::ostream &msg) const
 
virtual void Warning (std::string const &msg) const
 
virtual void Warning (std::stringstream &msg) const
 
virtual void Warning (std::ostream &msg) const
 
virtual void Error (std::string const &msg) const
 
virtual void Error (std::stringstream &msg) const
 
virtual void Error (std::ostream &msg) const
 
virtual void Fatal (std::string const &msg) const
 
virtual void Fatal (std::stringstream &msg) const
 
virtual void Fatal (std::ostream &msg) const
 

Protected Member Functions

template<CIRCUIT_LEDGER_TEMPLATE >
NodeType & CreateNode (const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
void DeleteNode (const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
bool HasNode (const std::string &name, const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger) const
 
template<CIRCUIT_LEDGER_TEMPLATE >
NodeType * GetNode (const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
const NodeType * GetNode (const std::string &name, const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger) const
 
template<CIRCUIT_LEDGER_TEMPLATE >
PathType & CreatePath (NodeType &src, NodeType &tgt, const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
void DeletePath (const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
bool HasPath (const std::string &name, const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger) const
 
template<CIRCUIT_LEDGER_TEMPLATE >
PathType * GetPath (const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
const PathType * GetPath (const std::string &name, const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger) const
 
template<CIRCUIT_LEDGER_TEMPLATE >
CircuitType & CreateCircuit (const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
void DeleteCircuit (const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
bool HasCircuit (const std::string &name, const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger) const
 
template<CIRCUIT_LEDGER_TEMPLATE >
CircuitType * GetCircuit (const std::string &name, SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger)
 
template<CIRCUIT_LEDGER_TEMPLATE >
const CircuitType * GetCircuit (const std::string &name, const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &ledger) const
 

Protected Attributes

SECircuitLedger< SEElectricalCircuitNode, SEElectricalCircuitPath, SEElectricalCircuitm_ElectricalLedger
 
SECircuitLedger< SEFluidCircuitNode, SEFluidCircuitPath, SEFluidCircuitm_FluidLedger
 
SECircuitLedger< SEThermalCircuitNode, SEThermalCircuitPath, SEThermalCircuitm_ThermalLedger
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBCircuit
 

Constructor & Destructor Documentation

◆ SECircuitManager()

SECircuitManager::SECircuitManager ( Logger logger)

◆ ~SECircuitManager()

SECircuitManager::~SECircuitManager ( )
virtual

Member Function Documentation

◆ Clear()

void SECircuitManager::Clear ( )
virtual

Reimplemented in pulse::CircuitManager.

◆ CreateCircuit()

template<CIRCUIT_LEDGER_TEMPLATE >
template SEThermalCircuit & SECircuitManager::CreateCircuit< THERMAL_LEDGER_TYPES > ( const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ CreateElectricalCircuit()

SEElectricalCircuit & SECircuitManager::CreateElectricalCircuit ( const std::string &  name)
virtual

◆ CreateElectricalNode()

SEElectricalCircuitNode & SECircuitManager::CreateElectricalNode ( const std::string &  name)
virtual

◆ CreateElectricalPath()

SEElectricalCircuitPath & SECircuitManager::CreateElectricalPath ( SEElectricalCircuitNode src,
SEElectricalCircuitNode tgt,
const std::string &  name 
)
virtual

◆ CreateFluidCircuit()

SEFluidCircuit & SECircuitManager::CreateFluidCircuit ( const std::string &  name)
virtual

◆ CreateFluidNode()

SEFluidCircuitNode & SECircuitManager::CreateFluidNode ( const std::string &  name)
virtual

◆ CreateFluidPath()

SEFluidCircuitPath & SECircuitManager::CreateFluidPath ( SEFluidCircuitNode src,
SEFluidCircuitNode tgt,
const std::string &  name 
)
virtual

◆ CreateNode()

template<CIRCUIT_LEDGER_TEMPLATE >
template SEThermalCircuitNode & SECircuitManager::CreateNode< THERMAL_LEDGER_TYPES > ( const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ CreatePath()

template<CIRCUIT_LEDGER_TEMPLATE >
template SEThermalCircuitPath & SECircuitManager::CreatePath< THERMAL_LEDGER_TYPES > ( NodeType &  src,
NodeType &  tgt,
const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ CreateThermalCircuit()

SEThermalCircuit & SECircuitManager::CreateThermalCircuit ( const std::string &  name)
virtual

◆ CreateThermalNode()

SEThermalCircuitNode & SECircuitManager::CreateThermalNode ( const std::string &  name)
virtual

◆ CreateThermalPath()

SEThermalCircuitPath & SECircuitManager::CreateThermalPath ( SEThermalCircuitNode src,
SEThermalCircuitNode tgt,
const std::string &  name 
)
virtual

◆ DeleteCircuit()

template<CIRCUIT_LEDGER_TEMPLATE >
template void SECircuitManager::DeleteCircuit< THERMAL_LEDGER_TYPES > ( const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ DeleteElectricalCircuit()

void SECircuitManager::DeleteElectricalCircuit ( const std::string &  name)
virtual

◆ DeleteElectricalNode()

void SECircuitManager::DeleteElectricalNode ( const std::string &  name)
virtual

◆ DeleteElectricalPath()

void SECircuitManager::DeleteElectricalPath ( const std::string &  name)
virtual

◆ DeleteFluidCircuit()

void SECircuitManager::DeleteFluidCircuit ( const std::string &  name)
virtual

◆ DeleteFluidNode()

void SECircuitManager::DeleteFluidNode ( const std::string &  name)
virtual

◆ DeleteFluidPath()

void SECircuitManager::DeleteFluidPath ( const std::string &  name)
virtual

◆ DeleteNode()

template<CIRCUIT_LEDGER_TEMPLATE >
template void SECircuitManager::DeleteNode< THERMAL_LEDGER_TYPES > ( const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ DeletePath()

template<CIRCUIT_LEDGER_TEMPLATE >
template void SECircuitManager::DeletePath< THERMAL_LEDGER_TYPES > ( const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ DeleteThermalCircuit()

void SECircuitManager::DeleteThermalCircuit ( const std::string &  name)
virtual

◆ DeleteThermalNode()

void SECircuitManager::DeleteThermalNode ( const std::string &  name)
virtual

◆ DeleteThermalPath()

void SECircuitManager::DeleteThermalPath ( const std::string &  name)
virtual

◆ GetCircuit() [1/2]

template<CIRCUIT_LEDGER_TEMPLATE >
const CircuitType * SECircuitManager::GetCircuit ( const std::string &  name,
const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
) const
protected

◆ GetCircuit() [2/2]

template<CIRCUIT_LEDGER_TEMPLATE >
CircuitType * SECircuitManager::GetCircuit ( const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ GetElectricalCircuit() [1/2]

SEElectricalCircuit * SECircuitManager::GetElectricalCircuit ( const std::string &  name)
virtual

◆ GetElectricalCircuit() [2/2]

const SEElectricalCircuit * SECircuitManager::GetElectricalCircuit ( const std::string &  name) const
virtual

◆ GetElectricalNode() [1/2]

SEElectricalCircuitNode * SECircuitManager::GetElectricalNode ( const std::string &  name)
virtual

◆ GetElectricalNode() [2/2]

const SEElectricalCircuitNode * SECircuitManager::GetElectricalNode ( const std::string &  name) const
virtual

◆ GetElectricalPath() [1/2]

SEElectricalCircuitPath * SECircuitManager::GetElectricalPath ( const std::string &  name)
virtual

◆ GetElectricalPath() [2/2]

const SEElectricalCircuitPath * SECircuitManager::GetElectricalPath ( const std::string &  name) const
virtual

◆ GetFluidCircuit() [1/2]

SEFluidCircuit * SECircuitManager::GetFluidCircuit ( const std::string &  name)
virtual

◆ GetFluidCircuit() [2/2]

const SEFluidCircuit * SECircuitManager::GetFluidCircuit ( const std::string &  name) const
virtual

◆ GetFluidNode() [1/2]

SEFluidCircuitNode * SECircuitManager::GetFluidNode ( const std::string &  name)
virtual

◆ GetFluidNode() [2/2]

const SEFluidCircuitNode * SECircuitManager::GetFluidNode ( const std::string &  name) const
virtual

◆ GetFluidPath() [1/2]

SEFluidCircuitPath * SECircuitManager::GetFluidPath ( const std::string &  name)
virtual

◆ GetFluidPath() [2/2]

const SEFluidCircuitPath * SECircuitManager::GetFluidPath ( const std::string &  name) const
virtual

◆ GetNode() [1/2]

template<CIRCUIT_LEDGER_TEMPLATE >
const NodeType * SECircuitManager::GetNode ( const std::string &  name,
const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
) const
protected

◆ GetNode() [2/2]

template<CIRCUIT_LEDGER_TEMPLATE >
NodeType * SECircuitManager::GetNode ( const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ GetPath() [1/2]

template<CIRCUIT_LEDGER_TEMPLATE >
const PathType * SECircuitManager::GetPath ( const std::string &  name,
const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
) const
protected

◆ GetPath() [2/2]

template<CIRCUIT_LEDGER_TEMPLATE >
PathType * SECircuitManager::GetPath ( const std::string &  name,
SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
)
protected

◆ GetThermalCircuit() [1/2]

SEThermalCircuit * SECircuitManager::GetThermalCircuit ( const std::string &  name)
virtual

◆ GetThermalCircuit() [2/2]

const SEThermalCircuit * SECircuitManager::GetThermalCircuit ( const std::string &  name) const
virtual

◆ GetThermalNode() [1/2]

SEThermalCircuitNode * SECircuitManager::GetThermalNode ( const std::string &  name)
virtual

◆ GetThermalNode() [2/2]

const SEThermalCircuitNode * SECircuitManager::GetThermalNode ( const std::string &  name) const
virtual

◆ GetThermalPath() [1/2]

SEThermalCircuitPath * SECircuitManager::GetThermalPath ( const std::string &  name)
virtual

◆ GetThermalPath() [2/2]

const SEThermalCircuitPath * SECircuitManager::GetThermalPath ( const std::string &  name) const
virtual

◆ HasCircuit()

template<CIRCUIT_LEDGER_TEMPLATE >
template bool SECircuitManager::HasCircuit< THERMAL_LEDGER_TYPES > ( const std::string &  name,
const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
) const
protected

◆ HasElectricalCircuit()

bool SECircuitManager::HasElectricalCircuit ( const std::string &  name) const
virtual

◆ HasElectricalNode()

bool SECircuitManager::HasElectricalNode ( const std::string &  name) const
virtual

◆ HasElectricalPath()

bool SECircuitManager::HasElectricalPath ( const std::string &  name) const
virtual

◆ HasFluidCircuit()

bool SECircuitManager::HasFluidCircuit ( const std::string &  name) const
virtual

◆ HasFluidNode()

bool SECircuitManager::HasFluidNode ( const std::string &  name) const
virtual

◆ HasFluidPath()

bool SECircuitManager::HasFluidPath ( const std::string &  name) const
virtual

◆ HasNode()

template<CIRCUIT_LEDGER_TEMPLATE >
template bool SECircuitManager::HasNode< THERMAL_LEDGER_TYPES > ( const std::string &  name,
const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
) const
protected

◆ HasPath()

template<CIRCUIT_LEDGER_TEMPLATE >
template bool SECircuitManager::HasPath< THERMAL_LEDGER_TYPES > ( const std::string &  name,
const SECircuitLedger< CIRCUIT_LEDGER_TYPES > &  ledger 
) const
protected

◆ HasThermalCircuit()

bool SECircuitManager::HasThermalCircuit ( const std::string &  name) const
virtual

◆ HasThermalNode()

bool SECircuitManager::HasThermalNode ( const std::string &  name) const
virtual

◆ HasThermalPath()

bool SECircuitManager::HasThermalPath ( const std::string &  name) const
virtual

◆ SetReadOnly()

void SECircuitManager::SetReadOnly ( bool  b)

◆ SetReadOnlyElectrical()

void SECircuitManager::SetReadOnlyElectrical ( bool  b)
virtual

◆ SetReadOnlyFluid()

void SECircuitManager::SetReadOnlyFluid ( bool  b)
virtual

Reimplemented in pulse::CircuitManager.

◆ SetReadOnlyThermal()

void SECircuitManager::SetReadOnlyThermal ( bool  b)
virtual

◆ StateChange()

virtual void SECircuitManager::StateChange ( )
inlinevirtual

Reimplemented in pulse::CircuitManager.

Friends And Related Function Documentation

◆ PBCircuit

friend class PBCircuit
friend

Member Data Documentation

◆ m_ElectricalLedger

◆ m_FluidLedger

SECircuitLedger<SEFluidCircuitNode, SEFluidCircuitPath, SEFluidCircuit> SECircuitManager::m_FluidLedger
protected

◆ m_ThermalLedger

SECircuitLedger<SEThermalCircuitNode, SEThermalCircuitPath, SEThermalCircuit> SECircuitManager::m_ThermalLedger
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.