SEBlackBox< BLACK_BOX_TEMPLATE > Class Template Reference

#include <SEBlackBox.h>

Inherits Loggable.

Public Member Functions

virtual ~SEBlackBox ()
 
virtual void Clear ()
 
virtual std::string GetName () const
 
virtual void RemoveImposedPotential ()
 
virtual bool IsPotentialImposed () const
 
virtual void ImposePotential (double v, const PotentialUnit &unit)
 
virtual void ImposePotential (const PotentialScalar &s)
 
virtual double GetPotential (const PotentialUnit &unit) const
 
virtual void RemoveImposedSourcePotential ()
 
virtual bool IsSourcePotentialImposed () const
 
virtual void ImposeSourcePotential (double v, const PotentialUnit &unit)
 
virtual void ImposeSourcePotential (const PotentialScalar &s)
 
virtual double GetSourcePotential (const PotentialUnit &unit) const
 
virtual void RemoveImposedTargetPotential ()
 
virtual bool IsTargetPotentialImposed () const
 
virtual void ImposeTargetPotential (double v, const PotentialUnit &unit)
 
virtual void ImposeTargetPotential (const PotentialScalar &s)
 
virtual double GetTargetPotential (const PotentialUnit &unit) const
 
virtual void RemoveImposedSourceFlux ()
 
virtual bool IsSourceFluxImposed () const
 
virtual void ImposeSourceFlux (double v, const FluxUnit &unit)
 
virtual void ImposeSourceFlux (const FluxScalar &s)
 
virtual double GetSourceFlux (const FluxUnit &unit) const
 
virtual void RemoveImposedTargetFlux ()
 
virtual bool IsTargetFluxImposed () const
 
virtual void ImposeTargetFlux (double v, const FluxUnit &unit)
 
virtual void ImposeTargetFlux (const FluxScalar &s)
 
virtual double GetTargetFlux (const FluxUnit &unit) const
 
virtual void RemoveImposedQuantity ()
 
virtual bool IsQuantityImposed () const
 
virtual void ImposeQuantity (double v, const QuantityUnit &unit)
 
virtual void ImposeQuantity (const QuantityScalar &s)
 
virtual double GetQuantity (const QuantityUnit &unit) const
 
virtual bool HasMiddleNode () const
 
virtual NodeType * GetMiddleNode () const
 
virtual bool HasSourceNode () const
 
virtual NodeType * GetSourceNode () const
 
virtual bool HasTargetNode () const
 
virtual NodeType * GetTargetNode () const
 
virtual bool HasSourcePath () const
 
virtual PathType * GetSourcePath () const
 
virtual bool HasTargetPath () const
 
virtual PathType * GetTargetPath () const
 
- 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

 SEBlackBox (const std::string &name, Logger *logger)
 
virtual void SetMiddleNode (NodeType *n)
 
virtual void SetSourceNode (NodeType *n)
 
virtual void SetTargetNode (NodeType *n)
 
virtual void SetSourcePath (PathType *p)
 
virtual void SetTargetPath (PathType *p)
 

Protected Attributes

std::string m_Name
 
NodeType * m_MiddleNode = nullptr
 
NodeType * m_SourceNode = nullptr
 
NodeType * m_TargetNode = nullptr
 
PathType * m_SourcePath = nullptr
 
PathType * m_TargetPath = nullptr
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class SEBlackBoxManager
 
class CommonDataModelTest
 
template<CCT >
class SECircuitCalculator
 

Constructor & Destructor Documentation

◆ SEBlackBox()

template<BLACK_BOX_TEMPLATE >
SEBlackBox< BLACK_BOX_TEMPLATE >::SEBlackBox ( const std::string &  name,
Logger logger 
)
inlineprotected

◆ ~SEBlackBox()

template<BLACK_BOX_TEMPLATE >
virtual SEBlackBox< BLACK_BOX_TEMPLATE >::~SEBlackBox ( )
inlinevirtual

Member Function Documentation

◆ Clear()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::Clear ( )
inlinevirtual

Reimplemented in SEGasBlackBox, and SELiquidBlackBox.

◆ GetMiddleNode()

