 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
48 std::vector<std::string>
50 std::vector<std::string> ids;
91 Boundary b = i.second->getShape().getBoxBoundary();
92 const float cmin[2] = {(float) b.
xmin(), (float) b.
ymin()};
93 const float cmax[2] = {(float) b.
xmax(), (float) b.
ymax()};
94 t->
Insert(cmin, cmax, i.second);
106 std::shared_ptr<VariableWrapper>
static TraCIPosition getPosition(const std::string &junctionID, const bool includeZ=false)
TRACI_CONST int VAR_POSITION
double ymin() const
Returns minimum y-coordinate.
The base class for an intersection.
void insertIDs(std::vector< std::string > &into) const
double xmax() const
Returns maximum x-coordinate.
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
static std::vector< std::string > getIDList()
static TraCIPosition makeTraCIPosition(const Position &position, const bool includeZ=false)
static void storeShape(const std::string &id, PositionVector &shape)
Saves the shape of the requested object in the given container.
double xmin() const
Returns minimum x-coordinate.
void Insert(const float a_min[2], const float a_max[2], Named *const &a_data)
Insert entry.
virtual bool wrapStringList(const std::string &objID, const int variable, const std::vector< std::string > &value)=0
static std::shared_ptr< VariableWrapper > makeWrapper()
A class that stores a 2D geometrical boundary.
static TraCIPositionVector makeTraCIPositionVector(const PositionVector &positionVector)
helper functions
TRACI_CONST int TRACI_ID_LIST
#define LIBSUMO_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
static LIBSUMO_SUBSCRIPTION_API NamedRTree * getTree()
Returns a tree filled with junction instances.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults
virtual bool wrapInt(const std::string &objID, const int variable, const int value)=0
T get(const std::string &id) const
Retrieves an item.
A RT-tree for efficient storing of SUMO's Named objects.
static MSJunction * getJunction(const std::string &id)
virtual bool wrapPosition(const std::string &objID, const int variable, const TraCIPosition &value)=0
MSJunctionControl & getJunctionControl()
Returns the junctions control.
static TraCIPositionVector getShape(const std::string &junctionID)
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
double ymax() const
Returns maximum y-coordinate.