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