48 const double arrivalPosLat,
const std::string& group) :
49 myDestination(destination),
50 myDestinationStop(toStop),
51 myArrivalPos(arrivalPos),
52 myArrivalPosLat(arrivalPosLat),
184 return e->
getLanes()[0]->getShape().rotationAtOffset(at);
192 if (newDestStop !=
nullptr) {
std::vector< const MSEdge * > ConstMSEdgeVector
A road/street connecting two junctions.
const std::vector< MSLane * > & getLanes() const
Returns this edge's lanes.
Representation of a lane in the micro simulation.
double interpolateLanePosToGeometryPos(double lanePos) const
virtual const PositionVector & getShape(bool) const
The simulated network and simulation perfomer.
static const int UNDEFINED_DIRECTION
virtual ~MSStage()
destructor
const MSEdge * getDestination() const
returns the destination edge
double myArrivalPosLat
the lateral position at which we want to arrive
virtual ConstMSEdgeVector getEdges() const
the edges of the current stage
virtual double getEdgePos(SUMOTime now) const
virtual int getDirection() const
Return the movement directon on the edge.
virtual const MSEdge * getFromEdge() const
virtual double getEdgePosLat(SUMOTime now) const
virtual SUMOTime getTimeLoss(const MSTransportable *transportable) const
virtual SUMOTime getTravelTime() const
SUMOTime getDeparted() const
get departure time of stage
void setDeparted(SUMOTime now)
logs end of the step
virtual bool isWaitingFor(const SUMOVehicle *vehicle) const
Whether the transportable waits for the given vehicle.
MSStoppingPlace * myDestinationStop
the stop to reach by getting transported (if any)
virtual const std::string setArrived(MSNet *net, MSTransportable *transportable, SUMOTime now, const bool vehicleArrived)
logs end of the step
SUMOTime getArrived() const
get arrival time of stage
MSStage(const MSStageType type, const MSEdge *destination, MSStoppingPlace *toStop, const double arrivalPos, const double arrivalPosLat=0.0, const std::string &group="")
constructor
virtual double getSpeed() const
the speed of the transportable
virtual SUMOTime getWaitingTime() const
virtual SUMOTime getDuration() const
SUMOTime myArrived
the time at which this stage ended
void setDestination(const MSEdge *newDestination, MSStoppingPlace *newDestStop)
Position getLanePosition(const MSLane *lane, double at, double offset) const
get position on lane at length at with orthogonal offset
double getEdgeAngle(const MSEdge *e, double at) const
get angle of the edge at a certain position
virtual const MSEdge * getEdge() const
Returns the current edge.
static const double ROADSIDE_OFFSET
the offset for computing positions when standing at an edge
double myArrivalPos
the longitudinal position at which we want to arrive
Position getEdgePosition(const MSEdge *e, double at, double offset) const
get position on edge e at length at with orthogonal offset
const MSEdge * myDestination
the next edge to reach by getting transported
SUMOTime myDeparted
the time at which this stage started
A lane area vehicles can halt at.
double getBeginLanePosition() const
Returns the begin position of this stop.
double getEndLanePosition() const
Returns the end position of this stop.
A point in 2D or 3D with translation and scaling methods.
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
Representation of a vehicle.