21 #ifndef MSDevice_BTsender_h 22 #define MSDevice_BTsender_h 150 const SUMOReal _lanePos,
const int _routePos)
189 for (std::vector<VehicleState>::const_iterator i = updates.begin(); i != updates.end(); ++i) {
190 ret.
add((*i).position);
223 static std::map<std::string, VehicleInformation*>
sVehicles;
Position position
The position of the vehicle.
SUMOReal lanePos
The position at the lane of the vehicle.
int routePos
The position in the route of the vehicle.
~MSDevice_BTsender()
Destructor.
bool notifyEnter(SUMOVehicle &veh, Notification reason)
Adds the vehicle to running vehicles if it (re-) enters the network.
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.
std::vector< const MSEdge * > ConstMSEdgeVector
A class that stores a 2D geometrical boundary.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice *> &into)
Build devices for the given vehicle, if needed.
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, SUMOReal z=0)
Makes the boundary include the given coordinate.
A storage for options typed value containers)
static void cleanup()
removes remaining vehicleInformation in sVehicles
VehicleState(const SUMOReal _speed, const Position &_position, const std::string &_laneID, const SUMOReal _lanePos, const int _routePos)
Constructor.
static std::map< std::string, VehicleInformation * > sVehicles
The list of arrived senders.