42 #ifdef CHECK_MEMORY_LEAKS 44 #endif // CHECK_MEMORY_LEAKS 76 std::vector<std::string> ids;
79 ids.push_back(i->first);
139 tempMsg.
writeString(dynamic_cast<MSPerson*>(p)->getNextEdge());
142 std::string paramName =
"";
163 std::string warning =
"";
RGBColor color
The vehicle's color.
std::map< std::string, MSTransportable * >::const_iterator constVehIt
Definition of the internal transportables map iterator.
const SUMOVehicleParameter & getParameter() const
virtual SUMOReal getWaitingSeconds() const
the time this transportable spent waiting in seconds
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
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 SUMOReal getEdgePos() const
Return the position on the edge.
virtual void writeUnsignedByte(int)
const std::string & getParameter(const std::string &key, const std::string &defaultValue) const
Returns the value for a given key.
virtual SUMOReal getAngle() const
return the current angle of the transportable
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()
static bool getPosition(const std::string &id, Position &p)
Returns the named persons's position.
int size() const
Returns the number of known transportables.
unsigned char blue() const
Returns the blue-amount of the color.
const std::string & getID() const
Returns the id.
const MSVehicleType & getVehicleType() const
const MSEdge * getEdge() const
Returns the current edge.
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xce: Change Person State)
MSTransportable * get(const std::string &id) const
Returns the named transportable, if existing.
virtual MSTransportableControl & getPersonControl()
Returns the person control.
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)
virtual std::string readString()
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)
static SUMOReal naviDegree(const SUMOReal angle)
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
constVehIt loadedEnd() const
Returns the end of the internal transportables map.
virtual SUMOReal getSpeed() const
the current speed of the transportable
virtual void writeString(const std::string &s)
Structure representing possible vehicle parameter.
std::string toHex(const T i, std::streamsize numDigits=0)
SUMOReal y() const
Returns the y-position.
#define RESPONSE_GET_PERSON_VARIABLE
const std::string & getID() const
Returns the name of the vehicle type.
virtual Position getPosition() const
Return the Network coordinate of the transportable.
virtual void writeDouble(double)
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.
constVehIt loadedBegin() const
Returns the begin of the internal transportables map.
#define CMD_SET_PERSON_VARIABLE
unsigned char red() const
Returns the red-amount of the color.