From GridLAB-D Wiki
Jump to: navigation, search

The enumeration built-in data type is used to describe a value that can have one of several discrete states. An enumeration is distinguished from a set by the fact that sets can have any combination of the states, whereas enumerations can have only one at a time.


class my_class {
  enumeration {A=1, B=2, C=3, D=4} my_enum;
object my_class {
  my_enum A;

See also