332 std::map<const MESegment* const, SUMOTime>
myStops;
void updateDetectorForWriting(MSMoveReminder *rem, SUMOTime currentTime, SUMOTime exitTime)
Updates a single vehicle detector if present.
void loadState(const SUMOSAXAttributes &attrs, const SUMOTime offset)
Loads the state of this vehicle from the given description.
bool isParking() const
Returns whether the vehicle is parking.
bool addStop(const SUMOVehicleParameter::Stop &stopPar, std::string &errorMsg, SUMOTime untilOffset=0)
Adds a stop.
bool hasArrived() const
Returns whether this vehicle has already arived (reached the arrivalPosition on its final edge) ...
SUMOTime getBlockTime() const
Returns the time at which the vehicle was blocked.
A vehicle from the mesoscopic point of view.
MSLane * getLane() const
Returns the lane the vehicle is on.
The vehicle arrived at a junction.
SUMOReal getSlope() const
Returns the slope of the road at vehicle's position.
SUMOTime getStoptime(const MESegment *const seg) const
Returns how long to stop at the given segment.
bool isStoppedTriggered() const
Returns whether the vehicle is on a triggered stop.
SUMOTime getWaitingTime() const
Returns the duration for which the vehicle was blocked.
SUMOReal getSpeed() const
Returns the vehicle's estimated speed assuming no delays.
Notification
Definition of a vehicle state.
SUMOTime getEventTime() const
Returns the (planned) time at which the vehicle leaves his current cell.
std::vector< const MSEdge * > ConstMSEdgeVector
The base class for microscopic and mesoscopic vehicles.
SUMOTime getLastEntryTime() const
Returns the time the vehicle entered the current segment.
SUMOReal getAverageSpeed() const
Returns the vehicle's estimated average speed on the segment assuming no further delays.
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
SUMOReal getConservativeSpeed(SUMOTime &earliestArrival) const
Returns the vehicle's estimated speed taking into account delays.
SUMOReal getEventTimeSeconds() const
Returns the earliest leave time for the current segment.
void setBlockTime(const SUMOTime t)
Sets the time at which the vehicle was blocked.
The car-following model and parameter.
SUMOReal getBlockTimeSeconds() const
Returns the time at which the vehicle was blocked on the current segment.
bool isStopped() const
Returns whether the vehicle is at a stop.
bool isOnRoad() const
Returns the information whether the vehicle is on a road (is simulated)
Encapsulated SAX-Attributes.
A point in 2D or 3D with translation and scaling methods.
SUMOReal getLastEntryTimeSeconds() const
Returns the entry time for the current segment.
void setLastEntryTime(SUMOTime t)
Sets the entry time for the current segment.
Position getPosition(const SUMOReal offset=0) const
Return current position (x/y, cartesian)
SUMOTime myLastEntryTime
The time the vehicle entered its current segment.
Something on a lane to be noticed about vehicle movement.
void saveState(OutputDevice &out)
Saves the states of a vehicle.
MESegment * mySegment
The segment the vehicle is at.
bool moveRoutePointer()
Update when the vehicle enters a new edge in the move step.
Structure representing possible vehicle parameter.
bool replaceRoute(const MSRoute *route, bool onInit=false, int offset=0)
Replaces the current route by the given one.
size_t getQueIndex() const
Returns the index of the que the vehicle is in.
SUMOReal getWaitingSeconds() const
Returns the number of seconds waited (speed was lesser than 0.1m/s)
A single mesoscopic segment (cell)
Definition of vehicle stop (position and duration)
void updateDetectors(SUMOTime currentTime, const bool isLeave, const MSMoveReminder::Notification reason=MSMoveReminder::NOTIFICATION_JUNCTION)
Updates all vehicle detectors.
SUMOReal getPositionOnLane() const
Get the vehicle's position along the lane.
std::map< const MESegment *const, SUMOTime > myStops
where to stop
void setEventTime(SUMOTime t, bool hasDelay=true)
Sets the (planned) time at which the vehicle leaves his current cell.
Static storage of an output device and its base (abstract) implementation.
SUMOTime myEventTime
The (planned) time of leaving the segment (cell)
const ConstMSEdgeVector getStopEdges() const
Returns the list of still pending stop edges.
size_t myQueIndex
Index of the que the vehicle is in (important for multiqueue extension)
virtual void setSegment(MESegment *s, size_t idx=0)
Sets the current segment the vehicle is at together with its que.
bool mayProceed() const
Returns whether the vehicle is allowed to pass the next junction.
SUMOTime myBlockTime
The time at which the vehicle was blocked on its current segment.
Representation of a lane in the micro simulation.
MESegment * getSegment() const
Returns the current segment the vehicle is on.
SUMOReal estimateLeaveSpeed(const MSLink *link) const
Returns the vehicle's estimated speed after driving accross the link.
SUMOReal getAngle() const
Returns the vehicle's direction in degrees.
MEVehicle(SUMOVehicleParameter *pars, const MSRoute *route, const MSVehicleType *type, const SUMOReal speedFactor)
Constructor.