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