template<BLACK_BOX_TEMPLATE >
virtual NodeType * SEBlackBox< BLACK_BOX_TEMPLATE >::GetMiddleNode ( ) const
inlinevirtual

◆ GetName()

template<BLACK_BOX_TEMPLATE >
virtual std::string SEBlackBox< BLACK_BOX_TEMPLATE >::GetName ( ) const
inlinevirtual

◆ GetPotential()

template<BLACK_BOX_TEMPLATE >
virtual double SEBlackBox< BLACK_BOX_TEMPLATE >::GetPotential ( const PotentialUnit &  unit) const
inlinevirtual

◆ GetQuantity()

template<BLACK_BOX_TEMPLATE >
virtual double SEBlackBox< BLACK_BOX_TEMPLATE >::GetQuantity ( const QuantityUnit &  unit) const
inlinevirtual

◆ GetSourceFlux()

template<BLACK_BOX_TEMPLATE >
virtual double SEBlackBox< BLACK_BOX_TEMPLATE >::GetSourceFlux ( const FluxUnit &  unit) const
inlinevirtual

◆ GetSourceNode()

template<BLACK_BOX_TEMPLATE >
virtual NodeType * SEBlackBox< BLACK_BOX_TEMPLATE >::GetSourceNode ( ) const
inlinevirtual

◆ GetSourcePath()

template<BLACK_BOX_TEMPLATE >
virtual PathType * SEBlackBox< BLACK_BOX_TEMPLATE >::GetSourcePath ( ) const
inlinevirtual

◆ GetSourcePotential()

template<BLACK_BOX_TEMPLATE >
virtual double SEBlackBox< BLACK_BOX_TEMPLATE >::GetSourcePotential ( const PotentialUnit &  unit) const
inlinevirtual

◆ GetTargetFlux()

template<BLACK_BOX_TEMPLATE >
virtual double SEBlackBox< BLACK_BOX_TEMPLATE >::GetTargetFlux ( const FluxUnit &  unit) const
inlinevirtual

◆ GetTargetNode()

template<BLACK_BOX_TEMPLATE >
virtual NodeType * SEBlackBox< BLACK_BOX_TEMPLATE >::GetTargetNode ( ) const
inlinevirtual

◆ GetTargetPath()

template<BLACK_BOX_TEMPLATE >
virtual PathType * SEBlackBox< BLACK_BOX_TEMPLATE >::GetTargetPath ( ) const
inlinevirtual

◆ GetTargetPotential()

template<BLACK_BOX_TEMPLATE >
virtual double SEBlackBox< BLACK_BOX_TEMPLATE >::GetTargetPotential ( const PotentialUnit &  unit) const
inlinevirtual

◆ HasMiddleNode()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::HasMiddleNode ( ) const
inlinevirtual

◆ HasSourceNode()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::HasSourceNode ( ) const
inlinevirtual

◆ HasSourcePath()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::HasSourcePath ( ) const
inlinevirtual

◆ HasTargetNode()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::HasTargetNode ( ) const
inlinevirtual

◆ HasTargetPath()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::HasTargetPath ( ) const
inlinevirtual

