mp.NODE_TYPE
- class mp.NODE_TYPE
mp.NODE_TYPE- Defines enumerated type for node types.- mp.NODE_TYPE Properties:
- mp.NODE_TYPE Methods:
is_valid()- returns true if the value is a valid node type
All properties are
Constantproperties and the class is aSealedclass. So the properties function as global constants which do not create an instance of the class, e.g.mp.NODE_TYPE.REF.- Property Summary
- PQ = 1
PQ node
- PV = 2
PV node
- REF = 3
reference node
- NONE = 4
isolated node
- Method Summary
- static is_valid(val)
Returns true if the value is a valid node type.
TorF = mp.NODE_TYPE.is_valid(val)
- Input:
val (integer) – node type value to check for validity
- Output:
TorF (logical) – true if
valis a valid node type