ReservedName#
module wntr.msx.elements
- class ReservedName[source]#
Bases:
VariableBase
Reserved name that should not be used
- Parameters:
name (str) – Reserved name.
note (str | dict | wntr.epanet.util.ENcomment) – Supplementary information regarding this variable, by default None
- Raises:
KeyExistsError – If the name has already been registered
- __init__(name, *, note=None)[source]#
Variable ABC init method.
Make sure you call this method from your concrete subclass
__init__
method:super().__init__(name, note=note)
- Parameters:
- Raises:
KeyExistsError – Name is already taken
ValueError – Name is a reserved word
- to_dict()#
Represent the object as a dictionary
- property var_type: VariableType#
Type of variable,
RESERVED
.