Skip to content

Event Schema

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

Event Type

object (Event)

Event Properties

PropertyTypeRequiredNullableDefined by
idstringOptionalcannot be nullEMRALD_Model
objTypestringRequiredcannot be nullEMRALD_Model
namestringRequiredcannot be nullEMRALD_Model
descstringRequiredcannot be nullEMRALD_Model
mainItembooleanRequiredcannot be nullEMRALD_Model
evTypestringRequiredcannot be nullEMRALD_Model
allItemsbooleanOptionalcannot be nullEMRALD_Model
triggerStatesarrayOptionalcannot be nullEMRALD_Model
varNamesarrayOptionalcannot be nullEMRALD_Model
ifInStatebooleanOptionalcannot be nullEMRALD_Model
onSuccessbooleanOptionalcannot be nullEMRALD_Model
triggerOnFalsebooleanOptionalcannot be nullEMRALD_Model
logicTopstringOptionalcannot be nullEMRALD_Model
lambdaMergedOptionalcannot be nullEMRALD_Model
lambdaTimeRatestringOptionalcannot be nullEMRALD_Model
useVariablebooleanOptionalcannot be nullEMRALD_Model
onVarChangestringOptionalcannot be nullEMRALD_Model
timestringOptionalcannot be nullEMRALD_Model
timeVariableUnitstringOptionalcannot be nullEMRALD_Model
fromSimStartbooleanOptionalcannot be nullEMRALD_Model
extEventTypestringOptionalcannot be nullEMRALD_Model
variablestringOptionalcannot be nullEMRALD_Model
codestringOptionalcannot be nullEMRALD_Model
distTypestringOptionalcannot be nullEMRALD_Model
parametersarrayOptionalcannot be nullEMRALD_Model
dfltTimeRatestringOptionalcannot be nullEMRALD_Model
changeLogarrayOptionalcannot be nullEMRALD_Model
requiredbooleanOptionalcannot be nullEMRALD_Model

id

Optional, internal use only.

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 event in the model.

name

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

name Type

string

desc

User entered description of the event.

desc

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

desc Type

string

mainItem

Is this a global item to show up in the global list, If false it showes up in local or all list.

mainItem

  • is required

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

mainItem Type

boolean

evType

Type of the event

evType

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

evType Type

string

evType Constraints

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

ValueExplanation
"etStateCng"
"etComponentLogic"
"etFailRate"
"etTimer"
"et3dSimEv"
"etDistribution"
"etVarCond"

allItems

Optional. For event type etStateCng. Flag to indicate if all the items in the triggerStates need to occure as specified or just one of them.

allItems

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

allItems Type

boolean

triggerStates

Optional. For event type etStateCng. List of state name references as part of the criteria needed to trigger the event. These are the states that need to be entered or exited to tirgger the event.

triggerStates

  • is optional

  • Type: string[]

  • cannot be null

  • defined in: EMRALD_Model

triggerStates Type

string[]

varNames

Optional, Name references for all variables used in scripts if the event type uses scripts.

varNames

  • is optional

  • Type: string[]

  • cannot be null

  • defined in: EMRALD_Model

varNames Type

string[]

ifInState

Optional. For event type etStateCng, flag to indicate that event is triggired when entering or exiting states listed in triggerStates array. On Enter State/s or On Exit State/s

ifInState

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

ifInState Type

boolean

onSuccess

Optional. For event type etStateCng, flag to indicate that event is triggering needs all the items or just one or rmore from the states listed in triggerStates array. checkbox - All Items

onSuccess

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

onSuccess Type

boolean

triggerOnFalse

Optional. For event type etComponentLogic, flag to indicate that event is triggered if logic tree evaluates to a False, otherwise it triggeres on true.

triggerOnFalse

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

triggerOnFalse Type

boolean

logicTop

Optional. For event type etComponentLogic, this is the logic tree name to be evaluated for triggering the event.

logicTop

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

logicTop Type

string

lambda

Optional. Parameter for a event with type of etFailRate. It is either a number or the name of a variable if useVariable is true

lambda

lambda Type

merged type (Details)

any of

lambdaTimeRate

Optional. arameter for a event with type of etFailRate. It is the lambda value time frequency.

lambdaTimeRate

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

lambdaTimeRate Type

string

useVariable

Optional. Indicates that variables can be used for the fields

useVariable

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

useVariable Type

boolean

onVarChange

Optional. When an event uses a variable and that variable changes, this tells the code how to update the event.

onVarChange

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

onVarChange Type

string

onVarChange Constraints

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

ValueExplanation
"ocIgnore"
"ocResample"
"ocAdjust"

time

Optional, For events of type etTimer. This is a time or variable that indicates the time for the event.

time

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

time Type

string

timeVariableUnit

Optional, For events of type etTimer. This is a time unit if a variable is used for the time. Example X min.

timeVariableUnit

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

timeVariableUnit Type

string

timeVariableUnit Constraints

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

ValueExplanation
""
"trYears"
"trDays"
"trHours"
"trMinutes"
"trSeconds"

fromSimStart

Optional, For time based events, is the time from the beginning of the simulation [true] or from when the state was entered.

fromSimStart

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

fromSimStart Type

boolean

extEventType

Optional. For events of type et3dSimEv. This the type of message being sent to the external simulation. See the external messeage JSON schema.

extEventType

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

extEventType Type

string

extEventType Constraints

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

ValueExplanation
"etCompEv"
"etEndSim"
"etStatus"

variable

Optional. For event type et3dSimEv and extEventType etCompEv. It is the reference name for the variable. If that variable is modified by the external code, then the script is executed to determine if the event is triggered.

variable

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

variable Type

string

code

Optional. For event type et3dSimEv and extEventType etCompEv. It is the reference name for the variable. If that variable is modified by the external code, then this code script is executed to determine if the event is triggered.

code

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

code Type

string

distType

Optional. For event type of etDistribution this is the type of distribution the user selected.

distType

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

distType Type

string

distType Constraints

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

ValueExplanation
"dtNormal"
"dtExponential"
"dtWeibull"
"dtLogNormal"
"dtTriangular"
"dtGamma"
"dtGompertz"
"dtUniform"
"dtBeta"

parameters

Optional. For event type of etDistribution this is an array of properties for the distribution calculation.

parameters

parameters Type

object[] (EventDistributionParameter)

dfltTimeRate

Optional, For events of type etTimer. This is a time unit if a variable is used for the time. Example X min.

dfltTimeRate

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

dfltTimeRate Type

string

dfltTimeRate Constraints

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

ValueExplanation
""
"trYears"
"trDays"
"trHours"
"trMinutes"
"trSeconds"

changeLog

Type of the diagram.

changeLog

changeLog Type

object[] (ChangeLogItems)

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