scenario_simulator_v2 C++ API
Public Member Functions | Public Attributes | Friends | List of all members
openscenario_interpreter::syntax::TrafficSignalController Struct Reference

#include <traffic_signal_controller.hpp>

Inheritance diagram for openscenario_interpreter::syntax::TrafficSignalController:
Inheritance graph
[legend]
Collaboration diagram for openscenario_interpreter::syntax::TrafficSignalController:
Collaboration graph
[legend]

Public Member Functions

 TrafficSignalController ()=delete
 
 TrafficSignalController (TrafficSignalController &&)=delete
 
 TrafficSignalController (const TrafficSignalController &)=delete
 
 TrafficSignalController (const pugi::xml_node &, Scope &)
 
auto changePhaseTo (const String &) -> Object
 
auto changePhaseTo (std::list< Phase >::iterator) -> Object
 
auto currentPhaseExceeded () const -> bool
 
auto currentPhaseName () const -> const String &
 
auto currentPhaseSince () const -> double
 
auto cycleTime () const -> double
 
auto evaluate () -> Object
 
auto notifyBegin () -> void
 
auto shouldChangePhaseToBegin () -> bool
 

Public Attributes

const String name
 
const Double delay
 
const String reference
 
std::list< Phasephases
 

Friends

struct TrafficSignalControllerAction
 
struct TrafficSignals
 

Constructor & Destructor Documentation

◆ TrafficSignalController() [1/4]

openscenario_interpreter::syntax::TrafficSignalController::TrafficSignalController ( )
explicitdelete

◆ TrafficSignalController() [2/4]

openscenario_interpreter::syntax::TrafficSignalController::TrafficSignalController ( TrafficSignalController &&  )
explicitdelete

◆ TrafficSignalController() [3/4]

openscenario_interpreter::syntax::TrafficSignalController::TrafficSignalController ( const TrafficSignalController )
explicitdelete

◆ TrafficSignalController() [4/4]

openscenario_interpreter::syntax::TrafficSignalController::TrafficSignalController ( const pugi::xml_node &  node,
Scope scope 
)
explicit

Member Function Documentation

◆ changePhaseTo() [1/2]

auto openscenario_interpreter::syntax::TrafficSignalController::changePhaseTo ( const String phase_name) -> Object

◆ changePhaseTo() [2/2]

auto openscenario_interpreter::syntax::TrafficSignalController::changePhaseTo ( std::list< Phase >::iterator  next) -> Object

◆ currentPhaseExceeded()

auto openscenario_interpreter::syntax::TrafficSignalController::currentPhaseExceeded ( ) const -> bool

◆ currentPhaseName()

auto openscenario_interpreter::syntax::TrafficSignalController::currentPhaseName ( ) const -> const String &

◆ currentPhaseSince()

auto openscenario_interpreter::syntax::TrafficSignalController::currentPhaseSince ( ) const -> double

◆ cycleTime()

auto openscenario_interpreter::syntax::TrafficSignalController::cycleTime ( ) const -> double

◆ evaluate()

auto openscenario_interpreter::syntax::TrafficSignalController::evaluate ( ) -> Object

◆ notifyBegin()

auto openscenario_interpreter::syntax::TrafficSignalController::notifyBegin ( ) -> void

◆ shouldChangePhaseToBegin()

auto openscenario_interpreter::syntax::TrafficSignalController::shouldChangePhaseToBegin ( ) -> bool

Friends And Related Function Documentation

◆ TrafficSignalControllerAction

friend struct TrafficSignalControllerAction
friend

◆ TrafficSignals

friend struct TrafficSignals
friend

Member Data Documentation

◆ delay

const Double openscenario_interpreter::syntax::TrafficSignalController::delay

◆ name

const String openscenario_interpreter::syntax::TrafficSignalController::name

◆ phases

std::list<Phase> openscenario_interpreter::syntax::TrafficSignalController::phases

◆ reference

const String openscenario_interpreter::syntax::TrafficSignalController::reference

The documentation for this struct was generated from the following files: