21 #ifndef MSDevice_Example_h 22 #define MSDevice_Example_h 96 double newPos,
double newSpeed);
132 void setParameter(
const std::string& key,
const std::string& value);
151 double customValue2,
double customValue3);
~MSDevice_Example()
Destructor.
double myCustomValue1
a value which is initialised based on a commandline/configuration option
bool notifyEnter(SUMOVehicle &veh, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Saves departure info on insertion.
Notification
Definition of a vehicle state.
MSDevice_Example(SUMOVehicle &holder, const std::string &id, double customValue1, double customValue2, double customValue3)
Constructor.
A device which collects info on the vehicle trip (mainly on departure and arrival) ...
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_Example-options.
bool notifyLeave(SUMOVehicle &veh, double lastPos, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Saves arrival info.
MSDevice_Example & operator=(const MSDevice_Example &)
Invalidated assignment operator.
bool notifyMove(SUMOVehicle &veh, double oldPos, double newPos, double newSpeed)
Checks for waiting steps when the vehicle moves.
Representation of a vehicle.
void setParameter(const std::string &key, const std::string &value)
try to set the given parameter for this device. Throw exception for unsupported key ...
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice *> &into)
Build devices for the given vehicle, if needed.
Abstract in-vehicle device.
void generateOutput() const
Called on writing tripinfo output.
std::string getParameter(const std::string &key) const
try to retrieve the given parameter from this device. Throw exception for unsupported key ...
A storage for options typed value containers)
Representation of a lane in the micro simulation.
double myCustomValue2
a value which is initialised based on a vehicle parameter
const std::string deviceName() const
return the name for this type of device
double myCustomValue3
a value which is initialised based on a vType parameter