DGL does not directly support enumerated data types. Functions that return discrete numerical values are considered to be of type
INTEGER
. The Documentor enables you to reference these numerical values by name. In reality, these names are internally defined as predefined constants in DGL. These names contain the prefixstm_
.For example, the function
stm_r_st_type
extracts the type of state specified in the function call. The possible state types arestm_st_and
,stm_st_or
,stm_st_diagram
, andstm_st_component
. These correspond to the values 0, 1, 2, 3 (respectively).You can use the value names in your template. For example:
The possible values that functions return, and their names, are documented in the function reference sections.