114 tempContent.
writeInt((
int) vd.size());
116 for (
int i = 0; i < (int)vd.size(); ++i) {
#define LAST_STEP_MEAN_SPEED
const MSLane * getLane() const
Returns the lane the reminder works on.
double leaveTime
Leave-time of the vehicle in [s].
alternative tag for e1 detector
std::string typeID
Type of the vehicle in.
mirrors MSInductLoop::VehicleData
#define CMD_GET_INDUCTIONLOOP_VARIABLE
static std::string getLaneID(const std::string &detID)
#define LAST_STEP_VEHICLE_DATA
T get(const std::string &id) const
Retrieves an item.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
const PositionVector & getShape() const
Returns this lane's shape.
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.
static std::vector< std::string > getIDList()
virtual void writeInt(int)
virtual int readUnsignedByte()
static double getLastStepOccupancy(const std::string &detID)
static bool getPosition(const std::string &id, Position &p)
Returns the named inductive loop's position.
#define LAST_STEP_TIME_SINCE_DETECTION
A point in 2D or 3D with translation and scaling methods.
static double getTimeSinceDetection(const std::string &detID)
double getPosition() const
Returns the position of the detector on the lane.
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
virtual void writeStringList(const std::vector< std::string > &s)
double length
Length of the vehicle.
std::string id
The id of the vehicle.
virtual std::string readString()
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa0: Get Induction Loop Variable)
TraCI server used to control sumo by a remote TraCI client.
MSDetectorControl & getDetectorControl()
Returns the detector control.
#define RESPONSE_GET_INDUCTIONLOOP_VARIABLE
virtual void writeStorage(tcpip::Storage &store)
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
#define LAST_STEP_VEHICLE_NUMBER
static int getLastStepVehicleNumber(const std::string &detID)
static std::vector< libsumo::TraCIVehicleData > getVehicleData(const std::string &detID)
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)
static double getLastStepMeanSpeed(const std::string &detID)
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
static double getPosition(const std::string &detID)
double entryTime
Entry-time of the vehicle in [s].
const NamedObjectCont< MSDetectorFileOutput * > & getTypedDetectors(SumoXMLTag type) const
Returns the list of detectors of the given type.
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
An unextended detector measuring at a fixed position on a fixed lane.
static double getLastStepMeanLength(const std::string &detID)