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