Class TimeToCollisionCondition

Applied Stereotypes:

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:
  Name Type Cardinality AppliedStereotypes Description
D 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".
  routingAlgorithm RoutingAlgorithm 0..1 XSDattribute Algorithm for path selection/calculation between two positions across roads. Only relevant, if CoordinateSystem is "road"/"lane". Default value if omitted: "undefined".
  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.
  • Property alongRoute deprecated. With version 1.1. Use "coordiateSystem" and "relativeDistanceType".
XSD 1.3 Representation

<xsd:complexType name="TimeToCollisionCondition">
<xsd:element name="TimeToCollisionConditionTarget" type="TimeToCollisionConditionTarget"/>
<xsd:attribute name="alongRoute" type="Boolean">
<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:attribute name="routingAlgorithm" type="RoutingAlgorithm"/>

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 routingAlgorithm
    • XSDattribute
  • Property rule
    • XSDattribute
  • Property value
    • XSDattribute
  • Property timeToCollisionConditionTarget
    • XSDelement [position: "1"]