Package: Simulink.data.dictionary
Superclasses:
Store enumerated type definition in data dictionary
An object of the Simulink.data.dictionary.EnumTypeDefinition
class
defines an enumerated data type in a data dictionary. You store the
object in a data dictionary entry so models linked to the dictionary
can use the enumerated type definition.
In the MATLAB® base workspace, objects of this class retain information about an enumerated type but do not define the type for use by other variables or by models.
When you use the function importEnumTypes
to
import the definitions of enumerated types to a data dictionary, Simulink® creates
a Simulink.data.dictionary.EnumTypeDefinition
object
in the dictionary for each imported definition. The dictionary stores
each object in an individual entry.
The constructor Simulink.data.dictionary.EnumTypeDefinition
creates
an instance of this class with default property values and a single
enumeration member that has underlying integer value 0
.
appendEnumeral | Add enumeration member to enumerated data type definition in data dictionary |
removeEnumeral | Remove enumeration member from enumerated data type definition in data dictionary |
Handle. To learn how handle classes affect copy operations, see Copying Objects.
You can use Model Explorer to add and modify enumerated data types stored in a data dictionary.