48 const std::string
id = inputStorage.
readString();
59 tempContent.
writeInt((
int) links.size());
61 for (std::vector<libsumo::TraCIConnection>::const_iterator i = links.begin(); i != links.end(); ++i) {
116 std::string paramName =
"";
140 std::string warning =
"";
172 std::vector<std::string> classes;
180 std::vector<std::string> classes;
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa3: Get Lane Variable)
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 bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc3: Change Lane State)
TRACI_CONST int CMD_GET_LANE_VARIABLE
static void setParameter(const std::string &routeID, const std::string &key, const std::string &value)
TRACI_CONST int VAR_PARAMETER
static std::vector< std::string > getInternalFoes(const 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.
TRACI_CONST int LANE_DISALLOWED
virtual void writeUnsignedByte(int)
TRACI_CONST int VAR_MAXSPEED
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
virtual void writeInt(int)
virtual int readUnsignedByte()
TRACI_CONST int TYPE_INTEGER
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.
TRACI_CONST int VAR_SHAPE
TRACI_CONST int VAR_LENGTH
virtual void writeStringList(const std::vector< std::string > &s)
TRACI_CONST int CMD_SET_LANE_VARIABLE
static void setMaxSpeed(std::string laneID, double speed)
TRACI_CONST int TYPE_DOUBLE
tcpip::Storage & getWrapperStorage()
TRACI_CONST int TYPE_STRINGLIST
virtual std::string readString()
static void setDisallowed(std::string laneID, std::vector< std::string > disallowedClasses)
TRACI_CONST int TYPE_STRING
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)
TRACI_CONST int LANE_ALLOWED
static bool dictionary(const std::string &id, MSLane *lane)
Static (sic!) container methods {.
void writePositionVector(tcpip::Storage &outputStorage, const libsumo::TraCIPositionVector &shape)
virtual void writeString(const std::string &s)
std::string toHex(const T i, std::streamsize numDigits=0)
TRACI_CONST int LANE_LINKS
TRACI_CONST int RESPONSE_GET_LANE_VARIABLE
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
TRACI_CONST int TYPE_UBYTE
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.
static void setLength(std::string laneID, double length)
void initWrapper(const int domainID, const int variable, const std::string &objID)
Representation of a lane in the micro simulation.
TRACI_CONST int TYPE_COMPOUND