41 #ifdef CHECK_MEMORY_LEAKS 43 #endif // CHECK_MEMORY_LEAKS 79 std::vector<std::string> ids;
84 std::vector<std::string> ids;
93 std::vector<std::string> ids;
#define LAST_STEP_MEAN_SPEED
SUMOReal getCurrentMeanSpeed() const
Returns the mean vehicle speed of vehicles currently on the detector.
const MSLane * getLane() const
Returns the lane the reminder works on.
SUMOReal getCurrentJamLengthInMeters() const
Returns the length of all jams in meters.
std::vector< std::string > getCurrentVehicleIDs() const
Returns the IDs of the vehicles within the area.
int getCurrentJamLengthInVehicles() const
Returns the length of all jams in vehicles.
An areal (along a single lane) detector.
T get(const std::string &id) const
Retrieves an item.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
#define JAM_LENGTH_METERS
const std::string & getID() const
Returns the id.
virtual void writeUnsignedByte(int)
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
void insertIDs(std::vector< std::string > &into) const
virtual void writeInt(int)
virtual int readUnsignedByte()
SUMOReal getEndPos() const
Returns the end position of the detector.
#define CMD_GET_AREAL_DETECTOR_VARIABLE
#define JAM_LENGTH_VEHICLE
SUMOReal getCurrentOccupancy() const
Returns the curent detector occupancy.
virtual void writeStringList(const std::vector< std::string > &s)
#define RESPONSE_GET_AREAL_DETECTOR_VARIABLE
virtual std::string readString()
int getCurrentHaltingNumber() const
Returns the number of current haltings within the area.
SUMOReal getStartPos() const
Returns the begin position of the detector.
TraCI server used to control sumo by a remote TraCI client.
MSDetectorControl & getDetectorControl()
Returns the detector control.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
#define LAST_STEP_VEHICLE_NUMBER
virtual void writeString(const std::string &s)
#define LAST_STEP_VEHICLE_ID_LIST
std::string toHex(const T i, std::streamsize numDigits=0)
virtual void writeDouble(double)
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
#define LAST_STEP_OCCUPANCY
const NamedObjectCont< MSDetectorFileOutput * > & getTypedDetectors(SumoXMLTag type) const
Returns the list of detectors of the given type.
#define LAST_STEP_VEHICLE_HALTING_NUMBER
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa1: Get AreaDetector Variable)
int getCurrentVehicleNumber() const
Returns the number of vehicles currently on the detector.