45 std::vector<std::string>
47 std::vector<std::string> ids;
55 std::vector<std::string> ids;
72 std::vector<std::string>
91 throw TraCIException(
"Multi entry exit detector '" +
id +
"' is not known");
97 std::shared_ptr<VariableWrapper>
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
virtual bool wrapInt(const std::string &objID, const int variable, const int value)=0
static double getLastStepMeanSpeed(const std::string &detID)
int getCurrentHaltingNumber() const
Returns the number of current haltings within the area.
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
int size() const
Returns the number of stored items within the container.
T get(const std::string &id) const
Retrieves an item.
static int getLastStepVehicleNumber(const std::string &detID)
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
static int getLastStepHaltingNumber(const std::string &detID)
static MSE3Collector * getDetector(const std::string &detID)
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
std::vector< std::string > getCurrentVehicleIDs() const
Returns the number of vehicles within the area.
void insertIDs(std::vector< std::string > &into) const
TRACI_CONST int TRACI_ID_LIST
TRACI_CONST int LAST_STEP_VEHICLE_ID_LIST
static ContextSubscriptionResults myContextSubscriptionResults
double getCurrentMeanSpeed() const
Returns the mean speed within the area.
static std::vector< std::string > getIDList()
#define LIBSUMO_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
MSDetectorControl & getDetectorControl()
Returns the detector control.
virtual bool wrapDouble(const std::string &objID, const int variable, const double value)=0
TRACI_CONST int LAST_STEP_MEAN_SPEED
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
TRACI_CONST int LAST_STEP_VEHICLE_NUMBER
A detector of vehicles passing an area between entry/exit points.
static SubscriptionResults mySubscriptionResults
int getVehiclesWithin() const
Returns the number of vehicles within the area.
TRACI_CONST int LAST_STEP_VEHICLE_HALTING_NUMBER
virtual bool wrapStringList(const std::string &objID, const int variable, const std::vector< std::string > &value)=0
const NamedObjectCont< MSDetectorFileOutput * > & getTypedDetectors(SumoXMLTag type) const
Returns the list of detectors of the given type.
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
alternative tag for e3 detector