18 #ifndef MSDevice_BTsender_h 19 #define MSDevice_BTsender_h 148 const double _lanePos,
const int _routePos)
187 for (std::vector<VehicleState>::const_iterator i = updates.begin(); i != updates.end(); ++i) {
188 ret.
add((*i).position);
221 static std::map<std::string, VehicleInformation*>
sVehicles;
Position position
The position of the vehicle.
bool notifyEnter(SUMOTrafficObject &veh, Notification reason, const MSLane *enteredLane=0)
Adds the vehicle to running vehicles if it (re-) enters the network.
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Checks whether the reminder still has to be notified about the vehicle moves.
int routePos
The position in the route of the vehicle.
~MSDevice_BTsender()
Destructor.
std::string laneID
The lane the vehicle was 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.
~VehicleState()
Destructor.
MSDevice_BTsender & operator=(const MSDevice_BTsender &)
Invalidated assignment operator.
std::vector< const MSEdge * > ConstMSEdgeVector
A class that stores a 2D geometrical boundary.
double lanePos
The position at the lane of the vehicle.
const std::string deviceName() const
return the name for this type of device
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice *> &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.
MSDevice_BTsender(SUMOVehicle &holder, const std::string &id)
Constructor.
VehicleState(const double _speed, const Position &_position, const std::string &_laneID, const double _lanePos, const int _routePos)
Constructor.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_BTsender-options.
Base class for objects which have an id.
Representation of a vehicle or person.
double speed
The speed of the vehicle.
A storage for options typed value containers)
static void cleanup()
removes remaining vehicleInformation in sVehicles
Abstract in-vehicle device.
static std::map< std::string, VehicleInformation * > sVehicles
The list of arrived senders.
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
Representation of a lane in the micro simulation.