Class TimeToCollisionCondition

Applied Stereotypes:
XSDcomplexType

The currently predicted time to collision of a triggering entity/entities and either a reference entity or an explicit position is compared to a given time value. Time to collision is calculated as the distance divided by the relative speed. Acceleration of entities is not taken into consideration. For the relative speed calculation the same coordinate system and relative distance type applies as for the distance calculation. If the relative speed is negative, which means the entity is moving away from the position / the entities are moving away from each other, then the time to collision cannot be predicted and the condition evaluates to false. The logical operator for comparison is defined by the rule attribute. The property "alongRoute" is deprecated. If "coordinateSystem" or "relativeDistanceType" are set, "alongRoute" is ignored.

Used in:
EntityCondition
Properties
Name Type Cardinality AppliedStereotypes Description
alongRoute boolean 0..1 XSDattribute, deprecated True: routing is taken into account, e.g. turns will increase distance. False: straight line distance is used. This value is ignored if "coordinateSystem" or "relativeDistanceType" is set.
coordinateSystem CoordinateSystem 0..1 XSDattribute Definition of the coordinate system to be used for calculations. If not provided the value is interpreted as "entity". If set, "alongRoute" is ignored.
freespace boolean 1..1 XSDattribute True: time to collision is measured using the distance between closest bounding box points.False: reference point distance is used.
relativeDistanceType RelativeDistanceType 0..1 XSDattribute Definition of the coordinate system dimension(s) to be used for calculating distances. If set "alongRoute" is ignored. If not provided, value is interpreted as "euclideanDistance".
rule Rule 1..1 XSDattribute The operator (less, greater, equal).
value double 1..1 XSDattribute The time to collision value. Unit: s; Range: [0..inf[.
timeToCollisionConditionTarget TimeToCollisionConditionTarget 1..1 XSDelement The explicit position or a position defined through the current position of a reference entity.

Deprecation
  • Property alongRoute deprecated. With version 1.1. Use "coordiateSystem" and "relativeDistanceType".

XSD 1.1 Representation


<xsd:complexType name="TimeToCollisionCondition">
<xsd:all>
<xsd:element name="TimeToCollisionConditionTarget" type="TimeToCollisionConditionTarget"/>
</xsd:all>
<xsd:attribute name="alongRoute" type="Boolean">
<xsd:annotation>
<xsd:appinfo>
deprecated
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="freespace" type="Boolean" use="required"/>
<xsd:attribute name="rule" type="Rule" use="required"/>
<xsd:attribute name="value" type="Double" use="required"/>
<xsd:attribute name="relativeDistanceType" type="RelativeDistanceType"/>
<xsd:attribute name="coordinateSystem" type="CoordinateSystem"/>
</xsd:complexType>

Change log from version 1.0
  • Annotation changed
    • New Value
      The currently predicted time to collision of a triggering entity/entities and either a reference entity or an explicit position is compared to a given time value. Time to collision is calculated as the distance divided by the relative speed. Acceleration of entities is not taken into consideration. For the relative speed calculation the same coordinate system and relative distance type applies as for the distance calculation. If the relative speed is negative, which means the entity is moving away from the position / the entities are moving away from each other, then the time to collision cannot be predicted and the condition evaluates to false. The logical operator for comparison is defined by the rule attribute. The property "alongRoute" is deprecated. If "coordinateSystem" or "relativeDistanceType" are set, "alongRoute" is ignored.
      From 1.0.0
      The currently predicted time to collision of a triggering entity/entities and either a reference entity’s position or an explicit position is compared to a given time value. The logical operator for comparison is defined by the rule attribute.
  • Property 'coordinateSystem' created.
  • Property 'relativeDistanceType' created.
  • Property 'alongRoute'. Lower cardinality changed.
    • New Value
      0
      From 1.0.0
      1
  • Property 'alongRoute'. Annotation changed.
    • New Value
      True: routing is taken into account, e.g. turns will increase distance. False: straight line distance is used. This value is ignored if "coordinateSystem" or "relativeDistanceType" is set.
      From 1.0.0
      True: routing is taken into account, e.g. turns will increase distance. False: straight line distance is used.
  • Property 'alongRoute'. Stereotype <<deprecated>> applied.

Stereotype Details Information
  • Class
    • XSDcomplexType [modelGroup: "all"; mixed: "false"]
  • Property alongRoute
    • XSDattribute
    • deprecated [withVersion: "1.1"; comment: "Use "coordiateSystem" and "relativeDistanceType""]
  • Property coordinateSystem
    • XSDattribute
  • Property freespace
    • XSDattribute
  • Property relativeDistanceType
    • XSDattribute
  • Property rule
    • XSDattribute
  • Property value
    • XSDattribute
  • Property timeToCollisionConditionTarget
    • XSDelement [position: "1"]

To XSD To XSD Tree