#include <SEGasBlackBox.h>

Inherits SEFluidBlackBox.

Public Member Functions

virtual ~SEGasBlackBox ()
 
virtual void Clear ()
 
virtual bool HasCompartment () const
 
virtual SEGasCompartmentGetCompartment ()
 
virtual const SEGasCompartmentGetCompartment () const
 
virtual bool HasSourceCompartment () const
 
virtual SEGasCompartmentGetSourceCompartment ()
 
virtual const SEGasCompartmentGetSourceCompartment () const
 
virtual bool HasTargetCompartment () const
 
virtual SEGasCompartmentGetTargetCompartment ()
 
virtual const SEGasCompartmentGetTargetCompartment () const
 
virtual bool HasSourceLink () const
 
virtual SEGasCompartmentLinkGetSourceLink ()
 
virtual const SEGasCompartmentLinkGetSourceLink () const
 
virtual bool HasTargetLink () const
 
virtual SEGasCompartmentLinkGetTargetLink ()
 
virtual const SEGasCompartmentLinkGetTargetLink () const
 
- Public Member Functions inherited from SEFluidBlackBox
virtual ~SEFluidBlackBox ()
 
- Public Member Functions inherited from SEBlackBox< FLUID_BLACK_BOX >
virtual ~SEBlackBox ()
 
virtual std::string GetName () const
 
virtual void ProvideSourceFlux ()
 
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 ProvideTargetFlux ()
 
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 ProvidePotential ()
 
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 ProvideSourcePotential ()
 
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 ProvideTargetPotential ()
 
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 ProvideQuantity ()
 
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
 
- 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

 SEGasBlackBox (const std::string &name, Logger *logger)
 
virtual void SetCompartment (SEGasCompartment *c)
 
virtual void SetSourceCompartment (SEGasCompartment *c)
 
virtual void SetTargetCompartment (SEGasCompartment *c)
 
virtual void SetSourceLink (SEGasCompartmentLink *l)
 
virtual void SetTargetLink (SEGasCompartmentLink *l)
 
- Protected Member Functions inherited from SEFluidBlackBox
 SEFluidBlackBox (const std::string &name, Logger *logger)
 
- Protected Member Functions inherited from SEBlackBox< FLUID_BLACK_BOX >
 SEBlackBox (const std::string &name, Logger *logger)
 
virtual bool HasNode () const
 
virtual NodeType * GetNode () const
 
virtual void SetNode (NodeType *n)
 
virtual bool HasSourceNode () const
 
virtual NodeType * GetSourceNode () const
 
virtual void SetSourceNode (NodeType *n)
 
virtual bool HasTargetNode () const
 
virtual NodeType * GetTargetNode () const
 
virtual void SetTargetNode (NodeType *n)
 
virtual bool HasSourcePath () const
 
virtual PathType * GetSourcePath () const
 
virtual void SetSourcePath (PathType *p)
 
virtual bool HasTargetPath () const
 
virtual PathType * GetTargetPath () const
 
virtual void SetTargetPath (PathType *p)
 

Protected Attributes

SEGasCompartmentm_Compartment = nullptr
 
SEGasCompartmentm_srcCompartment = nullptr
 
SEGasCompartmentm_tgtCompartment = nullptr
 
SEGasCompartmentLinkm_srcLink = nullptr
 
SEGasCompartmentLinkm_tgtLink = nullptr
 
- Protected Attributes inherited from SEBlackBox< FLUID_BLACK_BOX >
std::string m_Name
 
NodeType * m_Node
 
NodeType * m_SourceNode
 
NodeType * m_TargetNode
 
PathType * m_SourcePath
 
PathType * m_TargetPath
 
eBlackBox_Property_Type m_SourceFlux
 
eBlackBox_Property_Type m_TargetFlux
 
eBlackBox_Property_Type m_SourcePotential
 
eBlackBox_Property_Type m_TargetPotential
 
eBlackBox_Property_Type m_Potential
 
eBlackBox_Property_Type m_Quantity
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class SEBlackBoxManager
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SEGasBlackBox()

