Class Phase

Applied Stereotypes:
XSDcomplexType

Phase of a TrafficSignalController. A TrafficSignalController has sequential phases. Each phase has multiple TrafficSignalStates.

Used in:
TrafficSignalControllerCondition , TrafficSignalControllerAction , TrafficSignalController
Properties
Name Type Cardinality AppliedStereotypes Description
name string 1..1 XSDattribute Name of the phase.
duration double 1..1 XSDattribute Duration of the phase. Unit: s; Range: [0..inf[.
trafficSignalStates TrafficSignalState 0..* XSDunwrapped Each phase has multiple TrafficSignalStates. One for each TrafficSignal that is controlled. E.g. phase1 (trafficSignal1:true;false;false, trafficSignal2:false;false;true).

Migration Information from XSD 0.9.1
Derived From:
OpenSCENARIO.xsd/OpenSCENARIO.RoadNetwork.Signals.Controller.Phase
Property Name XSD Type XSD 0.9.1 Name Migration
name Attribute type
duration Attribute duration
trafficSignalStates Element Signal Renamed

XSD 1.0 Representation


<xsd:complexType name="Phase">
<xsd:sequence>
<xsd:element name="TrafficSignalState" minOccurs="0" maxOccurs="unbounded" type="TrafficSignalState"/>
</xsd:sequence>
<xsd:attribute name="name" type="String" use="required"/>
<xsd:attribute name="duration" type="Double" use="required"/>
</xsd:complexType>

XSD Transformation
UML Element Stereotype Description
trafficSignalStates XSDunwrapped This property represents an unwrapped list in XSD. The element name 'TrafficSignalState' is used for the list elements.

To XSD To XSLT To XSD Tree