|
double | _sActual = 0.0 |
|
std::map< unsigned long, _StopPoint > | _elements {} |
|
|
static constexpr const double | DELETE_AFTER_DISTANCE = 10.0 |
| Distance after which the stop point is deleted from the list.
|
|
◆ addStopPoint()
bool agent_model::StopHorizon::addStopPoint |
( |
unsigned long |
id, |
|
|
double |
sStop, |
|
|
double |
standingTime |
|
) |
| |
|
inline |
Adds a stop point to the list if it doesn't exist already
- Parameters
-
id | ID of the stop |
sStop | Absolute position of the stop |
standingTime | The time the vehicle shall stand at the given stop (inf: until reset) |
- Returns
- Flag to indicate if the stop point was added
◆ getNextStop()
StopPoint agent_model::StopHorizon::getNextStop |
( |
| ) |
|
|
inline |
Returns the next stop point
- Returns
◆ init()
void agent_model::StopHorizon::init |
( |
double |
s | ) |
|
|
inline |
Inits the stop horizon
- Parameters
-
◆ stopped()
bool agent_model::StopHorizon::stopped |
( |
unsigned long |
id, |
|
|
double |
actualTime |
|
) |
| |
|
inline |
Marks the given stop as stopped
- Parameters
-
id | ID of the stop |
actualTime | The actual simulation time |
- Returns
- Returns a flag whether the time was set or not
◆ update()
void agent_model::StopHorizon::update |
( |
double |
actualPosition, |
|
|
double |
actualTime |
|
) |
| |
|
inline |
Updates the actual position
- Parameters
-
actualPosition | Actual position |
actualTime | Actual simulation time |
The documentation for this class was generated from the following file: