42 std::vector<std::string>
44 std::vector<std::string> ids;
46 ids.push_back(item.first);
48 std::sort(ids.begin(), ids.end());
83 std::vector<std::string>
85 std::vector<std::string> result;
87 result.push_back(veh->getID());
97 std::vector<std::string>
99 std::vector<std::string> result;
133 std::shared_ptr<VariableWrapper>
static double getEndPos(const std::string &stopID)
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
TRACI_CONST int VAR_LANE_ID
virtual bool wrapInt(const std::string &objID, const int variable, const int value)=0
double getBeginLanePosition() const
Returns the begin position of this stop.
#define LIBSUMO_GET_PARAMETER_WITH_KEY_IMPLEMENTATION(CLASS)
MSStoppingPlace * getStoppingPlace(const std::string &id, const SumoXMLTag category) const
Returns the named stopping place of the given category.
static std::string getLaneID(const std::string &stopID)
A lane area vehicles can halt at.
static ContextSubscriptionResults myContextSubscriptionResults
const std::string getParameter(const std::string &key, const std::string defaultValue="") const
Returns the value for a given key.
TRACI_CONST int VAR_POSITION
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
static std::string getName(const std::string &stopID)
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
static MSStoppingPlace * getBusStop(const std::string &id)
const std::string & getID() const
Returns the id.
virtual bool wrapString(const std::string &objID, const int variable, const std::string &value)=0
const std::string & getMyName() const
TRACI_CONST int VAR_BUS_STOP_WAITING
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
TRACI_CONST int VAR_BUS_STOP_WAITING_IDS
static std::string getParameter(const std::string &stopID, const std::string ¶m)
TRACI_CONST int TRACI_ID_LIST
double getEndLanePosition() const
Returns the end position of this stop.
TRACI_CONST int VAR_STOP_STARTING_VEHICLES_NUMBER
static int getVehicleCount(const std::string &stopID)
Representation of a vehicle.
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
static int getPersonCount(const std::string &stopID)
void getWaitingPersonIDs(std::vector< std::string > &into) const
get IDs of persons waiting at this stop
virtual void setParameter(const std::string &key, const std::string &value)
Sets a parameter.
#define LIBSUMO_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
int getNumWaitingPersons() const
get number of persons waiting at this stop
static std::vector< std::string > getVehicleIDs(const std::string &stopID)
virtual bool wrapDouble(const std::string &objID, const int variable, const double value)=0
static double getStartPos(const std::string &stopID)
TRACI_CONST int VAR_LANEPOSITION
TRACI_CONST int VAR_STOP_STARTING_VEHICLES_IDS
static std::vector< std::string > getPersonIDs(const std::string &stopID)
std::vector< const SUMOVehicle * > getStoppedVehicles() const
get list of vehicles waiting at this stop
static LIBSUMO_GET_PARAMETER_WITH_KEY_API void setParameter(const std::string &stopID, const std::string &key, const std::string &value)
const MSLane & getLane() const
Returns the lane this stop is located at.
virtual bool wrapStringList(const std::string &objID, const int variable, const std::vector< std::string > &value)=0
static SubscriptionResults mySubscriptionResults
static std::vector< std::string > getIDList()