Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSBaseVehicle Class Referenceabstract

The base class for microscopic and mesoscopic vehicles. More...

#include <MSBaseVehicle.h>

Inheritance diagram for MSBaseVehicle:
[legend]
Collaboration diagram for MSBaseVehicle:
[legend]

Data Structures

class  BaseInfluencer
 
struct  StopEdgeInfo
 

Public Types

typedef long long int NumericalID
 
enum  RouteValidity {
  ROUTE_VALID = 0 , ROUTE_UNCHECKED = 1 << 0 , ROUTE_INVALID = 1 << 1 , ROUTE_START_INVALID_PERMISSIONS = 1 << 2 ,
  ROUTE_START_INVALID_LANE = 1 << 3
}
 

Public Member Functions

virtual void activateReminders (const MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
 "Activates" all current move reminder
 
void addReminder (MSMoveReminder *rem, double pos=0)
 Adds a MoveReminder dynamically.
 
void addTo (const StoringVisitor &cont) const
 Adds this object to the given container.
 
void addToOdometer (double value)
 Manipulate the odometer.
 
virtual void addTransportable (MSTransportable *transportable)
 Adds a person or container to this vehicle.
 
bool allowsBoarding (const MSTransportable *t) const
 whether the given transportable is allowed to board this vehicle
 
void createDevice (const std::string &deviceName)
 create device of the given type
 
virtual std::pair< double, double > estimateTimeToNextStop () const
 return time (s) and distance to the next stop
 
virtual double getAcceleration () const
 Returns the vehicle's acceleration.
 
virtual double getAngle () const =0
 Get the vehicle's angle.
 
int getArrivalIndex () const
 
virtual int getArrivalLane () const
 
virtual double getArrivalPos () const
 Returns this vehicle's desired arrivalPos for its current route (may change on reroute)
 
virtual const MSLane * getBackLane () const =0
 Returns the lane the where the rear of the object is currently at.
 
virtual double getBackPositionOnLane (const MSLane *lane) const =0
 Get the object's back position along the given lane.
 
virtual PositionVector getBoundingBox (double offset=0) const =0
 get bounding rectangle
 
virtual double getBrakeGap (bool delayed=false) const =0
 get distance for coming to a stop (used for rerouting checks)
 
double getChosenSpeedFactor () const
 Returns the precomputed factor by which the driver wants to be faster than the speed limit.
 
int getContainerNumber () const
 Returns the number of containers.
 
const std::vector< MSTransportable * > & getContainers () const
 retrieve riding containers
 
virtual const MSEdge * getCurrentEdge () const
 Returns the edge the vehicle is currently at (possibly an internal edge)
 
const MSRouteIterator & getCurrentRouteEdge () const
 Returns an iterator pointing to the current edge in this vehicles route.
 
SUMOTime getDepartDelay () const
 Returns the depart delay.
 
double getDepartPos () const
 Returns this vehicle's real departure position.
 
SUMOTime getDeparture () const
 Returns this vehicle's real departure time.
 
double getDesiredMaxSpeed () const
 
MSDevice * getDevice (const std::type_info &type) const
 Returns a device of the given type if it exists, nullptr otherwise.
 
std::string getDeviceParameter (const std::string &deviceName, const std::string &key) const
 try to retrieve the given parameter from any of the vehicles devices, raise InvalidArgument if no device parameter by that name exists
 
const std::vector< MSVehicleDevice * > & getDevices () const
 Returns this vehicle's devices.
 
const MSEdge * getEdge () const
 Returns the edge the vehicle is currently at.
 
const std::string & getID () const
 Returns the id.
 
double getImpatience () const
 Returns this vehicles impatience.
 
virtual const MSLane * getLane () const =0
 Returns the lane the object is currently at.
 
virtual SUMOTime getLastActionTime () const =0
 
virtual double getLateralPositionOnLane () const
 Get the vehicle's lateral position on the lane.
 
int getLeavingPersonNumber () const
 Returns the number of leaving persons.
 
double getLength () const
 Returns the vehicle's length.
 
double getMaxSpeed () const
 Returns the maximum speed (the minimum of desired and technical maximum speed)
 
virtual const MSEdge * getNextEdgePtr () const
 returns the next edge (possibly an internal edge)
 
int getNumberReroutes () const
 Returns the number of new routes this vehicle got.
 
int getNumRemainingEdges () const
 return the number of edges remaining in the route (include the current)
 
double getOdometer () const
 Returns the distance that was already driven by this vehicle.
 
const SUMOVehicleParameter & getParameter () const
 Returns the vehicle's parameter (including departure definition)
 
std::vector< std::string > getPersonIDList () const
 Returns the list of persons.
 
int getPersonNumber () const
 Returns the number of persons.
 
const std::vector< MSTransportable * > & getPersons () const
 retrieve riding persons
 
virtual Position getPosition (const double offset=0) const =0
 Return current position (x/y, cartesian)
 
virtual double getPositionOnLane () const =0
 Get the object's position along the lane.
 
std::string getPrefixedParameter (const std::string &key, std::string &error) const
 retrieve parameters of devices, models and the vehicle itself
 
double getPreviousSpeed () const
 Returns the vehicle's previous speed.
 
virtual const MSEdge * getRerouteDestination () const
 Returns the end point for reroutes (usually the last edge of the route)
 
virtual ConstMSEdgeVector::const_iterator getRerouteOrigin () const
 Returns the starting point for reroutes (usually the current edge)
 
virtual double getRightSideOnEdge (const MSLane *lane=0) const
 Get the vehicle's lateral position on the edge of the given lane (or its current edge if lane == 0)
 
const MSRoute & getRoute () const
 Returns the current route.
 
int getRoutePosition () const
 return index of edge within route
 
ConstMSRoutePtr getRoutePtr () const
 Returns the current route.
 
int getRouteValidity (bool update=true, bool silent=false, std::string *msgReturn=nullptr)
 check for route validity at first insertion attempt
 
MSVehicleType & getSingularType ()
 Replaces the current vehicle type with a new one used by this vehicle only.
 
virtual double getSlope () const =0
 Returns the slope of the road at object's position in degrees.
 
virtual double getSpeed () const =0
 Returns the object's current speed.
 
virtual double getStopArrivalDelay () const
 Returns the estimated public transport stop arrival delay in seconds.
 
virtual double getStopDelay () const
 Returns the estimated public transport stop (departure) delay in seconds.
 
virtual SUMOTime getTimeLoss () const =0
 
virtual double getTimeLossSeconds () const
 Returns the time loss in seconds.
 
const std::set< SUMOTrafficObject::NumericalID > getUpcomingEdgeIDs () const
 returns the numerical ids of edges to travel
 
SUMOVehicleClass getVClass () const
 Returns the vehicle's access class.
 
const MSVehicleType & getVehicleType () const
 Returns the vehicle's type definition.
 
const SUMOVTypeParameter & getVTypeParameter () const
 Returns the vehicle's type parameter.
 
double getWaitingSeconds () const
 Returns the number of seconds waited (speed was lesser than 0.1m/s)
 
virtual SUMOTime getWaitingTime (const bool accumulated=false) const =0
 
double getWidth () const
 Returns the vehicle's width.
 
virtual bool hasArrived () const
 Returns whether this vehicle has already arived (by default this is true if the vehicle has reached its final edge)
 
bool hasDeparted () const
 Returns whether this vehicle has already departed.
 
bool hasDevice (const std::string &deviceName) const
 check whether the vehicle is equiped with a device of the given name
 
bool hasJump (const MSRouteIterator &it) const
 check wether the vehicle has jump at the given part of its route
 
bool hasReminder (MSMoveReminder *rem) const
 Checks whether the vehilce has the given MoveReminder.
 
bool hasValidRoute (std::string &msg, ConstMSRoutePtr route=0) const
 Validates the current or given route.
 
bool hasValidRoute (std::string &msg, MSRouteIterator start, MSRouteIterator last, bool checkJumps) const
 
virtual bool hasValidRouteStart (std::string &msg)
 checks wether the vehicle can depart on the first edge
 
bool ignoreTransientPermissions () const
 Returns whether this object is ignoring transient permission changes (during routing)
 
virtual void initDevices ()
 
virtual bool isContainer () const
 Whether it is a container.
 
virtual bool isFrontOnLane (const MSLane *) const
 Returns the information whether the front of the vehhicle is on the given lane.
 
virtual bool isIdling () const =0
 Returns whether the vehicle is idling (waiting to re-enter the net.
 
bool isLineStop (double position) const
 returns whether the vehicle serves a public transport line that serves the given stop
 
virtual bool isOnRoad () const
 Returns the information whether the vehicle is on a road (is simulated)
 
virtual bool isPerson () const
 Whether it is a person.
 
bool isRail () const
 
virtual bool isRemoteControlled () const
 Returns the information whether the vehicle is fully controlled via TraCI.
 
bool isVehicle () const
 Whether it is a vehicle.
 
 MSBaseVehicle (SUMOVehicleParameter *pars, ConstMSRoutePtr route, MSVehicleType *type, const double speedFactor)
 Constructor.
 
void onDepart ()
 Called when the vehicle is inserted into the network.
 
virtual void onRemovalFromNet (const MSMoveReminder::Notification)
 Called when the vehicle is removed from the network.
 
virtual SUMOTime remainingStopDuration () const =0
 Returns the remaining stop duration for a stopped vehicle or 0.
 
void removeReminder (MSMoveReminder *rem)
 Removes a MoveReminder dynamically.
 
void removeTransportable (MSTransportable *t)
 removes a person or container
 
void removeTransportableMass (MSTransportable *t)
 removes a person or containers mass
 
void replaceParameter (const SUMOVehicleParameter *newParameter)
 replace the vehicle parameter (deleting the old one)
 
virtual bool replaceRoute (ConstMSRoutePtr route, const std::string &info, bool onInit=false, int offset=0, bool addRouteStops=true, bool removeStops=true, std::string *msgReturn=nullptr)
 Replaces the current route by the given one.
 
bool replaceRouteEdges (ConstMSEdgeVector &edges, double cost, double savings, const std::string &info, bool onInit=false, bool check=false, bool removeStops=true, std::string *msgReturn=nullptr)
 Replaces the current route by the given edges.
 
virtual void replaceVehicleType (const MSVehicleType *type)
 Replaces the current vehicle type by the one given.
 
bool reroute (SUMOTime t, const std::string &info, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, const bool onInit=false, const bool withTaz=false, const bool silent=false, const MSEdge *sink=nullptr)
 Performs a rerouting using the given router.
 
void resetRoutePosition (int index, DepartLaneDefinition departLaneProcedure)
 reset index of edge within route
 
virtual void setArrivalPos (double arrivalPos)
 Sets this vehicle's desired arrivalPos for its current route.
 
void setCarFollowModelParameter (const std::string &key, const std::string &value)
 set individual carFollow model parameters (not type related)
 
void setChosenSpeedFactor (const double factor)
 Returns the precomputed factor by which the driver wants to be faster than the speed limit.
 
void setDeviceParameter (const std::string &deviceName, const std::string &key, const std::string &value)
 try to set the given parameter from any of the vehicles devices, raise InvalidArgument if no device parameter by that name exists
 
void setID (const std::string &newID)
 set the id (inherited from Named but forbidden for vehicles)
 
void setJunctionModelParameter (const std::string &key, const std::string &value)
 set individual junction model paramete (not type related)
 
bool stopsAt (MSStoppingPlace *stop) const
 Returns whether the vehicle stops at the given stopping place.
 
bool stopsAtEdge (const MSEdge *edge) const
 Returns whether the vehicle stops at the given edge.
 
const MSEdge * succEdge (int nSuccs) const
 Returns the nSuccs'th successor of edge the vehicle is currently at.
 
virtual bool wasRemoteControlled (SUMOTime lookBack=DELTA_T) const
 Returns the information whether the vehicle is fully controlled via TraCI.
 
virtual ~MSBaseVehicle ()
 Destructor.
 
state io
virtual void loadState (const SUMOSAXAttributes &attrs, const SUMOTime offset)=0
 Loads the state of this vehicle from the given description.
 
Helper methods for parsing parameters from the object itself, it's type or the global OptionsCont
std::string getStringParam (const std::string &paramName, const bool required=false, const std::string &deflt="") const
 Retrieve a string parameter for the traffic object.
 
double getFloatParam (const std::string &paramName, const bool required=false, const double deflt=INVALID_DOUBLE, bool checkDist=true) const
 Retrieve a floating point parameter for the traffic object.
 
bool getBoolParam (const std::string &paramName, const bool required=false, const bool deflt=false) const
 Retrieve a boolean parameter for the traffic object.
 
SUMOTime getTimeParam (const std::string &paramName, const bool required=false, const SUMOTime deflt=SUMOTime_MIN) const
 Retrieve a time parameter for the traffic object.
 

Static Public Member Functions

template<class T >
static std::string getIDSecure (const T *obj, const std::string &fallBack="NULL")
 get an identifier for Named-like object which may be Null
 

Protected Attributes

bool myAmRegisteredAsWaiting = false
 Whether this vehicle is registered as waiting for a person or container (for deadlock-recognition)
 
bool myAmReversed = false
 
int myArrivalLane
 The destination lane where the vehicle stops.
 
double myArrivalPos
 The position on the destination lane where the vehicle stops.
 
StoppingPlaceMemory * myChargingMemory = nullptr
 
MSDevice_Transportable * myContainerDevice
 The containers this vehicle may have.
 
double myDepartPos
 The real depart position.
 
SUMOTime myDeparture
 The real departure time.
 
std::vector< MSVehicleDevice * > myDevices
 The devices this vehicle has.
 
EnergyParams * myEnergyParams
 The emission parameters this vehicle may have.
 
std::string myID
 The name of the object.
 
int myNumberParkingReroutes = 0
 
int myNumberReroutes
 The number of reroutings.
 
double myOdometer
 A simple odometer to keep track of the length of the route already driven.
 
StoppingPlaceMemory * myParkingMemory = nullptr
 memory for parking search
 
MSDevice_Transportable * myPersonDevice
 The passengers this vehicle may have.
 
int myRouteValidity
 status of the current vehicle route
 
int myRoutingMode
 routing mode (see TraCIConstants.h)
 
SUMOTime myStopUntilOffset
 The offset when adding route stops with 'until' on route replacement.
 

Static Protected Attributes

static std::vector< MSTransportable * > myEmptyTransportableVector
 
static const SUMOTime NOT_YET_DEPARTED = SUMOTime_MAX
 

Private Member Functions

MSEdgeWeightsStorage & _getWeightsStorage () const
 
SUMOTime activateRemindersOnReroute (SUMOTime currentTime)
 remove outdated driveways on reroute
 
void checkRouteRemoval ()
 remove route at the end of the simulation
 
std::string getFlowID () const
 reconstruct flow id from vehicle id
 
void initTransientModelParams ()
 init model parameters from generic params
 
bool insertJump (int nextStopIndex, MSRouteIterator itStart, std::string &errorMsg)
 helper function
 
MSBaseVehicle & operator= (const MSBaseVehicle &s)=delete
 invalidated assignment operator
 
void setSkips (MSStop &stop, int prevActiveStops)
 patch stop.pars.index to record the number of skipped candidate edges before stop.edge (in a looped route)
 

Private Attributes

MSEdgeWeightsStorage * myEdgeWeights
 
const NumericalID myNumericalID
 

Static Private Attributes

static NumericalID myCurrentNumericalIndex = 0
 

Friends

class GUIBaseVehicle
 

Move reminder structures

typedef std::vector< std::pair< MSMoveReminder *, double > > MoveReminderCont
 Definition of a move reminder container.
 
MoveReminderCont myMoveReminders
 Currently relevant move reminders.
 

state io

const SUMOVehicleParameter * myParameter
 This vehicle's parameter.
 
ConstMSRoutePtr myRoute
 This vehicle's route.
 
const MSVehicleType * myType
 This vehicle's type.
 
MSRouteIterator myCurrEdge
 Iterator to current route-edge.
 
double myChosenSpeedFactor
 A precomputed factor by which the driver wants to be faster than the speed limit.
 
std::list< MSStop > myStops
 The vehicle's list of stops.
 
StopParVector myPastStops
 The list of stops that the vehicle has already reached.
 
virtual void saveState (OutputDevice &out)
 Saves the (common) state of a vehicle.
 
virtual bool handleCollisionStop (MSStop &stop, const double distToStop)
 
bool isStopped () const
 Returns whether the vehicle is at a stop.
 
bool isParking () const
 Returns whether the vehicle is parking.
 
bool isJumping () const
 Returns whether the vehicle is perform a jump.
 
bool isReversed () const
 Returns whether the logical state of the vehicle is reversed - for drawing.
 
bool isStoppedTriggered () const
 Returns whether the vehicle is on a triggered stop.
 
bool isStoppedParking () const
 Returns whether the vehicle is on a parking stop.
 
bool isStoppedInRange (const double pos, const double tolerance, bool checkFuture=false) const
 return whether the given position is within range of the current stop
 
bool hasStops () const
 Returns whether the vehicle has to stop somewhere.
 
bool replaceParkingArea (MSParkingArea *parkingArea, std::string &errorMsg)
 replace the current parking area stop with a new stop with merge duration
 
MSParkingArea * getNextParkingArea ()
 get the upcoming parking area stop or nullptr
 
MSParkingArea * getCurrentParkingArea ()
 get the current parking area stop or nullptr
 
const std::vector< std::string > & getParkingBadges () const
 get the valid parking access rights (vehicle settings override vehicle type settings)
 
double basePos (const MSEdge *edge) const
 departure position where the vehicle fits fully onto the edge (if possible)
 
bool addStop (const SUMOVehicleParameter::Stop &stopPar, std::string &errorMsg, SUMOTime untilOffset=0, MSRouteIterator *searchStart=nullptr)
 Adds a stop.
 
void addStops (const bool ignoreStopErrors, MSRouteIterator *searchStart=nullptr, bool addRouteStops=true)
 Adds stops to the built vehicle.
 
bool haveValidStopEdges (bool silent=false) const
 check whether all stop.edge MSRouteIterators are valid and in order
 
std::vector< std::pair< int, double > > getStopIndices () const
 return list of route indices for the remaining stops
 
const std::list< MSStop > & getStops () const
 
const StopParVector & getPastStops () const
 
const MSStop & getNextStop () const
 
MSStop & getNextStopMutable ()
 
SUMOTime getStopDuration () const
 get remaining stop duration or 0 if the vehicle isn't stopped
 
MSStop & getStop (int nextStopIndex)
 
const SUMOVehicleParameter::Stop * getNextStopParameter () const
 return parameters for the next stop (SUMOVehicle Interface)
 
virtual bool addTraciStop (SUMOVehicleParameter::Stop stop, std::string &errorMsg)
 
virtual bool resumeFromStopping ()=0
 
void unregisterWaiting ()
 mark vehicle as active
 
bool abortNextStop (int nextStopIndex=0)
 deletes the next stop at the given index if it exists
 
bool replaceStop (int nextStopIndex, SUMOVehicleParameter::Stop stop, const std::string &info, bool teleport, std::string &errorMsg)
 
bool rerouteBetweenStops (int nextStopIndex, const std::string &info, bool teleport, std::string &errorMsg)
 
bool insertStop (int nextStopIndex, SUMOVehicleParameter::Stop stop, const std::string &info, bool teleport, std::string &errorMsg)
 
virtual bool isSelected () const
 whether this vehicle is selected in the GUI
 
int getRNGIndex () const
 
SumoRNG * getRNG () const
 
NumericalID getNumericalID () const
 return the numerical ID which is only for internal usage
 
const MSDevice_Transportable * getPersonDevice () const
 
const MSDevice_Transportable * getContainerDevice () const
 
EnergyParams * getEmissionParameters () const
 retrieve parameters for the energy consumption model
 
void rememberBlockedParkingArea (const MSStoppingPlace *pa, bool local)
 
SUMOTime sawBlockedParkingArea (const MSStoppingPlace *pa, bool local) const
 
void rememberBlockedChargingStation (const MSStoppingPlace *cs, bool local)
 
SUMOTime sawBlockedChargingStation (const MSStoppingPlace *cs, bool local) const
 
void rememberParkingAreaScore (const MSStoppingPlace *pa, const std::string &score)
 score only needed when running with gui
 
void resetParkingAreaScores ()
 
void rememberChargingStationScore (const MSStoppingPlace *cs, const std::string &score)
 
void resetChargingStationScores ()
 
int getNumberParkingReroutes () const
 
void setNumberParkingReroutes (int value)
 
const StoppingPlaceMemory * getParkingMemory () const
 
const StoppingPlaceMemory * getChargingMemory () const
 
virtual void resetApproachOnReroute ()
 reset rail signal approach information
 
std::vector< StopEdgeInfo > getStopEdges (double &firstPos, double &lastPos, std::set< int > &jumps) const
 Returns the list of still pending stop edges also returns the first and last stop position.
 
ConstMSEdgeVector optimizeSkipped (SUMOTime t, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, const MSEdge *source, double sourcePos, std::vector< StopEdgeInfo > &stops, ConstMSEdgeVector edges, SUMOTime maxDelay) const
 
ConstMSEdgeVector routeAlongStops (SUMOTime t, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, std::vector< StopEdgeInfo > &stops, ConstMSEdgeVector edges, int originStop, SUMOTime maxDelay, double &skippedPrio2) const
 
static double addStopPriority (double p1, double p2)
 

Emission retrieval

template<PollutantsInterface::EmissionType ET>
double getEmissions () const
 Returns emissions of the current state The value is always per 1s, so multiply by step length if necessary.
 
double getStateOfCharge () const
 Returns actual state of charge of battery (Wh) RICE_CHECK: This may be a misnomer, SOC is typically percentage of the maximum battery capacity.
 
double getRelativeStateOfCharge () const
 Returns actual relative state of charge of battery (-)
 
double getChargedEnergy () const
 Returns the energy charged to the battery in the current time step (Wh)
 
double getMaxChargeRate () const
 Returns the maximum charge rate allowed by the battery in the current time step (W)
 
double getElecHybridCurrent () const
 Returns actual current (A) of ElecHybrid device RICE_CHECK: Is this the current consumed from the overhead wire or the current driving the powertrain of the vehicle? RICE_REV_JS: It is the current drawn from the overhead wire (value if the vehicle is not connected to overhead wire?)
 
double getHarmonoise_NoiseEmissions () const
 Returns noise emissions of the current state.
 
virtual BaseInfluencer & getBaseInfluencer ()=0
 Returns the velocity/lane influencer.
 
virtual const BaseInfluencer * getBaseInfluencer () const =0
 
virtual bool hasInfluencer () const =0
 whether the vehicle is individually influenced (via TraCI or special parameters)
 
int getRoutingMode () const
 return routing mode (configures router choice but also handling of transient permission changes)
 
void setRoutingMode (int value)
 Sets routing behavior.
 
SUMOAbstractRouter< MSEdge, SUMOVehicle > & getRouterTT () const
 
const MSEdgeWeightsStorage & getWeightsStorage () const
 Returns the vehicle's internal edge travel times/efforts container.
 
MSEdgeWeightsStorage & getWeightsStorage ()
 
virtual std::pair< const MSVehicle *const, double > getLeader (double dist=0, bool considerCrossingFoes=true) const
 Returns the leader of the vehicle looking for a fixed distance.
 
virtual std::pair< const MSVehicle *const, double > getFollower (double dist=0) const
 Returns the follower of the vehicle looking for a fixed distance.
 
void calculateArrivalParams (bool onInit)
 (Re-)Calculates the arrival position and lane from the vehicle parameters
 
void setDepartAndArrivalEdge ()
 apply departEdge and arrivalEdge attributes
 
int getDepartEdge () const
 Returns the edge on which this vehicle shall depart.
 
int getInsertionChecks () const
 
static MSLane * interpretOppositeStop (SUMOVehicleParameter::Stop &stop)
 interpret stop lane on opposite side of the road
 

Detailed Description

The base class for microscopic and mesoscopic vehicles.

Definition at line 57 of file MSBaseVehicle.h.

Member Typedef Documentation

◆ MoveReminderCont

typedef std::vector< std::pair<MSMoveReminder*, double> > MSBaseVehicle::MoveReminderCont
protected

Definition of a move reminder container.

Definition at line 1121 of file MSBaseVehicle.h.

◆ NumericalID

typedef long long int SUMOTrafficObject::NumericalID
inherited

Definition at line 56 of file SUMOTrafficObject.h.

Member Enumeration Documentation

◆ RouteValidity

Enumerator
ROUTE_VALID 
ROUTE_UNCHECKED 
ROUTE_INVALID 

route was checked and is valid

ROUTE_START_INVALID_PERMISSIONS 
ROUTE_START_INVALID_LANE 

Definition at line 72 of file MSBaseVehicle.h.

Constructor & Destructor Documentation

◆ MSBaseVehicle()

MSBaseVehicle::MSBaseVehicle ( SUMOVehicleParameter *  pars,
ConstMSRoutePtr  route,
MSVehicleType *  type,
const double  speedFactor 
)

Constructor.

Parameters
[in]parsThe vehicle description
[in]routeThe vehicle's route
[in]typeThe vehicle's type
[in]speedFactorThe factor for driven lane's speed limits
Exceptions
ProcessErrorIf a value is wrong

Definition at line 102 of file MSBaseVehicle.cpp.

References calculateArrivalParams(), initTransientModelParams(), myRoute, SUMOVehicleParameter::parametersSet, setDepartAndArrivalEdge(), VEHPARS_FORCE_REROUTE, and SUMOVehicleParameter::wasSet().

◆ ~MSBaseVehicle()

Member Function Documentation