Skip to content

Variable Schema ​

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

Variable Type ​

object (Variable)

Variable Properties ​

PropertyTypeRequiredNullableDefined by
idstringOptionalcannot be nullEMRALD_Model
objTypeNot specifiedRequiredcannot be nullEMRALD_Model
namestringRequiredcannot be nullEMRALD_Model
descstringOptionalcannot be nullEMRALD_Model
varScopestringRequiredcannot be nullEMRALD_Model
valueMergedRequiredcannot be nullEMRALD_Model
docLinkstringOptionalcannot be nullEMRALD_Model
docTypestringOptionalcannot be nullEMRALD_Model
docPathstringOptionalcannot be nullEMRALD_Model
pathMustExistbooleanOptionalcannot be nullEMRALD_Model
typestringRequiredcannot be nullEMRALD_Model
accrualStatesDataarrayOptionalcannot be nullEMRALD_Model
regExpLineintegerOptionalcannot be nullEMRALD_Model
begPositionintegerOptionalcannot be nullEMRALD_Model
numCharsintegerOptionalcannot be nullEMRALD_Model
regExpGroupintegerOptionalcannot be nullEMRALD_Model
resetOnRunsbooleanOptionalcannot be nullEMRALD_Model
resourceNamestringOptionalcannot be nullEMRALD_Model
sim3DIdstringOptionalcannot be nullEMRALD_Model
extSimstringOptionalcannot be nullEMRALD_Model
WatchEventCriteriastringOptionalcannot be nullEMRALD_Model
changeLogarrayOptionalcannot be nullEMRALD_Model
cumulativeStatsbooleanOptionalcannot be nullEMRALD_Model
monitorInSimbooleanOptionalcannot be nullEMRALD_Model
canMonitorbooleanOptionalcannot be nullEMRALD_Model
inVariablebooleanOptionalcannot be nullEMRALD_Model
outVariablebooleanOptionalcannot 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 ​

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
"Variable"

name ​

referenace name in the model for the variable

name

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

name Type ​

string

desc ​

User entered description of the variable

desc

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

desc Type ​

string

varScope ​

Context of use for the variable in the model.

varScope

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

varScope Type ​

string

varScope Constraints ​

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

ValueExplanation
"gtDocLink"
"gtAccrual"
"gtGlobal"
"gt3DSim"

value ​

The default value for the variable.

value

value Type ​

merged type (Details)

any of

If the varScope is gtDocLink then this is the expression defining path in the document to the variable is linked to. XPath for XML, JSONPath for JSON, or a RegularExpression for txt

docLink

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

string

docType ​

If the varScope is gtDocLink then this the type of document the variable can be linked to. XML, JSON or PlainText using a regular expression

docType

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

docType Type ​

string

docType Constraints ​

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

ValueExplanation
"dtXML"
"dtJSON"
"dtTextRegEx"

docPath ​

If the varScope is gtDocLink then this is the path to the document the variable is linked to.

docPath

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

docPath Type ​

string

pathMustExist ​

Flag, if true then the file in the docPath must exist when the simulation starts running. This is helpful to minimize errors.

pathMustExist

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

pathMustExist Type ​

boolean

type ​

This is the type of the variable, Bool, double, int, string

type

  • is required

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

type Type ​

string

type Constraints ​

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

ValueExplanation
"bool"
"double"
"int"
"string"

accrualStatesData ​

Optional. If the variable varScope is gtAccrual, then these are the states used for calculating the variables value over time.

accrualStatesData

accrualStatesData Type ​

object[] (accrualStatesDataItems)

regExpLine ​

Optional. For variable varScope of gtDocLink, docType dtTxtRegExp, this is the regular expression string.

regExpLine

  • is optional

  • Type: integer

  • cannot be null

  • defined in: EMRALD_Model

regExpLine Type ​

integer

begPosition ​

Optional. For variable varScope of gtDocLink, docType dtTxtRegExp, this the start possition after the regular expression finds its match for reading or writing the value of the variable.

begPosition

  • is optional

  • Type: integer

  • cannot be null

  • defined in: EMRALD_Model

begPosition Type ​

integer

numChars ​

Optional. For variable varScope of gtDocLink, docType dtTxtRegExp, this how many characters to read for the value of the variable

numChars

  • is optional

  • Type: integer

  • cannot be null

  • defined in: EMRALD_Model

numChars Type ​

integer

regExpGroup ​

Optional. For variable varScope of gtDocLink, docType dtTxtRegExp, if this is defined, the value will be read from the given group within the user's regex expression

regExpGroup

  • is optional

  • Type: integer

  • cannot be null

  • defined in: EMRALD_Model

regExpGroup Type ​

integer

resetOnRuns ​

Optional, this specifies if the value of the variable is to be reset to the default value on each run or retain the value from the last run.

resetOnRuns

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

resetOnRuns Type ​

boolean

resourceName ​

Optional. If the variable varScope is gt3DSim, this is the name reference to the external simulation to link to for the value.

resourceName

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

resourceName Type ​

string

sim3DId ​

Optional. For variables of varScope gt3DSim, this is the external simulations name of the variable. It is used in sending a message to the external simulation.

sim3DId

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

sim3DId Type ​

string

extSim ​

Optional. For variables of varScope gt3DSim, this is the external simulation the variable is linked to.

extSim

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

extSim Type ​

string

WatchEventCriteria ​

Optional. For variables of varScope gt3DSim, an fParser boolean expression (e.g. '(valve_12 > 5) & (valve_12 < 10)') the external simulation must satisfy before reporting this variable. Sent in the initial coupling message. When omitted the variable is reported on every change.

WatchEventCriteria

  • is optional

  • Type: string

  • cannot be null

  • defined in: EMRALD_Model

WatchEventCriteria Type ​

string

changeLog ​

Type of the diagram.

changeLog

changeLog Type ​

object[] (ChangeLogItems)

cumulativeStats ​

Flag to indicate the user want to do cumulative statistics in the results.

cumulativeStats

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

cumulativeStats Type ​

boolean

monitorInSim ​

Flag to have the monitor variable check box checked in the solver by default.

monitorInSim

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

monitorInSim Type ​

boolean

canMonitor ​

Flag to indicate if the variable can be monitored in the solver. This removes it from the solver UI if false. Must be true if monitorInSim is true.

canMonitor

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

canMonitor Type ​

boolean

inVariable ​

Optional. Flag marking this variable as a simulation input - its value is supplied into a run (for example set by a coupled/external application or used as a run parameter).

inVariable

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

inVariable Type ​

boolean

outVariable ​

Optional. Flag marking this variable as a simulation output - its value is produced during a run and exposed to results or a coupled/external application.

outVariable

  • is optional

  • Type: boolean

  • cannot be null

  • defined in: EMRALD_Model

outVariable Type ​

boolean

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