Class VariableDeclaration

Applied Stereotypes:
XSDcomplexType, XSDwrapperType

Declaration of a typed variable with a name and a default value. Its value can change during runtime either from within the scenario (OSC Model instance) by using a VariableAction or can be also set from external side, e.g. by a test software. For this the Simulator Core needs to provide an interface to change variable values. The value can be used to either trigger Events in the scenario with VariableConditions or it can be used on external side, e.g. a test software to trigger test steps. For this the Simulator Core needs to provide an interface to read the variable values.

Used in:
ScenarioDefinition , VariableAction , VariableCondition
Properties
  Name Type Cardinality AppliedStereotypes Description
  name string 1..1 XSDattribute Name of the variable.
  value string 1..1 XSDattribute Initialization value of the variable (must be convertible to variableType).
  variableType ParameterType 1..1 XSDattribute Type of the variable.
XSD 1.3 Representation


<xsd:complexType name="VariableDeclaration">
<xsd:attribute name="name" type="String" use="required"/>
<xsd:attribute name="variableType" type="ParameterType" use="required"/>
<xsd:attribute name="value" type="String" use="required"/>
</xsd:complexType>

XSD Transformation
UML Element Stereotype Description
Class XSDwrapperType A complex type wrapper is created in XSD for this type. See VariableDeclarations
Stereotype Details Information
  • Class
    • XSDcomplexType [modelGroup: "sequence"; mixed: "false"]
    • XSDwrapperType [min: "0"; xsdWrapperElementName: "VariableDeclaration"; max: "-1"; xsdWrapperType: "VariableDeclarations"]
  • Property name
    • XSDattribute
  • Property value
    • XSDattribute
  • Property variableType
    • XSDattribute

To XSD