Skip to content

State Schema ​

txt
EMRALD_Model#/definitions/State
AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenForbiddennoneEMRALD_JsonSchemaV3_4.json*

State Type ​

object (State)

State Properties ​

PropertyTypeRequiredNullableDefined by
idstringOptionalcannot be nullEMRALD_Model
objTypeNot specifiedRequiredcannot be nullEMRALD_Model
namestringRequiredcannot be nullEMRALD_Model
descstringRequiredcannot be nullEMRALD_Model
stateTypestringRequiredcannot be nullEMRALD_Model
diagramNamestringRequiredcannot be nullEMRALD_Model
immediateActionsarrayRequiredcannot be nullEMRALD_Model
eventsarrayRequiredcannot be nullEMRALD_Model
eventActionsarrayRequiredcannot be nullEMRALD_Model
geometryInfoobjectOptionalcannot be nullEMRALD_Model
changeLogarrayOptionalcannot be nullEMRALD_Model
defaultSingleStateValuestringOptionalcannot be nullEMRALD_Model
requiredbooleanOptionalcannot be nullEMRALD_Model

id ​

id

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

id Type ​

string

objType ​

objType

  • is required

  • Type: unknown

  • cannot be null

  • defined in: EMRALD_Model

objType Type ​

unknown

objType Constraints ​

constant: the value of this property must be equal to:

json
"State"

name ​

referenace name in the model for state

name

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

name Type ​

string

desc ​

User entered description of the state

desc

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

desc Type ​

string

stateType ​

Type of the state

stateType

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

stateType Type ​

string

stateType Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"stStart"
"stKeyState"
"stStandard"
"stTerminal"

diagramName ​

Diagram the state belongs to, A state can only be in one diagram.

diagramName

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

diagramName Type ​

string

immediateActions ​

Array of name references for the immediate actions to be run when entering the state

immediateActions

  • is required

  • Type: string[]

  • cannot be null

  • defined in: EMRALD_Model

immediateActions Type ​

string[]

events ​

Array of name references to events. These event will be monitored for when in this state.

events

  • is required

  • Type: string[]

  • cannot be null

  • defined in: EMRALD_Model

events Type ​

string[]

eventActions ​

actions for the events in sibling "events" array. One to one relationship.

eventActions

eventActions Type ​

object[] (EventActionItems)

geometryInfo ​

position for the GUI

geometryInfo

geometryInfo Type ​

object (GeometryInfo)

changeLog ​

Type of the diagram.

changeLog

changeLog Type ​

object[] (ChangeLogItems)

defaultSingleStateValue ​

For single state diagrams. Boolean value for the diagram when evaluated in a logic tree. Ignore - removes that item from the logic calculation.

defaultSingleStateValue

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

defaultSingleStateValue Type ​

string

defaultSingleStateValue Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"True"
"False"
"Ignore"

required ​

If this is a template then it indicates the item must exist in the current model before using the template.

required

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

required Type ​

boolean