21 #ifndef MSDevice_BTsender_h
22 #define MSDevice_BTsender_h
187 for (std::vector<VehicleState>::const_iterator i =
updates.begin(); i !=
updates.end(); ++i) {
188 ret.
add((*i).position);
218 static std::map<std::string, VehicleInformation*>
sVehicles;
Position position
The position of the vehicle.
SUMOReal angle
The angle of the vehicle.
SUMOReal lanePos
The position at the lane of the vehicle.
~MSDevice_BTsender()
Destructor.
bool notifyEnter(SUMOVehicle &veh, Notification reason)
Adds the vehicle to running vehicles if it (re-) enters the network.
SUMOReal time
The current time.
std::string laneID
The lane the vehicle was at.
Notification
Definition of a vehicle state.
~VehicleState()
Destructor.
MSDevice_BTsender & operator=(const MSDevice_BTsender &)
Invalidated assignment operator.
A class that stores a 2D geometrical boundary.
VehicleState(SUMOReal _time, SUMOReal _speed, SUMOReal _angle, const Position &_position, const std::string &_laneID, SUMOReal _lanePos)
Constructor.
Representation of a vehicle.
A point in 2D or 3D with translation and scaling methods.
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.
SUMOReal speed
The speed of the vehicle.
MSDevice_BTsender(SUMOVehicle &holder, const std::string &id)
Constructor.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_BTsender-options.
Base class for objects which have an id.
Abstract in-vehicle device.
void add(SUMOReal x, SUMOReal y)
Makes the boundary include the given coordinate.
A storage for options typed value containers)
static std::map< std::string, VehicleInformation * > sVehicles
The list of arrived senders.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.