Skip to content

State Schema

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

State Type

object (State)

State Properties

PropertyTypeRequiredNullableDefined by
idstringOptionalcannot be nullEMRALD_Model
objTypestringRequiredcannot 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

For event type of etDistribution this is the name of the distribution parameter.

objType

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

objType Type

string

objType Constraints

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

ValueExplanation
"Diagram"
"State"
"Action"
"Event"
"ExtSim"
"LogicNode"
"Variable"
"EMRALD_Model"

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