 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef MSDevice_BTsender_h
18 #define MSDevice_BTsender_h
147 const double _lanePos,
const int _routePos)
186 for (std::vector<VehicleState>::const_iterator i =
updates.begin(); i !=
updates.end(); ++i) {
187 ret.
add((*i).position);
220 static std::map<std::string, VehicleInformation*>
sVehicles;
Representation of a vehicle or person.
static std::map< std::string, VehicleInformation * > sVehicles
The list of arrived senders.
Representation of a lane in the micro simulation.
Base class for objects which have an id.
MSDevice_BTsender & operator=(const MSDevice_BTsender &)
Invalidated assignment operator.
double lanePos
The position at the lane of the vehicle.
Representation of a vehicle.
std::vector< const MSEdge * > ConstMSEdgeVector
const std::string deviceName() const
return the name for this type of device
MSDevice_BTsender(SUMOVehicle &holder, const std::string &id)
Constructor.
int routePos
The position in the route of the vehicle.
Position position
The position of the vehicle.
VehicleState(const double _speed, const Position &_position, const std::string &_laneID, const double _lanePos, const int _routePos)
Constructor.
bool notifyLeave(SUMOTrafficObject &veh, double lastPos, Notification reason, const MSLane *enteredLane=0)
Moves (the known) vehicle from running to arrived vehicles' list.
bool notifyEnter(SUMOTrafficObject &veh, Notification reason, const MSLane *enteredLane=0)
Adds the vehicle to running vehicles if it (re-) enters the network.
std::string laneID
The lane the vehicle was at.
~VehicleState()
Destructor.
A class that stores a 2D geometrical boundary.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_BTsender-options.
A point in 2D or 3D with translation and scaling methods.
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
double speed
The speed of the vehicle.
A storage for options typed value containers)
static void cleanup()
removes remaining vehicleInformation in sVehicles
~MSDevice_BTsender()
Destructor.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSVehicleDevice * > &into)
Build devices for the given vehicle, if needed.
Notification
Definition of a vehicle state.
A single movement state of the vehicle.
Abstract in-vehicle device.
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Checks whether the reminder still has to be notified about the vehicle moves.