mp.NODE_TYPE

class mp.NODE_TYPE

mp.NODE_TYPE - Defines enumerated type for node types.

mp.NODE_TYPE Properties:
  • PQ - PQ node (= 1)

  • PV - PV node (= 2)

  • REF - reference node (= 3)

  • NONE - isolated node (= 4)

mp.NODE_TYPE Methods:
  • is_valid() - returns true if the value is a valid node type

All properties are Constant properties and the class is a Sealed class. 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 (boolean) – true if val is a valid node type