ansys.scade.apitools.create.declaration.create_enumeration#
- ansys.scade.apitools.create.declaration.create_enumeration(owner: scade.model.suite.Package, name: str, values: List[str], path: pathlib.Path | None = None, visibility: VK = VK.PUBLIC) scade.model.suite.NamedType #
Create a named type defined by an enumeration.
The type has a name and a list of values.
Parameters#
- ownersuite.Package
Owner of the type, which is either the model itself or a package.
- namestr
Name of the type.
- valuesList[str]
List of the enumeration values.
- pathPath | None, 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.- visibilityVK
Accessibility of the type.
Returns#
suite.NamedType