Class ParameterDeclaration

Applied Stereotypes:
XSDcomplexType, XSDwrapperType

Declaration of a typed parameter with a name and a default value. It is used for creating variations of the same scenario by using the ParameterValueDistributionDefinition in an additional file.
There are two options for applying ParameterValueDistributions:

* Pre-startup: Copy the scenario file and change/override the default value
* On startup: Keep the scenario file but on startup of the OSC Director inject parameter values e.g. through the command line.

The value of a parameter cannot change after startup during runtime.

Used in:
Controller , Environment , Maneuver , MiscObject , ParameterAction , ParameterAssignment , ParameterCondition , Pedestrian , Route , ScenarioDefinition , Story , Trajectory , Vehicle
Properties
  Name Type Cardinality AppliedStereotypes Description
  name string 1..1 XSDattribute Name of the parameter.
  parameterType ParameterType 1..1 XSDattribute Type of the parameter.
  value string 1..1 XSDattribute Value of the parameter as its default value.
  constraintGroups ValueConstraintGroup 0..* XSDunwrapped, XSDelement Defines zero or more constraint groups to the parameter value. Multiple constraint groups are combined by an OR. That means at least one constraint group has to evaluate to true to get the simulation started. If none of the constraint groups is satisfied the scenario should not be evaluated.
XSD 1.3 Representation


<xsd:complexType name="ParameterDeclaration">
<xsd:sequence>
<xsd:element name="ConstraintGroup" type="ValueConstraintGroup" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="String" use="required"/>
<xsd:attribute name="parameterType" 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 ParameterDeclarations
constraintGroups XSDunwrapped This property represents an unwrapped list in XSD. The element name 'ConstraintGroup' is used for the list elements.
Stereotype Details Information
  • Class
    • XSDcomplexType [modelGroup: "sequence"; mixed: "false"]
    • XSDwrapperType [min: "0"; xsdWrapperElementName: "ParameterDeclaration"; max: "-1"; xsdWrapperType: "ParameterDeclarations"]
  • Property name
    • XSDattribute
  • Property parameterType
    • XSDattribute
  • Property value
    • XSDattribute
  • Property constraintGroups
    • XSDunwrapped [xsdElementName: "ConstraintGroup"]
    • XSDelement [position: "1"]

To XSD