#include <SEBlackBoxManager.h>

Inherits Loggable.

Public Member Functions

 SEBlackBoxManager (Logger *logger)
 
virtual ~SEBlackBoxManager ()
 
virtual bool HasElectricalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
virtual bool HasGasBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
virtual bool HasLiquidBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
virtual bool HasThermalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
virtual SEElectricalBlackBoxGetElectricalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName)
 
virtual SEGasBlackBoxGetGasBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName)
 
virtual SELiquidBlackBoxGetLiquidBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName)
 
virtual SEThermalBlackBoxGetThermalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName)
 
template<typename BlackBoxType >
BlackBoxType * CreateBlackBox (const std::string &name, std::map< std::string, BlackBoxType *> &ledger)
 
- 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, std::string const &origin=empty) const
 
virtual void Debug (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Debug (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Info (std::string const &msg, std::string const &origin=empty) const
 
virtual void Info (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (const std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::string const &msg, std::string const &origin=empty) const
 
virtual void Warning (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Error (std::string const &msg, std::string const &origin=empty) const
 
virtual void Error (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Error (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::string const &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::ostream &msg, std::string const &origin=empty) const
 

Protected Member Functions

virtual SEElectricalBlackBoxCreateElectricalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName)
 
virtual SEGasBlackBoxCreateGasBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName)
 
virtual SELiquidBlackBoxCreateLiquidBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName)
 
virtual SEThermalBlackBoxCreateThermalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName)
 
virtual std::string GetBlackBoxName (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
template<typename tBlackBox >
tBlackBox * CreateBlackBox (const std::string &name, std::map< std::string, tBlackBox *> &ledger)
 
template<typename tBlackBox , typename tCompartment , typename tLink , typename tNode , typename tPath >
bool MapBlackBox (tBlackBox &bb, tLink &src2bbLink, tLink &bb2tgtLink)
 
template<typename tBlackBox , typename tNode , typename tPath >
bool MapBlackBox (tBlackBox &bb, tPath &srcPath, tPath &tgtPath)
 

Protected Attributes

std::map< std::string, SEElectricalBlackBox * > m_ElectricalBoxes
 
std::map< std::string, SEGasBlackBox * > m_GasBoxes
 
std::map< std::string, SELiquidBlackBox * > m_LiquidBoxes
 
std::map< std::string, SEThermalBlackBox * > m_ThermalBoxes
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class CommonDataModelTest
 

Additional Inherited Members

- Static Public Attributes inherited from Loggable
static const std::string empty
 

Constructor & Destructor Documentation

◆ SEBlackBoxManager()

SEBlackBoxManager::SEBlackBoxManager ( Logger logger)

◆ ~SEBlackBoxManager()

SEBlackBoxManager::~SEBlackBoxManager ( )
virtual

Member Function Documentation

◆ CreateBlackBox() [1/2]

template<typename tBlackBox >
tBlackBox* SEBlackBoxManager::CreateBlackBox ( const std::string &  name,
std::map< std::string, tBlackBox *> &  ledger 
)
protected

◆ CreateBlackBox() [2/2]

template<typename BlackBoxType >
BlackBoxType* SEBlackBoxManager::CreateBlackBox ( const std::string &  name,
std::map< std::string, BlackBoxType *> &  ledger 
)

◆ CreateElectricalBlackBox()

SEElectricalBlackBox * SEBlackBoxManager::CreateElectricalBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
)
protectedvirtual

◆ CreateGasBlackBox()

SEGasBlackBox * SEBlackBoxManager::CreateGasBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
)
protectedvirtual

◆ CreateLiquidBlackBox()

SELiquidBlackBox * SEBlackBoxManager::CreateLiquidBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
)
protectedvirtual

◆ CreateThermalBlackBox()

SEThermalBlackBox * SEBlackBoxManager::CreateThermalBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
)
protectedvirtual

◆ GetBlackBoxName()

std::string SEBlackBoxManager::GetBlackBoxName ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
) const
protectedvirtual

◆ GetElectricalBlackBox()

SEElectricalBlackBox * SEBlackBoxManager::GetElectricalBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
)
virtual

◆ GetGasBlackBox()

SEGasBlackBox * SEBlackBoxManager::GetGasBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
)
virtual

◆ GetLiquidBlackBox()

SELiquidBlackBox * SEBlackBoxManager::GetLiquidBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
)
virtual

◆ GetThermalBlackBox()

SEThermalBlackBox * SEBlackBoxManager::GetThermalBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
)
virtual

◆ HasElectricalBlackBox()

bool SEBlackBoxManager::HasElectricalBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
) const
virtual

◆ HasGasBlackBox()

bool SEBlackBoxManager::HasGasBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
) const
virtual

◆ HasLiquidBlackBox()

bool SEBlackBoxManager::HasLiquidBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
) const
virtual

◆ HasThermalBlackBox()

bool SEBlackBoxManager::HasThermalBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName 
) const
virtual

◆ MapBlackBox() [1/2]

template<typename tBlackBox , typename tCompartment , typename tLink , typename tNode , typename tPath >
bool SEBlackBoxManager::MapBlackBox ( tBlackBox &  bb,
tLink &  src2bbLink,
tLink &  bb2tgtLink 
)
inlineprotected

◆ MapBlackBox() [2/2]

template<typename tBlackBox , typename tNode , typename tPath >
bool SEBlackBoxManager::MapBlackBox ( tBlackBox &  bb,
tPath &  srcPath,
tPath &  tgtPath 
)
inlineprotected

Friends And Related Function Documentation

◆ CommonDataModelTest

friend class CommonDataModelTest
friend

Member Data Documentation

◆ m_ElectricalBoxes

std::map<std::string, SEElectricalBlackBox*> SEBlackBoxManager::m_ElectricalBoxes
protected

◆ m_GasBoxes

std::map<std::string, SEGasBlackBox*> SEBlackBoxManager::m_GasBoxes
protected

◆ m_LiquidBoxes

std::map<std::string, SELiquidBlackBox*> SEBlackBoxManager::m_LiquidBoxes
protected

◆ m_ThermalBoxes

std::map<std::string, SEThermalBlackBox*> SEBlackBoxManager::m_ThermalBoxes
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.