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<TraCIVehicleData>
110 std::vector<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;
static double getLastStepMeanSpeed(const std::string &detID)
const MSLane * getLane() const
Returns the lane the reminder works on.
alternative tag for e1 detector
static MSInductLoop * getDetector(const std::string &detID)
int size() const
Returns the number of items within the container.
std::vector< std::string > getCurrentVehicleIDs() const
Returns the ids of vehicles that have passed the detector.
T get(const std::string &id) const
Retrieves an item.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
double getCurrentLength() const
Returns the length of the vehicle on the detector.
const std::string & getID() const
Returns the id.
static double getLastStepMeanLength(const std::string &detID)
void insertIDs(std::vector< std::string > &into) const
static std::vector< std::string > getIDList()
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
double getCurrentSpeed() const
Returns the speed of the vehicle on the detector.
double getPosition() const
Returns the position of the detector on the lane.
static int getLastStepVehicleNumber(const std::string &detID)
MSDetectorControl & getDetectorControl()
Returns the detector control.
static std::string getLaneID(const std::string &detID)
double getTimeSinceLastDetection() const
Returns the time since the last vehicle left the detector.
int getCurrentPassedNumber() const
Returns the number of vehicles that have passed the detector.
static double getLastStepOccupancy(const std::string &detID)
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...
static double getTimeSinceDetection(const std::string &detID)
static double getPosition(const std::string &detID)
const NamedObjectCont< MSDetectorFileOutput * > & getTypedDetectors(SumoXMLTag type) const
Returns the list of detectors of the given type.
double getCurrentOccupancy() const
Returns the current occupancy.
static std::vector< TraCIVehicleData > getVehicleData(const std::string &detID)
An unextended detector measuring at a fixed position on a fixed lane.