43 std::vector<std::string>
45 std::vector<std::string> ids;
53 std::vector<std::string> ids;
82 std::vector<std::string>
106 std::vector<TraCIVehicleData>
109 std::vector<TraCIVehicleData> tvd;
110 for (std::vector<MSInductLoop::VehicleData>::const_iterator vdi = vd.begin(); vdi != vd.end(); ++vdi) {
112 tvd.back().id = vdi->idM;
113 tvd.back().length = vdi->lengthM;
114 tvd.back().entryTime = vdi->entryTimeM;
115 tvd.back().leaveTime = vdi->leaveTimeM;
116 tvd.back().typeID = vdi->typeIDM;
static double getLastStepMeanSpeed(const std::string &detID)
alternative tag for e1 detector
static MSInductLoop * getDetector(const std::string &detID)
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...
static double getLastStepMeanLength(const std::string &detID)
double getCurrentLength() const
Returns the length of the vehicle on the detector.
const MSLane * getLane() const
Returns the lane the reminder works on.
double getCurrentOccupancy() const
Returns the current occupancy.
static std::vector< std::string > getIDList()
T get(const std::string &id) const
Retrieves an item.
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
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.
void insertIDs(std::vector< std::string > &into) const
static int getLastStepVehicleNumber(const std::string &detID)
MSDetectorControl & getDetectorControl()
Returns the detector control.
static std::string getLaneID(const std::string &detID)
double getPosition() const
Returns the position of the detector on the lane.
mirrors MSInductLoop::VehicleData
static double getLastStepOccupancy(const std::string &detID)
static double getTimeSinceDetection(const std::string &detID)
static double getPosition(const std::string &detID)
static std::vector< TraCIVehicleData > getVehicleData(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.