Class Phase

Applied Stereotypes:
XSDcomplexType

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

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

XSD 1.1 Representation


<xsd:complexType name="Phase">
<xsd:sequence>
<xsd:element name="TrafficSignalState" type="TrafficSignalState" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="duration" type="Double" use="required"/>
<xsd:attribute name="name" type="String" 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.

Stereotype Details Information
  • Class
    • XSDcomplexType [modelGroup: "sequence"; mixed: "false"]
  • Property duration
    • XSDattribute
  • Property name
    • XSDattribute
  • Property trafficSignalStates
    • XSDunwrapped [xsdElementName: "TrafficSignalState"]
    • XSDelement [position: "1"]

To XSD To XSD Tree