44 std::vector<std::string>
46 std::vector<std::string> ids;
54 std::vector<std::string> ids;
83 std::vector<std::string>
107 std::vector<libsumo::TraCIVehicleData>
110 std::vector<libsumo::TraCIVehicleData> tvd;
111 for (std::vector<MSInductLoop::VehicleData>::const_iterator vdi = vd.begin(); vdi != vd.end(); ++vdi) {
113 tvd.back().id = vdi->idM;
114 tvd.back().length = vdi->lengthM;
115 tvd.back().entryTime = vdi->entryTimeM;
116 tvd.back().leaveTime = vdi->leaveTimeM;
117 tvd.back().typeID = vdi->typeIDM;
139 const float cmin[2] = {(float) p.
x(), (float) p.
y()};
140 const float cmax[2] = {(float) p.
x(), (float) p.
y()};
141 t->
Insert(cmin, cmax, il);
void Insert(const float a_min[2], const float a_max[2], Named *const &a_data)
Insert entry.
alternative tag for e1 detector
mirrors MSInductLoop::VehicleData
static std::string getLaneID(const std::string &detID)
double x() const
Returns the x-position.
A RT-tree for efficient storing of SUMO's Named objects.
int getCurrentPassedNumber() const
Returns the number of vehicles that have passed the detector.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
virtual std::vector< VehicleData > collectVehiclesOnDet(SUMOTime t, bool leaveTime=false) const
Returns vehicle data for vehicles that have been on the detector starting at the given time...
double getCurrentLength() const
Returns the length of the vehicle on the detector.
const MSLane * getLane() const
Returns the lane the reminder works on.
static std::vector< std::string > getIDList()
double getCurrentOccupancy() const
Returns the current occupancy.
static double getLastStepOccupancy(const std::string &detID)
T get(const std::string &id) const
Retrieves an item.
std::vector< std::string > getCurrentVehicleIDs() const
Returns the ids of vehicles that have passed the detector.
const std::string & getID() const
Returns the id.
const NamedObjectCont< MSDetectorFileOutput * > & getTypedDetectors(SumoXMLTag type) const
Returns the list of detectors of the given type.
double getCurrentSpeed() const
Returns the speed of the vehicle on the detector.
double getTimeSinceLastDetection() const
Returns the time since the last vehicle left the detector.
A point in 2D or 3D with translation and scaling methods.
void insertIDs(std::vector< std::string > &into) const
double y() const
Returns the y-position.
static double getTimeSinceDetection(const std::string &detID)
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
static MSInductLoop * getDetector(const std::string &detID)
MSDetectorControl & getDetectorControl()
Returns the detector control.
static int getLastStepVehicleNumber(const std::string &detID)
static std::vector< libsumo::TraCIVehicleData > getVehicleData(const std::string &detID)
double getPosition() const
Returns the position of the detector on the lane.
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
const PositionVector & getShape() const
Returns this lane's shape.
static double getLastStepMeanSpeed(const std::string &detID)
static NamedRTree * getTree()
Returns a tree filled with inductive loop instances.
static double getPosition(const std::string &detID)
An unextended detector measuring at a fixed position on a fixed lane.
int size() const
Returns the number of stored items within the container.
static double getLastStepMeanLength(const std::string &detID)