Class Environment

Applied Stereotypes:
Implements Interfaces:

Defines the environment conditions of a scenario, e.g. time of day, weather and road condition. If one of the conditions is missing it means that it doesn't change.

Used in:
Catalog , EnvironmentAction
  Name Type Cardinality AppliedStereotypes Description
  name string 1..1 XSDattribute Name of the environment. If used in catalog name is required.
  parameterDeclarations ParameterDeclaration 0..* XSDwrapped, XSDelement Definition of additional parameters.
  timeOfDay TimeOfDay 0..1 XSDelement Time of the day during the simulation.
  weather Weather 0..1 XSDelement Weather conditions during the simulation.
  roadCondition RoadCondition 0..1 XSDelement Road conditions during the simulation.
XSD 1.3 Representation

<xsd:complexType name="Environment">
<xsd:element name="ParameterDeclarations" type="ParameterDeclarations" minOccurs="0"/>
<xsd:element name="TimeOfDay" type="TimeOfDay" minOccurs="0"/>
<xsd:element name="Weather" type="Weather" minOccurs="0"/>
<xsd:element name="RoadCondition" type="RoadCondition" minOccurs="0"/>
<xsd:attribute name="name" type="String" use="required"/>

XSD Transformation
UML Element Stereotype Description
parameterDeclarations XSDwrapper This property represents a wrapped list. In XSD, the complex type ParameterDeclarations is used as a wrapper.
Stereotype Details Information
  • Class
    • XSDcomplexType [modelGroup: "all"; mixed: "false"]
  • Property name
    • XSDattribute
  • Property parameterDeclarations
    • XSDwrapped [wrapperMin: "0"; wrapperMax: "1"]
    • XSDelement [position: "1"]
  • Property timeOfDay
    • XSDelement [position: "2"]
  • Property weather
    • XSDelement [position: "3"]
  • Property roadCondition
    • XSDelement [position: "4"]