Base class for walls and flow devices connecting reactors. More...
#include <ConnectorNode.h>
Base class for walls and flow devices connecting reactors.
In a reactor network, walls and flow devices (e.g., valves, pressure regulators) represent nodes in a directed bipartite graph - a graph whose vertices can be divided into two disjoint sets such that no two vertices within the same set are adjacent - with reactors forming the second set of nodes.
Definition at line 27 of file ConnectorNode.h.
Public Member Functions | |
ConnectorNode (const string &name="(none)") | |
Transitional constructor. | |
ConnectorNode (shared_ptr< ReactorBase > r0, shared_ptr< ReactorBase > r1, const string &name="(none)") | |
Instantiate a ConnectorNode object with associated ReactorBase objects. | |
ConnectorNode (const ConnectorNode &)=delete | |
ConnectorNode & | operator= (const ConnectorNode &)=delete |
virtual string | type () const |
String indicating the connector implemented. | |
string | name () const |
Retrieve connector name. | |
void | setName (const string &name) |
Set connector name. | |
void | setDefaultName (map< string, int > &counts) |
Set the default name of a connector. Returns false if it was previously set. | |
Protected Attributes | |
pair< shared_ptr< ReactorBase >, shared_ptr< ReactorBase > > | m_nodes |
Pair of reactors forming end points of the connector. | |
string | m_name |
ConnectorNode name. | |
bool | m_defaultNameSet = false |
true if default name has been previously set. | |
|
inline |
Transitional constructor.
Definition at line 32 of file ConnectorNode.h.
|
inline |
Instantiate a ConnectorNode object with associated ReactorBase objects.
r0 | First reactor. |
r1 | Second reactor. |
name | Name of the connector. |
Definition at line 38 of file ConnectorNode.h.
|
inlinevirtual |
String indicating the connector implemented.
Usually corresponds to the name of the derived class.
Reimplemented in MassFlowController, PressureController, Valve, FlowDevice, WallBase, and Wall.
Definition at line 47 of file ConnectorNode.h.
|
inline |
Retrieve connector name.
Definition at line 52 of file ConnectorNode.h.
|
inline |
Set connector name.
Definition at line 57 of file ConnectorNode.h.
void setDefaultName | ( | map< string, int > & | counts | ) |
Set the default name of a connector. Returns false
if it was previously set.
Definition at line 12 of file ConnectorNode.cpp.
|
protected |
Pair of reactors forming end points of the connector.
Definition at line 66 of file ConnectorNode.h.
|
protected |
ConnectorNode name.
Definition at line 68 of file ConnectorNode.h.
|
protected |
true
if default name has been previously set.
Definition at line 69 of file ConnectorNode.h.