tables.BaseNodeTable
Base class representing a database table with node-based geometry.
Usage
tables.BaseNodeTable(net_table)Methods
| Name | Description |
|---|---|
| get_downstream_links() | Get links MUIDs where specified node MUID is the downstream node. |
| get_number_of_links() | Get the number of links connected to a node. |
| get_number_of_links_enabled() | Get the number of enabled links connected to a node. |
| get_upstream_links() | Get link MUIDs where specified node MUID is the upstream node. |
get_downstream_links()
Get links MUIDs where specified node MUID is the downstream node.
Usage
get_downstream_links(node_muid)Parameters
node_muid: str- MUID of the node
Returns
list[str]- List of link MUIDs.
get_number_of_links()
Get the number of links connected to a node.
Usage
get_number_of_links(node_muid)Parameters
node_muid: str- MUID of the node
Returns
int- Number of links connected to the node
get_number_of_links_enabled()
Get the number of enabled links connected to a node.
Usage
get_number_of_links_enabled(node_muid)Parameters
node_muid: str- MUID of the node
Returns
int- Number of enabled links connected to the node
get_upstream_links()
Get link MUIDs where specified node MUID is the upstream node.
Usage
get_upstream_links(node_muid)Parameters
node_muid: str- MUID of the node
Returns
list[str]- List of MUIDs of the upstream links connected to the node