![]() |
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 98 of file MSCModel_NonInteracting.h.
|
inline |
Definition at line 100 of file MSCModel_NonInteracting.h.
|
inline |
Definition at line 102 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 140 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 124 of file MSCModel_NonInteracting.cpp.
References MSContainer::MSContainerStage_Tranship::getEdge(), MSTransportable::Stage::getEdgeAngle(), and M_PI.
Referenced by MSContainer::MSContainerStage_Tranship::getAngle().
| 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 110 of file MSCModel_NonInteracting.cpp.
Referenced by MSContainer::MSContainerStage_Tranship::getEdgePos().
| Position CState::getPosition | ( | const MSContainer::MSContainerStage_Tranship & | stage, |
| SUMOTime | now | ||
| ) | const |
return the network coordinate of the container
Definition at line 116 of file MSCModel_NonInteracting.cpp.
References Position::distanceTo2D(), MSContainer::MSContainerStage_Tranship::getMaxSpeed(), MIN2(), PositionVector::positionAtOffset2D(), and STEPS2TIME.
Referenced by MSContainer::MSContainerStage_Tranship::getPosition().
| double CState::getSpeed | ( | const MSContainer::MSContainerStage_Tranship & | stage | ) | const |
return the current speed of the container
Definition at line 134 of file MSCModel_NonInteracting.cpp.
References MSContainer::MSContainerStage_Tranship::getMaxSpeed().
Referenced by MSContainer::MSContainerStage_Tranship::getSpeed().
|
static |
Definition at line 106 of file MSCModel_NonInteracting.h.
|
static |
Definition at line 102 of file MSCModel_NonInteracting.h.
|
static |
the offset for computing container positions when being transhiped
Definition at line 110 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 127 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 129 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 126 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 128 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 130 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 125 of file MSCModel_NonInteracting.h.
|
static |
Definition at line 107 of file MSCModel_NonInteracting.h.