 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef MSCModel_NonInteracting_h
18 #define MSCModel_NonInteracting_h
double getSpeed(const MSContainer::MSContainerStage_Tranship &stage) const
return the current speed of the container
static void cleanup()
remove state at simulation end
Representation of a lane in the micro simulation.
static const int UNDEFINED_DIRECTION
The base class for an intersection.
SUMOTime myCurrentDuration
SUMOTime execute(SUMOTime currentTime)
Executes the command.
The simulated network and simulation perfomer.
MSTransportable * myContainer
Position myCurrentEndPosition
~MSCModel_NonInteracting()
CState * add(MSTransportable *container, MSContainer::MSContainerStage_Tranship *stage, SUMOTime now)
register the given container as a transhiped container
The container following model for tranship.
MSNet * myNet
the net to which to issue moveToNextEdge commands
double getAngle(const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const
return the direction in which the container heading to
A point in 2D or 3D with translation and scaling methods.
MSCModel_NonInteracting(MSNet *net)
Constructor (it should not be necessary to construct more than one instance)
A road/street connecting two junctions.
static MSCModel_NonInteracting * myModel
static const int BACKWARD
Base (microsim) event class.
MoveToNextEdge & operator=(const MoveToNextEdge &)
Invalidated assignment operator.
SUMOTime computeTranshipTime(const MSEdge *prev, const MSContainer::MSContainerStage_Tranship &stage, SUMOTime currentTime)
compute tranship time on edge and update state members
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
static const double LATERAL_OFFSET
the offset for computing container positions when being transhiped
MoveToNextEdge(MSTransportable *container, MSContainer::MSContainerStage_Tranship &tranship)
Position getPosition(const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const
return the network coordinate of the container
Position myCurrentBeginPosition
MSContainer::MSContainerStage_Tranship & myParent
static MSCModel_NonInteracting * getModel()