From GridLAB-D Wiki
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.
GLM
class my_class {
enumeration {A=1, B=2, C=3, D=4} my_enum;
}
object my_class {
my_enum A;
}