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 () | |
SUMOReal | getAngle (const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const |
return the direction in which the container heading to More... | |
SUMOReal | 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... | |
SUMOReal | 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 SUMOReal | LATERAL_OFFSET |
the offset for computing container positions when being transhiped More... | |
static const int | UNDEFINED_DIRECTION |
Private Attributes | |
SUMOReal | myCurrentBeginPos |
Position | myCurrentBeginPosition |
SUMOTime | myCurrentDuration |
SUMOReal | myCurrentEndPos |
Position | myCurrentEndPosition |
SUMOTime | myLastEntryTime |
Definition at line 99 of file MSCModel_NonInteracting.h.
|
inline |
Definition at line 101 of file MSCModel_NonInteracting.h.
|
inline |
Definition at line 103 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 141 of file MSCModel_NonInteracting.cpp.
References MSContainer::MSContainerStage_Tranship::getArrivalPos(), MSContainer::MSContainerStage_Tranship::getDepartPos(), MSContainer::MSContainerStage_Tranship::getFromEdge(), MSContainer::MSContainerStage::getLanePosition(), MSEdge::getLanes(), MSContainer::MSContainerStage_Tranship::getMaxSpeed(), MSContainer::MSContainerStage_Tranship::getToEdge(), MAX2(), and TIME2STEPS.
Referenced by MSCModel_NonInteracting::add(), and MSCModel_NonInteracting::MoveToNextEdge::execute().
SUMOReal 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(), MSContainer::MSContainerStage::getEdgeAngle(), and SUMOReal.
SUMOReal 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.
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 MSContainer::MSContainerStage_Tranship::getMaxSpeed(), MIN2(), PositionVector::positionAtOffset2D(), STEPS2TIME, and SUMOReal.
SUMOReal CState::getSpeed | ( | const MSContainer::MSContainerStage_Tranship & | stage | ) | const |
return the current speed of the container
Definition at line 135 of file MSCModel_NonInteracting.cpp.
References MSContainer::MSContainerStage_Tranship::getMaxSpeed().
|
static |
Definition at line 107 of file MSCModel_NonInteracting.h.
|
static |
Definition at line 103 of file MSCModel_NonInteracting.h.
|
static |
the offset for computing container positions when being transhiped
Definition at line 111 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 127 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 129 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 131 of file MSCModel_NonInteracting.h.
|
private |
Definition at line 126 of file MSCModel_NonInteracting.h.
|
static |
Definition at line 108 of file MSCModel_NonInteracting.h.