45 #define DEFAULT_VIEW "View #0" 53 #define SUMOTime_MAX std::numeric_limits<SUMOTime>::max() 62 : std::runtime_error(what) {}
79 unsigned char r, g, b, a;
108 : duration(_duration), duration1(_duration1), duration2(_duration2), phase(_phase) {}
118 TraCILogic(
const std::string& _subID,
int _type,
const std::map<std::string, double>& _subParameter,
int _currentPhaseIndex,
const std::vector<TraCIPhase>& _phases)
119 : subID(_subID), type(_type), subParameter(_subParameter), currentPhaseIndex(_currentPhaseIndex), phases(_phases) {}
132 TraCILink(
const std::string& _from,
const std::string& _via,
const std::string& _to)
133 : from(_from), via(_via), to(_to) {}
144 TraCIConnection(
const std::string& _approachedLane,
const bool _hasPrio,
const bool _isOpen,
const bool _hasFoe,
145 const std::string _approachedInternal,
const std::string _state,
const std::string _direction,
const double _length)
146 : approachedLane(_approachedLane), hasPrio(_hasPrio), isOpen(_isOpen), hasFoe(_hasFoe),
147 approachedInternal(_approachedInternal), state(_state), direction(_direction), length(_length) {}
bool allowsContinuation
Whether this lane allows continuing the route.
double length
Length of the vehicle.
double leaveTime
Leave-time of the vehicle in [s].
std::map< std::string, double > subParameter
std::string id
The id of the vehicle.
TraCIPhase(const SUMOTime _duration, const SUMOTime _duration1, const SUMOTime _duration2, const std::string &_phase)
int tlIndex
The tls index of the controlled link.
std::string approachedLane
double dist
The distance to the tls.
std::string id
The id of the next tls.
std::vector< TraCIPhase > phases
TraCIException(std::string what)
std::vector< std::string > stringList
TraCILogic(const std::string &_subID, int _type, const std::map< std::string, double > &_subParameter, int _currentPhaseIndex, const std::vector< TraCIPhase > &_phases)
std::string laneID
The id of the lane.
std::string typeID
Type of the vehicle in.
double length
The length than can be driven from that lane without lane change.
int bestLaneOffset
The offset of this lane from the best lane.
std::vector< std::string > continuationLanes
The sequence of lanes that best allows continuing the route without lane change.
double occupation
The traffic density along length.
char state
The current state of the tls.
std::vector< TraCIPosition > TraCIPositionVector
std::string approachedInternal
double entryTime
Entry-time of the vehicle in [s].
TraCIConnection(const std::string &_approachedLane, const bool _hasPrio, const bool _isOpen, const bool _hasFoe, const std::string _approachedInternal, const std::string _state, const std::string _direction, const double _length)
TraCILink(const std::string &_from, const std::string &_via, const std::string &_to)