LinkStatus#

module wntr.network.base

class LinkStatus[source]#

Bases: IntEnum

Enum class for link statuses.

Warning

This is NOT the class for determining output status from an EPANET binary file. The class for output status is wntr.epanet.util.LinkTankStatus.

Enum Members

Closed

pipe/valve/pump is closed

Opened

pipe/valve/pump is open

Active

valve is partially open or pump has a specific setting

CV

pipe has a check valve

Open

alias for Opened


__init__(val)[source]#
ACTIVE = 2#
Active = 2#

valve is partially open or pump has a specific setting

CLOSED = 0#
CV = 3#

pipe has a check valve

Closed = 0#

pipe/valve/pump is closed

OPEN = 1#
OPENED = 1#
Open = 1#

alias for Opened

Opened = 1#

pipe/valve/pump is open

active = 2#
closed = 0#
cv = 3#
open = 1#
opened = 1#