38 #ifdef CHECK_MEMORY_LEAKS 40 #endif // CHECK_MEMORY_LEAKS 65 std::vector<std::string> ids;
70 std::vector<std::string> ids;
#define LAST_STEP_MEAN_SPEED
int getCurrentHaltingNumber() const
Returns the number of current haltings within the area.
T get(const std::string &id) const
Retrieves an item.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
std::vector< std::string > getCurrentVehicleIDs() const
Returns the number of vehicles within the area.
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()
virtual void writeStringList(const std::vector< std::string > &s)
virtual std::string readString()
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
#define CMD_GET_MULTI_ENTRY_EXIT_DETECTOR_VARIABLE
SUMOReal getCurrentMeanSpeed() const
Returns the mean speed within the area.
std::string toHex(const T i, std::streamsize numDigits=0)
A detector of vehicles passing an area between entry/exit points.
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.
int getVehiclesWithin() const
Returns the number of vehicles within the area.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa1: Get MeMeDetector Variable)
const NamedObjectCont< MSDetectorFileOutput * > & getTypedDetectors(SumoXMLTag type) const
Returns the list of detectors of the given type.
#define LAST_STEP_VEHICLE_HALTING_NUMBER
#define RESPONSE_GET_MULTI_ENTRY_EXIT_DETECTOR_VARIABLE