![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSCModel_NonInteracting.h>
Public Member Functions | |
| SUMOTime | computeTranshipTime (const MSEdge *prev, const MSContainer::MSContainerStage_Tranship &stage, SUMOTime currentTime) |
| compute tranship time on edge and update state members More... | |
| CState () | |
| double | getAngle (const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const |
| return the direction in which the container heading to More... | |
| double | getEdgePos (const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const |
| return the offset from the start of the current edge measured in its natural direction More... | |
| Position | getPosition (const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const |
| return the network coordinate of the container More... | |
| double | getSpeed (const MSContainer::MSContainerStage_Tranship &stage) const |
| return the current speed of the container More... | |
| ~CState () | |
Static Public Attributes | |
| static const int | BACKWARD |
| static const int | FORWARD |
| static const double | LATERAL_OFFSET |
| the offset for computing container positions when being transhiped More... | |
| static const int | UNDEFINED_DIRECTION |
Private Attributes | |
| double | myCurrentBeginPos |
| Position | myCurrentBeginPosition |
| SUMOTime | myCurrentDuration |
| double | myCurrentEndPos |
| Position | myCurrentEndPosition |
| SUMOTime | myLastEntryTime |
Definition at line 91 of file MSCModel_NonInteracting.h.
|
inline |
Definition at line 93 of file MSCModel_NonInteracting.h.
|
inline |
Definition at line 95 of file MSCModel_NonInteracting.h.
| SUMOTime CState::computeTranshipTime | ( | const MSEdge * | prev, |
| const MSContainer::MSContainerStage_Tranship & | stage, | ||
| SUMOTime | currentTime | ||
| ) |
compute tranship time on edge and update state members
Definition at line 133 of file MSCModel_NonInteracting.cpp.
References MSContainer::MSContainerStage_Tranship::getArrivalPos(), MSContainer::MSContainerStage_Tranship::getDepartPos(), MSContainer::MSContainerStage_Tranship::getFromEdge(), MSTransportable::Stage::getLanePosition(), MSEdge::getLanes(), MSContainer::MSContainerStage_Tranship::getMaxSpeed(), MSContainer::MSContainerStage_Tranship::getToEdge(), MAX2(), and TIME2STEPS.
Referenced by MSCModel_NonInteracting::add(), and MSCModel_NonInteracting::MoveToNextEdge::execute().
| double CState::getAngle | ( | const MSContainer::MSContainerStage_Tranship & | stage, |
| SUMOTime | now | ||
| ) | const |
return the direction in which the container heading to
Definition at line 117 of file MSCModel_NonInteracting.cpp.
References MSContainer::MSContainerStage_Tranship::getEdge(), MSTransportable::Stage::getEdgeAngle(), and M_PI.
| double CState::getEdgePos | ( | const MSContainer::MSContainerStage_Tranship & | stage, |
| SUMOTime | now | ||
| ) | const |
return the offset from the start of the current edge measured in its natural direction
Definition at line 103 of file MSCModel_NonInteracting.cpp.
| Position CState::getPosition | ( | const MSContainer::MSContainerStage_Tranship & | stage, |
| SUMOTime | now | ||
| ) | const |
return the network coordinate of the container
Definition at line 109 of file MSCModel_NonInteracting.cpp.
References Position::distanceTo2D(), MSContainer::MSContainerStage_Tranship::getMaxSpeed(), MIN2(), PositionVector::positionAtOffset2D(), and STEPS2TIME.
| double CState::getSpeed | ( | const MSContainer::MSContainerStage_Tranship & | stage | ) | const |
return the current speed of the container
Definition at line 127 of file MSCModel_NonInteracting.cpp.
References MSContainer::MSContainerStage_Tranship::getMaxSpeed().
|
static |
Definition at line 99 of file MSCModel_NonInteracting.h.
|
static |
Definition at line 95 of file MSCModel_NonInteracting.h.
|
static |
the offset for computing container positions when being transhiped
Definition at line 103 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 120 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 122 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 119 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 121 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 123 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 118 of file MSCModel_NonInteracting.h.
|
static |
Definition at line 100 of file MSCModel_NonInteracting.h.