109 tempContent.
writeInt((
int) links.size());
111 for (std::vector<libsumo::TraCIConnection>::const_iterator i = links.begin(); i != links.end(); ++i) {
176 for (
int iPoint = 0; iPoint <
MIN2(255, (
int) shp.size()); ++iPoint) {
256 std::string paramName =
"";
280 std::string warning =
"";
312 std::vector<std::string> classes;
320 std::vector<std::string> classes;
static double getCO2Emission(std::string laneID)
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa3: Get Lane Variable)
#define LAST_STEP_MEAN_SPEED
static double getLength(std::string laneID)
static double getNOxEmission(std::string laneID)
static void setAllowed(std::string laneID, std::vector< std::string > allowedClasses)
static std::vector< std::string > getFoes(const std::string &laneID, const std::string &toLaneID)
static std::vector< TraCIConnection > getLinks(std::string laneID)
static std::string getEdgeID(std::string laneID)
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc3: Change Lane State)
#define VAR_CURRENT_TRAVELTIME
static void setParameter(const std::string &routeID, const std::string &key, const std::string &value)
static std::vector< std::string > getAllowed(std::string laneID)
static std::vector< std::string > getInternalFoes(const std::string &laneID)
static double getElectricityConsumption(std::string laneID)
static double getFuelConsumption(std::string laneID)
bool readTypeCheckingString(tcpip::Storage &inputStorage, std::string &into)
Reads the value type and a string, verifying the type.
bool readTypeCheckingDouble(tcpip::Storage &inputStorage, double &into)
Reads the value type and a double, verifying the type.
const PositionVector & getShape() const
Returns this lane's shape.
static int getLastStepHaltingNumber(std::string laneID)
static double getWidth(std::string laneID)
static int getLastStepVehicleNumber(std::string laneID)
virtual void writeUnsignedByte(int)
static double getMaxSpeed(std::string laneID)
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
#define VAR_NOISEEMISSION
#define VAR_FUELCONSUMPTION
static double getPMxEmission(std::string laneID)
virtual void writeInt(int)
virtual int readUnsignedByte()
static double getLastStepLength(std::string laneID)
#define RESPONSE_GET_LANE_VARIABLE
static double getHCEmission(std::string laneID)
static double getLastStepMeanSpeed(std::string laneID)
static TraCIPositionVector getShape(std::string laneID)
bool readTypeCheckingStringList(tcpip::Storage &inputStorage, std::vector< std::string > &into)
Reads the value type and a string list, verifying the type.
virtual void writeStringList(const std::vector< std::string > &s)
#define CMD_GET_LANE_VARIABLE
static void setMaxSpeed(std::string laneID, double speed)
virtual std::string readString()
static void setDisallowed(std::string laneID, std::vector< std::string > disallowedClasses)
TraCI server used to control sumo by a remote TraCI client.
virtual void writeStorage(tcpip::Storage &store)
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
static std::string getParameter(const std::string &laneID, const std::string ¶m)
#define LAST_STEP_VEHICLE_NUMBER
static bool dictionary(const std::string &id, MSLane *lane)
Static (sic!) container methods {.
virtual void writeString(const std::string &s)
#define LAST_STEP_VEHICLE_ID_LIST
std::string toHex(const T i, std::streamsize numDigits=0)
std::vector< TraCIPosition > TraCIPositionVector
static std::vector< std::string > getLastStepVehicleIDs(std::string laneID)
#define CMD_SET_LANE_VARIABLE
#define VAR_ELECTRICITYCONSUMPTION
static double getWaitingTime(std::string laneID)
virtual void writeDouble(double)
static double getTraveltime(std::string laneID)
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 void setLength(std::string laneID, double length)
Representation of a lane in the micro simulation.
static double getNoiseEmission(std::string laneID)
#define LAST_STEP_VEHICLE_HALTING_NUMBER
static double getLastStepOccupancy(std::string laneID)
static std::vector< std::string > getDisallowed(std::string laneID)
static bool getShape(const std::string &id, PositionVector &shape)
Returns the named lane's shape.
static int getLinkNumber(std::string laneID)
static double getCOEmission(std::string laneID)
static std::vector< std::string > getIDList()