- create_enumeration(owner, name, values, path=None, visibility=VK.PUBLIC)#
Create a named type defined by an enumeration.
The type has a name and a list of values.
- Parameters:
- owner
suite.Package
Owner of the type, which is either the model itself or a package.
- name
str
Name of the type.
- values
List
[str
] List of the enumeration values.
- path
Path
, default:None
Path of the file for storing the type. This parameter is ignored if the owner is a package. When the path is
None
and owner is the model, the type is stored in the modelβs default file.- visibility
VK
Accessibility of the type.
- owner
- Returns:
suite.NamedType