scenario_simulator_v2 C++ API
private_action.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__PRIVATE_ACTION_HPP_
16 #define OPENSCENARIO_INTERPRETER__SYNTAX__PRIVATE_ACTION_HPP_
17 
24 #include <pugixml.hpp>
25 
27 {
28 inline namespace syntax
29 {
30 /* ---- PrivateAction ----------------------------------------------------------
31  *
32  * <xsd:complexType name="PrivateAction">
33  * <xsd:choice>
34  * <xsd:element name="LongitudinalAction" type="LongitudinalAction"/>
35  * <xsd:element name="LateralAction" type="LateralAction"/>
36  * <xsd:element name="VisibilityAction" type="VisibilityAction"/>
37  * <xsd:element name="SynchronizeAction" type="SynchronizeAction"/>
38  * <xsd:element name="ActivateControllerAction" type="ActivateControllerAction"/>
39  * <xsd:element name="ControllerAction" type="ControllerAction"/>
40  * <xsd:element name="TeleportAction" type="TeleportAction"/>
41  * <xsd:element name="RoutingAction" type="RoutingAction"/>
42  * </xsd:choice>
43  * </xsd:complexType>
44  *
45  * -------------------------------------------------------------------------- */
46 struct PrivateAction : public ComplexType
47 {
48  explicit PrivateAction(const pugi::xml_node &, Scope &);
49 
50  auto endsImmediately() const -> bool;
51 
52  auto run() -> void;
53 
54  auto start() -> void;
55 };
56 
60  CASE(LateralAction), //
61  // CASE(VisibilityAction),
62  // CASE(SynchronizeAction),
63  // CASE(ActivateControllerAction),
65  CASE(TeleportAction), //
66  CASE(RoutingAction), //
67 );
68 
70  const PrivateAction,
72  CASE(LateralAction), //
73  // CASE(VisibilityAction),
74  // CASE(SynchronizeAction),
75  // CASE(ActivateControllerAction),
77  CASE(TeleportAction), //
78  CASE(RoutingAction), //
79 );
80 } // namespace syntax
81 } // namespace openscenario_interpreter
82 
83 #endif // OPENSCENARIO_INTERPRETER__SYNTAX__PRIVATE_ACTION_HPP_
Definition: scope.hpp:154
#define CASE(NAME)
DEFINE_LAZY_VISITOR(Action, CASE(GlobalAction), CASE(UserDefinedAction), CASE(PrivateAction),)
Definition: hypot.hpp:22
Definition: controller_action.hpp:41
Definition: lateral_action.hpp:38
Definition: longitudinal_action.hpp:39
Definition: private_action.hpp:47
auto run() -> void
Definition: private_action.cpp:43
auto endsImmediately() const -> bool
Definition: private_action.cpp:38
PrivateAction(const pugi::xml_node &, Scope &)
Definition: private_action.cpp:22
auto start() -> void
Definition: private_action.cpp:48
Definition: routing_action.hpp:40
Definition: teleport_action.hpp:37