87 double newPos,
double newSpeed);
123 void setParameter(
const std::string& key,
const std::string& value);
142 double customValue2,
double customValue3);
A device which collects info on the vehicle trip (mainly on departure and arrival)
void setParameter(const std::string &key, const std::string &value)
try to set the given parameter for this device. Throw exception for unsupported key
~MSDevice_Example()
Destructor.
bool notifyLeave(SUMOTrafficObject &veh, double lastPos, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Saves arrival info.
const std::string deviceName() const
return the name for this type of device
MSDevice_Example & operator=(const MSDevice_Example &)
Invalidated assignment operator.
bool notifyEnter(SUMOTrafficObject &veh, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Saves departure info on insertion.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_Example-options.
MSDevice_Example(const MSDevice_Example &)
Invalidated copy constructor.
double myCustomValue1
a value which is initialised based on a commandline/configuration option
static void cleanup()
resets counters
double myCustomValue3
a value which is initialised based on a vType parameter
std::string getParameter(const std::string &key) const
try to retrieve the given parameter from this device. Throw exception for unsupported key
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Checks for waiting steps when the vehicle moves.
void generateOutput(OutputDevice *tripinfoOut) const
Called on writing tripinfo output.
double myCustomValue2
a value which is initialised based on a vehicle parameter
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
Representation of a lane in the micro simulation.
Notification
Definition of a vehicle state.
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.