42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
50 using namespace traci;
73 std::vector<std::string> ids;
78 std::vector<std::string> ids;
120 for (std::map<std::string, MSJunction*>::const_iterator i = junctions.begin(); i != junctions.end(); ++i) {
121 Boundary b = (*i).second->getShape().getBoxBoundary();
The base class for an intersection.
void writeStatusCmd(int commandId, int status, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
virtual void writeUnsignedByte(int)
SUMOReal x() const
Returns the x-position.
A class that stores a 2D geometrical boundary.
virtual void writeInt(int)
virtual int readUnsignedByte()
T get(const std::string &id) const
Retrieves an item.
TraCI server used to control sumo by a remote TraCI client.
bool writeErrorStatusCmd(int commandId, const std::string &description, tcpip::Storage &outputStorage)
Writes a status command to the given storage with status = RTYPE_ERR.
A point in 2D or 3D with translation and scaling methods.
void insertIDs(std::vector< std::string > &into) const
virtual void writeStringList(const std::vector< std::string > &s)
void addObject(Named *o, Boundary &b)
Adds an additional object (detector/shape/trigger) for visualisation.
virtual std::string readString()
static bool processGet(traci::TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa9: Get Junction Variable)
#define CMD_GET_JUNCTION_VARIABLE
const IDMap & getMyMap() const
A RT-tree for efficient storing of SUMO's GL-objects.
void writeResponseWithLength(tcpip::Storage &outputStorage, tcpip::Storage &tempMsg)
virtual void writeString(const std::string &s)
static bool getPosition(const std::string &id, Position &p)
Returns the named junction's position.
static TraCIRTree * getTree()
Returns a tree filled with inductive loop instances.
SUMOReal y() const
Returns the y-position.
#define RESPONSE_GET_JUNCTION_VARIABLE
virtual void writeDouble(double)
MSJunctionControl & getJunctionControl()
Returns the junctions control.
const Position & getPosition() const