#include <SEBlackBoxManager.h>

Inherits Loggable.

Public Member Functions

 SEBlackBoxManager (Logger *logger)
 
virtual ~SEBlackBoxManager ()
 
virtual bool HasElectricalBlackBox (const std::string &name) const
 
virtual bool HasElectricalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
virtual bool HasGasBlackBox (const std::string &name) const
 
virtual bool HasGasBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
virtual bool HasLiquidBlackBox (const std::string &name) const
 
virtual bool HasLiquidBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
virtual bool HasThermalBlackBox (const std::string &name) const
 
virtual bool HasThermalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName) const
 
virtual SEElectricalBlackBoxGetElectricalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName, std::string name="")
 
virtual SEGasBlackBoxGetGasBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName, std::string name="")
 
virtual SELiquidBlackBoxGetLiquidBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName, std::string name="")
 
virtual SEThermalBlackBoxGetThermalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName, std::string name="")
 
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) 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

virtual SEElectricalBlackBoxCreateElectricalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName, const std::string &name)
 
virtual SEGasBlackBoxCreateGasBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName, const std::string &name)
 
virtual SELiquidBlackBoxCreateLiquidBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName, const std::string &name)
 
virtual SEThermalBlackBoxCreateThermalBlackBox (const std::string &srcCmptName, const std::string &tgtCmptName, const std::string &name)
 
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
 

Constructor & Destructor Documentation

◆ SEBlackBoxManager()

SEBlackBoxManager::SEBlackBoxManager ( Logger logger)

◆ ~SEBlackBoxManager()

SEBlackBoxManager::~SEBlackBoxManager ( )
virtual

Member Function Documentation

◆ CreateBlackBox() [1/2]

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

◆ CreateBlackBox() [2/2]

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

◆ CreateElectricalBlackBox()

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

◆ CreateGasBlackBox()

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

◆ CreateLiquidBlackBox()

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

◆ CreateThermalBlackBox()

SEThermalBlackBox * SEBlackBoxManager::CreateThermalBlackBox ( const std::string &  srcCmptName,
const std::string &  tgtCmptName,
const std::string &  name 
)
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,
std::string  name = "" 
)
virtual

◆ GetGasBlackBox()

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

◆ GetLiquidBlackBox()

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

◆ GetThermalBlackBox()

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

◆ HasElectricalBlackBox() [1/2]

bool SEBlackBoxManager::HasElectricalBlackBox ( const std::string &  name) const
virtual

◆ HasElectricalBlackBox() [2/2]

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

◆ HasGasBlackBox() [1/2]

bool SEBlackBoxManager::HasGasBlackBox ( const std::string &  name) const
virtual

◆ HasGasBlackBox() [2/2]

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

◆ HasLiquidBlackBox() [1/2]

bool SEBlackBoxManager::HasLiquidBlackBox ( const std::string &  name) const
virtual

◆ HasLiquidBlackBox() [2/2]

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

◆ HasThermalBlackBox() [1/2]

bool SEBlackBoxManager::HasThermalBlackBox ( const std::string &  name) const
virtual

◆ HasThermalBlackBox() [2/2]

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.