42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
75 std::vector<std::string> ids;
77 ids.push_back((*i).first);
135 std::string paramName =
"";
156 std::string warning =
"";
RGBColor color
The vehicle's color.
const MSVehicleType & getVehicleType() const
virtual Position getPosition() const
return the Network coordinate of the person
const MSEdge * getEdge() const
Returns the current edge.
static bool getVariable(const int variable, const MSVehicleType &v, tcpip::Storage &tempMsg)
Processes a value request for the given type.
#define CMD_GET_PERSON_VARIABLE
virtual SUMOReal getWaitingSeconds() const
the time this person spent waiting in seconds
constVehIt loadedPersonsEnd() const
Returns the end of the internal persons map.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
bool readTypeCheckingString(tcpip::Storage &inputStorage, std::string &into)
Reads the value type and a string, verifying the type.
virtual void writeUnsignedByte(int)
const std::string & getParameter(const std::string &key, const std::string &defaultValue) const
Returns the value for a given key.
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
SUMOReal x() const
Returns the x-position.
virtual void writeInt(int)
virtual int readUnsignedByte()
const SUMOVehicleParameter & getParameter() const
static bool getPosition(const std::string &id, Position &p)
Returns the named persons's position.
unsigned char blue() const
Returns the blue-amount of the color.
const std::string & getID() const
Returns the id.
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xce: Change Person State)
A point in 2D or 3D with translation and scaling methods.
unsigned char alpha() const
Returns the alpha-amount of the color.
SUMOReal z() const
Returns the z-position.
virtual void writeStringList(const std::vector< std::string > &s)
std::map< std::string, MSPerson * >::const_iterator constVehIt
Definition of the internal persons map iterator.
virtual std::string readString()
unsigned int size() const
Returns the number of known persons.
virtual SUMOReal getAngle() const
return the current angle of the person
TraCI server used to control sumo by a remote TraCI client.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xae: Get Person Variable)
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
virtual void writeString(const std::string &s)
Structure representing possible vehicle parameter.
virtual MSPersonControl & getPersonControl()
Returns the person control.
SUMOReal y() const
Returns the y-position.
#define RESPONSE_GET_PERSON_VARIABLE
MSPerson * get(const std::string &id) const
Returns the named person, if existing.
const std::string & getID() const
Returns the name of the vehicle type.
virtual void writeDouble(double)
virtual SUMOReal getSpeed() const
the current speed of the person
virtual SUMOReal getEdgePos() const
return the offset from the start of the current edge
unsigned char green() const
Returns the green-amount of the color.
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
#define CMD_SET_PERSON_VARIABLE
unsigned char red() const
Returns the red-amount of the color.
constVehIt loadedPersonsBegin() const
Returns the begin of the internal persons map.