112 return "stationfinder";
132 const double frontOnLane,
133 const double timeOnLane,
134 const double meanSpeedFrontOnLane,
135 const double meanSpeedVehicleOnLane,
136 const double travelledDistanceFrontOnLane,
137 const double travelledDistanceVehicleOnLane,
138 const double meanLengthOnLane);
Battery device for electric vehicles.
A device which triggers rerouting to nearby charging stations.
void generateOutput(OutputDevice *tripinfoOut) const
Called on writing tripinfo output.
void notifyMoveInternal(const SUMOTrafficObject &veh, const double frontOnLane, const double timeOnLane, const double meanSpeedFrontOnLane, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane, const double meanLengthOnLane)
Internal notification about the vehicle moves, see MSMoveReminder::notifyMoveInternal()
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Computes current emission values and adds them to their sums.
MSDevice_StationFinder & operator=(const MSDevice_StationFinder &)
Invalidated assignment operator.
MSStoppingPlace * myChargingStation
To which station we are currently travelling.
const std::string deviceName() const
return the name for this type of device
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_StationFinder-options.
~MSDevice_StationFinder()
Destructor.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
bool notifyIdle(SUMOTrafficObject &veh)
Computes idling emission values and adds them to the emission sums.
MSDevice_Battery * myBattery
The corresponding battery device.
void setBattery(MSDevice_Battery *battery)
double myReserveFactor
The safety buffer when calculating expected consumption.
MSDevice_StationFinder(const MSDevice_StationFinder &)
Invalidated copy constructor.
A lane area vehicles can halt at.
Abstract in-vehicle device.
A storage for options typed value containers)
Static storage of an output device and its base (abstract) implementation.
Representation of a vehicle, person, or container.
Representation of a vehicle.