scenario_simulator_v2 C++ API
entity_condition.hpp
Go to the documentation of this file.
1 // Copyright 2015 TIER IV, Inc. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef OPENSCENARIO_INTERPRETER__SYNTAX__ENTITY_CONDITION_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__ENTITY_CONDITION_HPP_
17 
20 #include <pugixml.hpp>
21 
23 {
24 inline namespace syntax
25 {
26 /*
27  EntityCondition (OpenSCENARIO XML 1.3)
28 
29  Defines a specific condition on an entity.
30 
31  <xsd:complexType name="EntityCondition">
32  <xsd:choice>
33  <xsd:element name="EndOfRoadCondition" type="EndOfRoadCondition"/>
34  <xsd:element name="CollisionCondition" type="CollisionCondition"/>
35  <xsd:element name="OffroadCondition" type="OffroadCondition"/>
36  <xsd:element name="TimeHeadwayCondition" type="TimeHeadwayCondition"/>
37  <xsd:element name="TimeToCollisionCondition" type="TimeToCollisionCondition"/>
38  <xsd:element name="AccelerationCondition" type="AccelerationCondition"/>
39  <xsd:element name="StandStillCondition" type="StandStillCondition"/>
40  <xsd:element name="SpeedCondition" type="SpeedCondition"/>
41  <xsd:element name="RelativeSpeedCondition" type="RelativeSpeedCondition"/>
42  <xsd:element name="TraveledDistanceCondition" type="TraveledDistanceCondition"/>
43  <xsd:element name="ReachPositionCondition" type="ReachPositionCondition">
44  <xsd:annotation>
45  <xsd:appinfo>
46  deprecated
47  </xsd:appinfo>
48  </xsd:annotation>
49  </xsd:element>
50  <xsd:element name="DistanceCondition" type="DistanceCondition"/>
51  <xsd:element name="RelativeDistanceCondition" type="RelativeDistanceCondition"/>
52  <xsd:element name="RelativeClearanceCondition" type="RelativeClearanceCondition"/>
53  <xsd:element name="AngleCondition" type="AngleCondition"/>
54  <xsd:element name="RelativeAngleCondition" type="RelativeAngleCondition"/>
55  </xsd:choice>
56  </xsd:complexType>
57  */
59 {
60  explicit EntityCondition(const pugi::xml_node &, Scope &, const TriggeringEntities &);
61 };
62 } // namespace syntax
63 } // namespace openscenario_interpreter
64 
65 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__ENTITY_CONDITION_HPP_
Definition: scope.hpp:154
Definition: hypot.hpp:22
Definition: entity_condition.hpp:59
EntityCondition(const pugi::xml_node &, Scope &, const TriggeringEntities &)
Definition: entity_condition.cpp:33
Definition: triggering_entities.hpp:40