◆ ImposePotential() [1/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposePotential ( const PotentialScalar &  s)
inlinevirtual

◆ ImposePotential() [2/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposePotential ( double  v,
const PotentialUnit &  unit 
)
inlinevirtual

◆ ImposeQuantity() [1/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeQuantity ( const QuantityScalar &  s)
inlinevirtual

◆ ImposeQuantity() [2/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeQuantity ( double  v,
const QuantityUnit &  unit 
)
inlinevirtual

◆ ImposeSourceFlux() [1/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeSourceFlux ( const FluxScalar &  s)
inlinevirtual

◆ ImposeSourceFlux() [2/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeSourceFlux ( double  v,
const FluxUnit &  unit 
)
inlinevirtual

◆ ImposeSourcePotential() [1/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeSourcePotential ( const PotentialScalar &  s)
inlinevirtual

◆ ImposeSourcePotential() [2/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeSourcePotential ( double  v,
const PotentialUnit &  unit 
)
inlinevirtual

◆ ImposeTargetFlux() [1/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeTargetFlux ( const FluxScalar &  s)
inlinevirtual

◆ ImposeTargetFlux() [2/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeTargetFlux ( double  v,
const FluxUnit &  unit 
)
inlinevirtual

◆ ImposeTargetPotential() [1/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeTargetPotential ( const PotentialScalar &  s)
inlinevirtual

◆ ImposeTargetPotential() [2/2]

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::ImposeTargetPotential ( double  v,
const PotentialUnit &  unit 
)
inlinevirtual

◆ IsPotentialImposed()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::IsPotentialImposed ( ) const
inlinevirtual

◆ IsQuantityImposed()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::IsQuantityImposed ( ) const
inlinevirtual

◆ IsSourceFluxImposed()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::IsSourceFluxImposed ( ) const
inlinevirtual

◆ IsSourcePotentialImposed()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::IsSourcePotentialImposed ( ) const
inlinevirtual

◆ IsTargetFluxImposed()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::IsTargetFluxImposed ( ) const
inlinevirtual

◆ IsTargetPotentialImposed()

template<BLACK_BOX_TEMPLATE >
virtual bool SEBlackBox< BLACK_BOX_TEMPLATE >::IsTargetPotentialImposed ( ) const
inlinevirtual

◆ RemoveImposedPotential()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::RemoveImposedPotential ( )
inlinevirtual

◆ RemoveImposedQuantity()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::RemoveImposedQuantity ( )
inlinevirtual

◆ RemoveImposedSourceFlux()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::RemoveImposedSourceFlux ( )
inlinevirtual

◆ RemoveImposedSourcePotential()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::RemoveImposedSourcePotential ( )
inlinevirtual

◆ RemoveImposedTargetFlux()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::RemoveImposedTargetFlux ( )
inlinevirtual

◆ RemoveImposedTargetPotential()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::RemoveImposedTargetPotential ( )
inlinevirtual

◆ SetMiddleNode()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::SetMiddleNode ( NodeType *  n)
inlineprotectedvirtual

◆ SetSourceNode()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::SetSourceNode ( NodeType *  n)
inlineprotectedvirtual

◆ SetSourcePath()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::SetSourcePath ( PathType *  p)
inlineprotectedvirtual

◆ SetTargetNode()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::SetTargetNode ( NodeType *  n)
inlineprotectedvirtual

◆ SetTargetPath()

template<BLACK_BOX_TEMPLATE >
virtual void SEBlackBox< BLACK_BOX_TEMPLATE >::SetTargetPath ( PathType *  p)
inlineprotectedvirtual

Friends And Related Function Documentation

◆ CommonDataModelTest

template<BLACK_BOX_TEMPLATE >
friend class CommonDataModelTest
friend

◆ SEBlackBoxManager

template<BLACK_BOX_TEMPLATE >
friend class SEBlackBoxManager
friend

◆ SECircuitCalculator

template<BLACK_BOX_TEMPLATE >
template<CCT >
friend class SECircuitCalculator
friend

Member Data Documentation

◆ m_MiddleNode

template<BLACK_BOX_TEMPLATE >
NodeType* SEBlackBox< BLACK_BOX_TEMPLATE >::m_MiddleNode = nullptr
protected

◆ m_Name

template<BLACK_BOX_TEMPLATE >
std::string SEBlackBox< BLACK_BOX_TEMPLATE >::m_Name
protected

◆ m_SourceNode

template<BLACK_BOX_TEMPLATE >
NodeType* SEBlackBox< BLACK_BOX_TEMPLATE >::m_SourceNode = nullptr
protected

◆ m_SourcePath

template<BLACK_BOX_TEMPLATE >
PathType* SEBlackBox< BLACK_BOX_TEMPLATE >::m_SourcePath = nullptr
protected

◆ m_TargetNode

template<BLACK_BOX_TEMPLATE >
NodeType* SEBlackBox< BLACK_BOX_TEMPLATE >::m_TargetNode = nullptr
protected

◆ m_TargetPath

template<BLACK_BOX_TEMPLATE >
PathType* SEBlackBox< BLACK_BOX_TEMPLATE >::m_TargetPath = nullptr
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.