#include <SEFluidCircuit.h>

Inherits SECircuit< SEFluidCircuitNode, SEFluidCircuitPath >.

Public Member Functions

virtual ~SEFluidCircuit ()
 
SEFluidCircuitNodeCreateNode (const std::string &name)
 
SEFluidCircuitPathCreatePath (SEFluidCircuitNode &src, SEFluidCircuitNode &tgt, const std::string &name)
 
void AddCircuit (SEFluidCircuit &circuit)
 
- Public Member Functions inherited from SECircuit< SEFluidCircuitNode, SEFluidCircuitPath >
 SECircuit (const std::string &name, Logger *logger)
 
virtual ~SECircuit ()
 
virtual void Clear ()
 
virtual std::string GetName () const
 
virtual bool HasReferenceNode () const
 
virtual void AddNode (NodeType &node)
 
virtual void ForceAddNode (NodeType &node)
 
virtual bool HasNode (NodeType &node)
 
virtual bool HasNode (const std::string &name)
 
virtual NodeType * GetNode (const std::string &name)
 
virtual const NodeType * GetNode (const std::string &name) const
 
virtual const std::vector< NodeType * > & GetNodes () const
 
virtual void RemoveNode (const NodeType &node)
 
virtual void RemoveNode (const std::string &name)
 
virtual void AddPath (PathType &node)
 
virtual void ForceAddPath (PathType &node)
 
virtual bool HasPath (PathType &node)
 
virtual bool HasPath (const std::string &name)
 
virtual PathType * GetPath (const std::string &name)
 
virtual const PathType * GetPath (const std::string &name) const
 
virtual const std::vector< PathType * > & GetPaths () const
 
virtual void RemovePath (const PathType &path)
 
virtual void RemovePath (const std::string &name)
 
virtual const std::vector< PathType * > & GetValvePaths ()
 
virtual const std::vector< PathType * > & GetPolarizedElementPaths ()
 
virtual const std::vector< PathType * > * GetTargetPaths (const NodeType &node) const
 Returns all target paths for a node. More...
 
virtual const std::vector< PathType * > * GetSourcePaths (const NodeType &node) const
 Returns all source paths for a node. More...
 
virtual const std::vector< PathType * > * GetConnectedPaths (const NodeType &node) const
 Returns all source paths for a node. More...
 
virtual void StateChange ()
 
virtual void SetNextAndCurrentFromBaselines ()
 Set all Current and Next values to the Baseline values for all Elements. More...
 
- 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

 SEFluidCircuit (const std::string &name, SECircuitManager &mgr)
 

Protected Attributes

SECircuitManagerm_Mgr
 
- Protected Attributes inherited from SECircuit< SEFluidCircuitNode, SEFluidCircuitPath >
std::string m_Name
 
std::stringstream m_ss
 
std::vector< NodeType * > m_Nodes
 
std::vector< PathType * > m_Paths
 
std::map< const NodeType *, std::vector< PathType * > * > m_TargetPathMap
 
std::map< const NodeType *, std::vector< PathType * > * > m_SourcePathMap
 
std::map< const NodeType *, std::vector< PathType * > * > m_ConnectedPathMap
 
std::vector< PathType * > m_ValvePaths
 
std::vector< PathType * > m_PolarizedElementPaths
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBCircuit
 
class SECircuitManager
 

Constructor & Destructor Documentation

◆ SEFluidCircuit()

SEFluidCircuit::SEFluidCircuit ( const std::string &  name,
SECircuitManager mgr 
)
protected

◆ ~SEFluidCircuit()

SEFluidCircuit::~SEFluidCircuit ( )
virtual

Member Function Documentation

◆ AddCircuit()

void SEFluidCircuit::AddCircuit ( SEFluidCircuit circuit)

◆ CreateNode()

SEFluidCircuitNode & SEFluidCircuit::CreateNode ( const std::string &  name)

◆ CreatePath()

SEFluidCircuitPath & SEFluidCircuit::CreatePath ( SEFluidCircuitNode src,
SEFluidCircuitNode tgt,
const std::string &  name 
)

Friends And Related Function Documentation

◆ PBCircuit

friend class PBCircuit
friend

◆ SECircuitManager

friend class SECircuitManager
friend

Member Data Documentation

◆ m_Mgr

SECircuitManager& SEFluidCircuit::m_Mgr
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.