 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
205 throw ProcessError(
"parkingZoneReroute not implemented for meso");
211 throw ProcessError(
"parkingZoneReroute not implemented for meso");
337 bool replaceRoute(
const MSRoute* route,
const std::string& info,
bool onInit =
false,
int offset = 0,
bool addStops =
true,
bool removeStops =
true);
382 std::map<const MESegment* const, std::vector<SUMOVehicleParameter::Stop> >
myStops;
The car-following model and parameter.
SUMOTime getAccumulatedWaitingTime() const
Returns the duration for which the vehicle was blocked.
A vehicle from the mesoscopic point of view.
A lane area vehicles can halt at.
A lane area vehicles can halt at.
double getEventTimeSeconds() const
Returns the earliest leave time for the current segment.
Representation of a lane in the micro simulation.
A single mesoscopic segment (cell)
void updateDetectorForWriting(MSMoveReminder *rem, SUMOTime currentTime, SUMOTime exitTime)
Updates a single vehicle detector if present.
Static storage of an output device and its base (abstract) implementation.
ConstMSEdgeVector::const_iterator MSRouteIterator
double getAverageSpeed() const
Returns the vehicle's estimated average speed on the segment assuming no further delays.
bool stopsAt(MSStoppingPlace *) const
Returns whether the vehicle stops at the given stopping place.
void saveState(OutputDevice &out)
Saves the states of a vehicle.
ConstMSEdgeVector myStopEdges
edges to stop
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
void setLastEntryTime(SUMOTime t)
Sets the entry time for the current segment.
double getPositionOnLane() const
Get the vehicle's position along the lane.
SUMOTime getLastEntryTime() const
Returns the time the vehicle entered the current segment.
Position getPosition(const double offset=0) const
Return current position (x/y, cartesian)
std::vector< const MSEdge * > ConstMSEdgeVector
SUMOTime myBlockTime
The time at which the vehicle was blocked on its current segment.
double getCurrentStoppingTimeSeconds() const
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty.
double getBrakeGap() const
get distance for coming to a stop (used for rerouting checks)
Structure representing possible vehicle parameter.
MSLane * getLane() const
Returns the lane the vehicle is on.
void setEventTime(SUMOTime t, bool hasDelay=true)
Sets the (planned) time at which the vehicle leaves his current cell.
bool moveRoutePointer()
Update when the vehicle enters a new edge in the move step.
Something on a lane to be noticed about vehicle movement.
void updateDetectors(SUMOTime currentTime, const bool isLeave, const MSMoveReminder::Notification reason=MSMoveReminder::NOTIFICATION_JUNCTION)
Updates all vehicle detectors.
SUMOTime getBlockTime() const
Returns the time at which the vehicle was blocked.
SUMOTime getEventTime() const
Returns the (planned) time at which the vehicle leaves his current cell.
double getWaitingSeconds() const
Returns the number of seconds waited (speed was lesser than 0.1m/s)
double getSlope() const
Returns the slope of the road at vehicle's position.
bool isStopped() const
Returns whether the vehicle is at a stop.
bool addStop(const SUMOVehicleParameter::Stop &stopPar, std::string &errorMsg, SUMOTime untilOffset=0, bool collision=false, MSRouteIterator *searchStart=0)
Adds a stop.
void loadState(const SUMOSAXAttributes &attrs, const SUMOTime offset)
Loads the state of this vehicle from the given description.
int myQueIndex
Index of the que the vehicle is in (important for multiqueue extension)
double getAngle() const
Returns the vehicle's direction in degrees.
bool mayProceed() const
Returns whether the vehicle is allowed to pass the next junction.
void setBlockTime(const SUMOTime t)
Sets the time at which the vehicle was blocked.
double getBlockTimeSeconds() const
Returns the time at which the vehicle was blocked on the current segment.
bool isStoppedTriggered() const
Returns whether the vehicle is on a triggered stop.
double getBackPositionOnLane(const MSLane *lane) const
Get the vehicle's position relative to the given lane.
SUMOTime getStoptime(const MESegment *const seg, SUMOTime time) const
Returns until when to stop at the given segment.
A point in 2D or 3D with translation and scaling methods.
bool isOnRoad() const
Returns the information whether the vehicle is on a road (is simulated)
MEVehicle(SUMOVehicleParameter *pars, const MSRoute *route, MSVehicleType *type, const double speedFactor)
Constructor.
void processStop()
ends the current stop and performs loading/unloading
A road/street connecting two junctions.
std::vector< std::pair< int, double > > getStopIndices() const
return list of route indices for the remaining stops
bool replaceParkingArea(MSParkingArea *, std::string &)
replace the current parking area stop with a new stop with merge duration
double estimateLeaveSpeed(const MSLink *link) const
Returns the vehicle's estimated speed after driving accross the link.
void addStops(const bool ignoreStopErrors)
Adds stops to the built vehicle.
SUMOTime getWaitingTime() const
Returns the duration for which the vehicle was blocked.
double getCurrentLinkPenaltySeconds() const
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty.
MESegment * getSegment() const
Returns the current segment the vehicle is on.
bool replaceRoute(const MSRoute *route, const std::string &info, bool onInit=false, int offset=0, bool addStops=true, bool removeStops=true)
Replaces the current route by the given one.
MESegment * mySegment
The segment the vehicle is at.
SUMOTime myLastEntryTime
The time the vehicle entered its current segment.
bool isParking() const
Returns whether the vehicle is parking.
double getSpeed() const
Returns the vehicle's estimated speed assuming no delays.
double getConservativeSpeed(SUMOTime &earliestArrival) const
Returns the vehicle's estimated speed taking into account delays.
bool isStoppedInRange(const double pos, const double tolerance) const
return whether the given position is within range of the current stop
bool hasArrived() const
Returns whether this vehicle has already arived (reached the arrivalPosition on its final edge)
SUMOTime remainingStopDuration() const
Returns the remaining stop duration for a stopped vehicle or 0.
virtual void setSegment(MESegment *s, int idx=0)
Sets the current segment the vehicle is at together with its que.
const ConstMSEdgeVector getStopEdges(double &firstPos, double &lastPos) const
Returns the list of still pending stop edges.
bool stopsAtEdge(const MSEdge *) const
Returns whether the vehicle stops at the given edge.
The base class for microscopic and mesoscopic vehicles.
int getQueIndex() const
Returns the index of the que the vehicle is in.
Encapsulated SAX-Attributes.
Notification
Definition of a vehicle state.
@ NOTIFICATION_JUNCTION
The vehicle arrived at a junction.
std::map< const MESegment *const, std::vector< SUMOVehicleParameter::Stop > > myStops
where to stop
SUMOTime myEventTime
The (planned) time of leaving the segment (cell)
double getLastEntryTimeSeconds() const
Returns the entry time for the current segment.
MSParkingArea * getNextParkingArea()
get the current parking area stop
Definition of vehicle stop (position and duration)