59 into.push_back(device);
65 std::map<std::string, MSDevice_BTsender::VehicleInformation*>::iterator i;
105 WRITE_WARNING(
"btsender: Can not update position of vehicle '" + veh.
getID() +
"' which is not on the road.");
120 WRITE_WARNING(
"btsender: Can not update position of vehicle '" + veh.
getID() +
"' which is not on the road.");
int getRoutePosition() const
Representation of a vehicle in the micro simulation.
bool notifyEnter(SUMOTrafficObject &veh, Notification reason, const MSLane *enteredLane=0)
Adds the vehicle to running vehicles if it (re-) enters the network.
virtual const std::string & getID() const =0
Get the vehicle's ID.
MSLane * getLane() const
Returns the lane the vehicle is on.
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Checks whether the reminder still has to be notified about the vehicle moves.
~MSDevice_BTsender()
Destructor.
The vehicle arrived at a junction.
virtual const MSEdge * getEdge() const =0
Returns the edge the vehicle is currently at.
Notification
Definition of a vehicle state.
bool notifyLeave(SUMOTrafficObject &veh, double lastPos, Notification reason, const MSLane *enteredLane=0)
Moves (the known) vehicle from running to arrived vehicles' list.
const std::string & getID() const
Returns the id.
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice *> &into)
Build devices for the given vehicle, if needed.
Representation of a vehicle.
A single movement state of the vehicle.
The vehicle arrived at its destination (is deleted)
MSDevice_BTsender(SUMOVehicle &holder, const std::string &id)
Constructor.
static void insertDefaultAssignmentOptions(const std::string &deviceName, const std::string &optionsTopic, OptionsCont &oc, const bool isPerson=false)
Adds common command options that allow to assign devices to vehicles.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_BTsender-options.
The vehicle has departed (was inserted into the network)
Representation of a vehicle or person.
static bool equippedByDefaultAssignmentOptions(const OptionsCont &oc, const std::string &deviceName, DEVICEHOLDER &v, bool outputOptionSet, const bool isPerson=false)
Determines whether a vehicle should get a certain device.
A storage for options typed value containers)
static void cleanup()
removes remaining vehicleInformation in sVehicles
Abstract in-vehicle device.
virtual double getPositionOnLane() const =0
Get the vehicle's position along the lane.
static std::map< std::string, VehicleInformation * > sVehicles
The list of arrived senders.
virtual double getSpeed() const =0
Returns the vehicle's current speed.
Representation of a lane in the micro simulation.
The vehicle is being teleported.
virtual Position getPosition(const double offset=0) const =0
Return current position (x/y, cartesian)