45 std::vector<std::string>
47 std::vector<std::string> ids;
55 std::vector<std::string> ids;
78 std::vector<std::string>
128 throw TraCIException(
"Lane area detector '" +
id +
"' is not known");
134 std::shared_ptr<VariableWrapper>
#define LAST_STEP_MEAN_SPEED
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
const MSLane * getLane() const
Returns the lane the reminder works on.
virtual bool wrapInt(const std::string &objID, const int variable, const int value)=0
std::vector< std::string > getCurrentVehicleIDs() const
Returns the IDs of the vehicles within the area.
static std::string getLaneID(const std::string &detID)
int getCurrentJamLengthInVehicles() const
Returns the length of all jams in vehicles.
static double getPosition(const std::string &detID)
An areal detector corresponding to a sequence of consecutive lanes.
int size() const
Returns the number of stored items within the container.
T get(const std::string &id) const
Retrieves an item.
double getLength() const
Returns the length of the detector.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
double getStartPos() const
Returns the begin position of the detector.
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
#define JAM_LENGTH_METERS
const std::string & getID() const
Returns the id.
virtual bool wrapString(const std::string &objID, const int variable, const std::string &value)=0
void insertIDs(std::vector< std::string > &into) const
static int getLastStepVehicleNumber(const std::string &detID)
static double getJamLengthMeters(const std::string &detID)
static double getLength(const std::string &detID)
double getCurrentMeanSpeed() const
Returns the mean vehicle speed of vehicles currently on the detector.
#define JAM_LENGTH_VEHICLE
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
static double getLastStepMeanSpeed(const std::string &detID)
int getCurrentHaltingNumber() const
Returns the number of current haltings within the area.
#define LIBSUMO_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
static int getJamLengthVehicle(const std::string &detID)
MSDetectorControl & getDetectorControl()
Returns the detector control.
virtual bool wrapDouble(const std::string &objID, const int variable, const double value)=0
#define LAST_STEP_VEHICLE_NUMBER
static LIBSUMO_SUBSCRIPTION_API std::shared_ptr< VariableWrapper > makeWrapper()
#define LAST_STEP_VEHICLE_ID_LIST
static std::vector< std::string > getIDList()
double getCurrentJamLengthInMeters() const
Returns the length of all jams in meters.
static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults
static int getLastStepHaltingNumber(const std::string &detID)
static double getLastStepOccupancy(const std::string &detID)
#define LAST_STEP_OCCUPANCY
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.
double getCurrentOccupancy() const
Returns the current detector occupancy.
static std::vector< std::string > getLastStepVehicleIDs(const std::string &detID)
#define LAST_STEP_VEHICLE_HALTING_NUMBER
alternative tag for e2 detector
static MSE2Collector * getDetector(const std::string &detID)
int getCurrentVehicleNumber() const
Returns the number of vehicles currently on the detector.