network.NetworkNode
network.NetworkNode()Abstract base class for a node in a network.
A node represents a discrete location in the network (e.g. a junction or reservoir) that carries time-series data for one or more physical quantities.
Two properties must be implemented:
- :attr:
id- a unique string identifier for the node. - :attr:
data- a time-indexed :class:pandas.DataFramewhose columns are quantity names.
The concrete helper :class:BasicNode is provided for the common case where the data is already available as a DataFrame.
See Also
BasicNode : Ready-to-use concrete implementation. NetworkReach : Connects two NetworkNode instances. Network : Container that assembles nodes and reaches into a graph.
Attributes
| Name | Description |
|---|---|
| data | Time-indexed DataFrame with one column per quantity. |
| id | Unique string identifier for this node. |
| quantities | List of quantity names available at this node. |