43 #ifdef CHECK_MEMORY_LEAKS
45 #endif // CHECK_MEMORY_LEAKS
70 into.push_back(device);
102 WRITE_WARNING(
"btsender: Can not update position of a vehicle that is not within the road network (" + veh.
getID() +
").");
106 MSNet::getInstance()->getCurrentTimeStep(), newSpeed, static_cast<MSVehicle&>(veh).getAngle(), static_cast<MSVehicle&>(veh).getPosition(), static_cast<MSVehicle&>(veh).
getLane()->
getID(), newPos
118 WRITE_WARNING(
"btsender: Can not update position of a vehicle that is not within the road network (" + veh.
getID() +
").");
Representation of a vehicle in the micro simulation.
~MSDevice_BTsender()
Destructor.
bool notifyEnter(SUMOVehicle &veh, Notification reason)
Adds the vehicle to running vehicles if it (re-) enters the network.
virtual SUMOReal getPositionOnLane() const =0
Get the vehicle's position along the lane.
Notification
Definition of a vehicle state.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
const MSLane * getLane() const
Returns the lane the reminder works on.
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
const std::string & getID() const
Returns the id.
Representation of a vehicle.
A single movement state of the vehicle.
bool notifyLeave(SUMOVehicle &veh, SUMOReal lastPos, Notification reason)
Moves (the known) vehicle from running to arrived vehicles' list.
bool notifyMove(SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed)
Checks whether the reminder still has to be notified about the vehicle moves.
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)
Adds common command options that allow to assign devices to vehicles.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_BTsender-options.
Abstract in-vehicle device.
static bool equippedByDefaultAssignmentOptions(const OptionsCont &oc, const std::string &deviceName, SUMOVehicle &v)
Determines whether a vehicle should get a certain device.
The vehicle has departed (was inserted into the network)
virtual SUMOReal getSpeed() const =0
Returns the vehicle's current speed.
A storage for options typed value containers)
static std::map< std::string, VehicleInformation * > sVehicles
The list of arrived senders.
virtual const std::string & getID() const =0
Get the vehicle's ID.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.
The vehicle is being teleported.