 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
47 const std::string
id = inputStorage.
readString();
58 tempContent.
writeInt((
int) links.size());
60 for (std::vector<libsumo::TraCIConnection>::const_iterator i = links.begin(); i != links.end(); ++i) {
115 std::string paramName =
"";
139 std::string warning =
"";
171 std::vector<std::string> classes;
179 std::vector<std::string> classes;
static std::vector< std::string > getInternalFoes(const std::string &laneID)
static bool dictionary(const std::string &id, MSLane *lane)
Static (sic!) container methods {.
static void setMaxSpeed(std::string laneID, double speed)
Representation of a lane in the micro simulation.
TRACI_CONST int VAR_MAXSPEED
virtual void writeUnsignedByte(int)
bool readTypeCheckingString(tcpip::Storage &inputStorage, std::string &into)
Reads the value type and a string, verifying the type.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
TRACI_CONST int LANE_DISALLOWED
static std::vector< std::string > getFoes(const std::string &laneID, const std::string &toLaneID)
TRACI_CONST int VAR_PARAMETER
static void setParameter(const std::string &routeID, const std::string &key, const std::string &value)
static void setLength(std::string laneID, double length)
TRACI_CONST int CMD_GET_LANE_VARIABLE
tcpip::Storage & getWrapperStorage()
bool readTypeCheckingDouble(tcpip::Storage &inputStorage, double &into)
Reads the value type and a double, verifying the type.
static void setAllowed(std::string laneID, std::vector< std::string > allowedClasses)
static TraCIPositionVector getShape(std::string laneID)
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
static std::string getParameter(const std::string &laneID, const std::string ¶m)
void initWrapper(const int domainID, const int variable, const std::string &objID)
TRACI_CONST int VAR_SHAPE
virtual int readUnsignedByte()
virtual void writeInt(int)
TRACI_CONST int TYPE_DOUBLE
virtual std::string readString()
TRACI_CONST int TYPE_INTEGER
virtual void writeStorage(tcpip::Storage &store)
virtual void writeStringList(const std::vector< std::string > &s)
TRACI_CONST int CMD_SET_LANE_VARIABLE
std::string toHex(const T i, std::streamsize numDigits=0)
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_LENGTH
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
void writePositionVector(tcpip::Storage &outputStorage, const libsumo::TraCIPositionVector &shape)
TRACI_CONST int TYPE_STRINGLIST
static std::vector< TraCIConnection > getLinks(std::string laneID)
virtual void writeString(const std::string &s)
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc3: Change Lane State)
TRACI_CONST int LANE_ALLOWED
TRACI_CONST int TYPE_STRING
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa3: Get Lane Variable)
TRACI_CONST int TYPE_UBYTE
TRACI_CONST int RESPONSE_GET_LANE_VARIABLE
virtual void writeDouble(double)
TRACI_CONST int LANE_LINKS
TraCI server used to control sumo by a remote TraCI client.
static void setDisallowed(std::string laneID, std::vector< std::string > disallowedClasses)
TRACI_CONST int TYPE_COMPOUND
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.