SEGasBlackBox::SEGasBlackBox ( const std::string &  name,
Logger logger 
)
protected

◆ ~SEGasBlackBox()

SEGasBlackBox::~SEGasBlackBox ( )
virtual

Member Function Documentation

◆ Clear()

void SEGasBlackBox::Clear ( )
virtual

Reimplemented from SEBlackBox< FLUID_BLACK_BOX >.

◆ GetCompartment() [1/2]

virtual SEGasCompartment& SEGasBlackBox::GetCompartment ( )
inlinevirtual

◆ GetCompartment() [2/2]

virtual const SEGasCompartment& SEGasBlackBox::GetCompartment ( ) const
inlinevirtual

◆ GetSourceCompartment() [1/2]

virtual SEGasCompartment& SEGasBlackBox::GetSourceCompartment ( )
inlinevirtual

◆ GetSourceCompartment() [2/2]

virtual const SEGasCompartment& SEGasBlackBox::GetSourceCompartment ( ) const
inlinevirtual

◆ GetSourceLink() [1/2]

virtual SEGasCompartmentLink& SEGasBlackBox::GetSourceLink ( )
inlinevirtual

◆ GetSourceLink() [2/2]

virtual const SEGasCompartmentLink& SEGasBlackBox::GetSourceLink ( ) const
inlinevirtual

◆ GetTargetCompartment() [1/2]

virtual SEGasCompartment& SEGasBlackBox::GetTargetCompartment ( )
inlinevirtual

◆ GetTargetCompartment() [2/2]

virtual const SEGasCompartment& SEGasBlackBox::GetTargetCompartment ( ) const
inlinevirtual

◆ GetTargetLink() [1/2]

virtual SEGasCompartmentLink& SEGasBlackBox::GetTargetLink ( )
inlinevirtual

◆ GetTargetLink() [2/2]

virtual const SEGasCompartmentLink& SEGasBlackBox::GetTargetLink ( ) const
inlinevirtual

◆ HasCompartment()

virtual bool SEGasBlackBox::HasCompartment ( ) const
inlinevirtual

◆ HasSourceCompartment()

virtual bool SEGasBlackBox::HasSourceCompartment ( ) const
inlinevirtual

◆ HasSourceLink()

virtual bool SEGasBlackBox::HasSourceLink ( ) const
inlinevirtual

◆ HasTargetCompartment()

virtual bool SEGasBlackBox::HasTargetCompartment ( ) const
inlinevirtual

◆ HasTargetLink()

virtual bool SEGasBlackBox::HasTargetLink ( ) const
inlinevirtual

◆ SetCompartment()

virtual void SEGasBlackBox::SetCompartment ( SEGasCompartment c)
inlineprotectedvirtual

◆ SetSourceCompartment()

virtual void SEGasBlackBox::SetSourceCompartment ( SEGasCompartment c)
inlineprotectedvirtual

◆ SetSourceLink()

virtual void SEGasBlackBox::SetSourceLink ( SEGasCompartmentLink l)
inlineprotectedvirtual

◆ SetTargetCompartment()

virtual void SEGasBlackBox::SetTargetCompartment ( SEGasCompartment c)
inlineprotectedvirtual

◆ SetTargetLink()

virtual void SEGasBlackBox::SetTargetLink ( SEGasCompartmentLink l)
inlineprotectedvirtual

Friends And Related Function Documentation

◆ SEBlackBoxManager

friend class SEBlackBoxManager
friend

Member Data Documentation

◆ m_Compartment

SEGasCompartment* SEGasBlackBox::m_Compartment = nullptr
protected

◆ m_srcCompartment

SEGasCompartment* SEGasBlackBox::m_srcCompartment = nullptr
protected

◆ m_srcLink

SEGasCompartmentLink* SEGasBlackBox::m_srcLink = nullptr
protected

◆ m_tgtCompartment

SEGasCompartment* SEGasBlackBox::m_tgtCompartment = nullptr
protected

◆ m_tgtLink

SEGasCompartmentLink* SEGasBlackBox::m_tgtLink = nullptr
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.