Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
LIBSUMO_NAMESPACE::LaneArea Class Reference

#include <LaneArea.h>

Collaboration diagram for LIBSUMO_NAMESPACE::LaneArea:
[legend]

Static Public Member Functions

static void cleanup ()
static double getIntervalMaxJamLengthInMeters (const std::string &detID)
static double getIntervalMeanSpeed (const std::string &detID)
static double getIntervalMeanTimeLoss (const std::string &detID)
static double getIntervalOccupancy (const std::string &detID)
static int getIntervalVehicleNumber (const std::string &detID)
static double getJamLengthMeters (const std::string &detID)
static int getJamLengthVehicle (const std::string &detID)
static std::string getLaneID (const std::string &detID)
static double getLastIntervalMaxJamLengthInMeters (const std::string &detID)
static double getLastIntervalMeanSpeed (const std::string &detID)
static double getLastIntervalMeanTimeLoss (const std::string &detID)
static double getLastIntervalOccupancy (const std::string &detID)
static int getLastIntervalVehicleNumber (const std::string &detID)
static int getLastStepHaltingNumber (const std::string &detID)
static double getLastStepMeanSpeed (const std::string &detID)
static double getLastStepOccupancy (const std::string &detID)
static std::vector< std::string > getLastStepVehicleIDs (const std::string &detID)
static int getLastStepVehicleNumber (const std::string &detID)
static double getLength (const std::string &detID)
static double getPosition (const std::string &detID)
LIBSUMO_ID_PARAMETER_API static LIBSUMO_SUBSCRIPTION_API NamedRTreegetTree ()
 Returns a tree filled with inductive loop instances.
static bool handleVariable (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
static std::shared_ptr< VariableWrapper > makeWrapper ()
static void overrideVehicleNumber (const std::string &detID, int vehNum)
static void storeShape (const std::string &id, PositionVector &shape)
 Saves the shape of the requested object in the given container.

Private Member Functions

 LaneArea ()=delete
 invalidated standard constructor

Static Private Member Functions

static MSE2CollectorgetDetector (const std::string &detID)

Static Private Attributes

static ContextSubscriptionResults myContextSubscriptionResults
static SubscriptionResults mySubscriptionResults
static NamedRTreemyTree

Detailed Description

Definition at line 44 of file LaneArea.h.

Constructor & Destructor Documentation

◆ LaneArea()

LIBSUMO_NAMESPACE::LaneArea::LaneArea ( )
privatedelete

invalidated standard constructor

Member Function Documentation

◆ cleanup()

void LaneArea::cleanup ( )
static

Definition at line 218 of file libsumo/LaneArea.cpp.

References cleanup(), and myTree.

Referenced by cleanup().

Here is the caller graph for this function:

◆ getDetector()

◆ getIntervalMaxJamLengthInMeters()

double LaneArea::getIntervalMaxJamLengthInMeters ( const std::string & detID)
static

Definition at line 137 of file libsumo/LaneArea.cpp.

References getDetector(), and getIntervalMaxJamLengthInMeters().

Referenced by getIntervalMaxJamLengthInMeters(), and handleVariable().

Here is the caller graph for this function:

◆ getIntervalMeanSpeed()

double LaneArea::getIntervalMeanSpeed ( const std::string & detID)
static

Definition at line 127 of file libsumo/LaneArea.cpp.

References getDetector(), and getIntervalMeanSpeed().

Referenced by getIntervalMeanSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getIntervalMeanTimeLoss()

double LaneArea::getIntervalMeanTimeLoss ( const std::string & detID)
static

Definition at line 132 of file libsumo/LaneArea.cpp.

References getDetector(), and getIntervalMeanTimeLoss().

Referenced by getIntervalMeanTimeLoss(), and handleVariable().

Here is the caller graph for this function:

◆ getIntervalOccupancy()

double LaneArea::getIntervalOccupancy ( const std::string & detID)
static

Definition at line 122 of file libsumo/LaneArea.cpp.

References getDetector(), and getIntervalOccupancy().

Referenced by getIntervalOccupancy(), and handleVariable().

Here is the caller graph for this function:

◆ getIntervalVehicleNumber()

int LaneArea::getIntervalVehicleNumber ( const std::string & detID)
static

Definition at line 142 of file libsumo/LaneArea.cpp.

References getDetector(), and getIntervalVehicleNumber().

Referenced by getIntervalVehicleNumber(), and handleVariable().

Here is the caller graph for this function:

◆ getJamLengthMeters()

double LaneArea::getJamLengthMeters ( const std::string & detID)
static

Definition at line 67 of file libsumo/LaneArea.cpp.

References getDetector(), and getJamLengthMeters().

Referenced by getJamLengthMeters(), and handleVariable().

Here is the caller graph for this function:

◆ getJamLengthVehicle()

int LaneArea::getJamLengthVehicle ( const std::string & detID)
static

Definition at line 61 of file libsumo/LaneArea.cpp.

References getDetector(), and getJamLengthVehicle().

Referenced by getJamLengthVehicle(), and handleVariable().

Here is the caller graph for this function:

◆ getLaneID()

std::string LaneArea::getLaneID ( const std::string & detID)
static

Definition at line 97 of file libsumo/LaneArea.cpp.

References getDetector(), and getLaneID().

Referenced by getLaneID(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalMaxJamLengthInMeters()

double LaneArea::getLastIntervalMaxJamLengthInMeters ( const std::string & detID)
static

Definition at line 162 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastIntervalMaxJamLengthInMeters().

Referenced by getLastIntervalMaxJamLengthInMeters(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalMeanSpeed()

double LaneArea::getLastIntervalMeanSpeed ( const std::string & detID)
static

Definition at line 152 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastIntervalMeanSpeed().

Referenced by getLastIntervalMeanSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalMeanTimeLoss()

double LaneArea::getLastIntervalMeanTimeLoss ( const std::string & detID)
static

Definition at line 157 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastIntervalMeanTimeLoss().

Referenced by getLastIntervalMeanTimeLoss(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalOccupancy()

double LaneArea::getLastIntervalOccupancy ( const std::string & detID)
static

Definition at line 147 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastIntervalOccupancy().

Referenced by getLastIntervalOccupancy(), and handleVariable().

Here is the caller graph for this function:

◆ getLastIntervalVehicleNumber()

int LaneArea::getLastIntervalVehicleNumber ( const std::string & detID)
static

Definition at line 167 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastIntervalVehicleNumber().

Referenced by getLastIntervalVehicleNumber(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepHaltingNumber()

int LaneArea::getLastStepHaltingNumber ( const std::string & detID)
static

Definition at line 116 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastStepHaltingNumber().

Referenced by getLastStepHaltingNumber(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepMeanSpeed()

double LaneArea::getLastStepMeanSpeed ( const std::string & detID)
static

Definition at line 73 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastStepMeanSpeed().

Referenced by getLastStepMeanSpeed(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepOccupancy()

double LaneArea::getLastStepOccupancy ( const std::string & detID)
static

Definition at line 85 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastStepOccupancy().

Referenced by getLastStepOccupancy(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepVehicleIDs()

std::vector< std::string > LaneArea::getLastStepVehicleIDs ( const std::string & detID)
static

Definition at line 79 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastStepVehicleIDs().

Referenced by getLastStepVehicleIDs(), and handleVariable().

Here is the caller graph for this function:

◆ getLastStepVehicleNumber()

int LaneArea::getLastStepVehicleNumber ( const std::string & detID)
static

Definition at line 110 of file libsumo/LaneArea.cpp.

References getDetector(), and getLastStepVehicleNumber().

Referenced by getLastStepVehicleNumber(), and handleVariable().

Here is the caller graph for this function:

◆ getLength()

double LaneArea::getLength ( const std::string & detID)
static

Definition at line 103 of file libsumo/LaneArea.cpp.

References getDetector(), getLength(), and MSE2Collector::getLength().

Referenced by getLength(), and handleVariable().

Here is the caller graph for this function:

◆ getPosition()

double LaneArea::getPosition ( const std::string & detID)
static

Definition at line 91 of file libsumo/LaneArea.cpp.

References getDetector(), and getPosition().

Referenced by getPosition(), and handleVariable().

Here is the caller graph for this function:

◆ getTree()

NamedRTree * LaneArea::getTree ( )
static

Returns a tree filled with inductive loop instances.

Returns
The rtree of inductive loops

Definition at line 201 of file libsumo/LaneArea.cpp.

References PositionVector::getBoxBoundary(), getDetector(), getTree(), myTree, and storeShape().

Referenced by getTree().

Here is the caller graph for this function:

◆ handleVariable()

bool LaneArea::handleVariable ( const std::string & objID,
const int variable,
VariableWrapper * wrapper,
tcpip::Storage * paramData )
static

Definition at line 245 of file libsumo/LaneArea.cpp.

References getIntervalMaxJamLengthInMeters(), getIntervalMeanSpeed(), getIntervalMeanTimeLoss(), getIntervalOccupancy(), getIntervalVehicleNumber(), getJamLengthMeters(), getJamLengthVehicle(), getLaneID(), getLastIntervalMaxJamLengthInMeters(), getLastIntervalMeanSpeed(), getLastIntervalMeanTimeLoss(), getLastIntervalOccupancy(), getLastIntervalVehicleNumber(), getLastStepHaltingNumber(), getLastStepMeanSpeed(), getLastStepOccupancy(), getLastStepVehicleIDs(), getLastStepVehicleNumber(), getLength(), getPosition(), handleVariable(), libsumo::ID_COUNT, libsumo::JAM_LENGTH_METERS, libsumo::JAM_LENGTH_VEHICLE, libsumo::LAST_STEP_MEAN_SPEED, libsumo::LAST_STEP_OCCUPANCY, libsumo::LAST_STEP_VEHICLE_HALTING_NUMBER, libsumo::LAST_STEP_VEHICLE_ID_LIST, libsumo::LAST_STEP_VEHICLE_NUMBER, tcpip::Storage::readString(), tcpip::Storage::readUnsignedByte(), libsumo::TRACI_ID_LIST, libsumo::VAR_INTERVAL_MAX_JAM_LENGTH_METERS, libsumo::VAR_INTERVAL_NUMBER, libsumo::VAR_INTERVAL_OCCUPANCY, libsumo::VAR_INTERVAL_SPEED, libsumo::VAR_INTERVAL_TIMELOSS, libsumo::VAR_LANE_ID, libsumo::VAR_LAST_INTERVAL_MAX_JAM_LENGTH_METERS, libsumo::VAR_LAST_INTERVAL_NUMBER, libsumo::VAR_LAST_INTERVAL_OCCUPANCY, libsumo::VAR_LAST_INTERVAL_SPEED, libsumo::VAR_LAST_INTERVAL_TIMELOSS, libsumo::VAR_LENGTH, libsumo::VAR_PARAMETER, libsumo::VAR_PARAMETER_WITH_KEY, and libsumo::VAR_POSITION.

Referenced by handleVariable(), and makeWrapper().

Here is the caller graph for this function:

◆ makeWrapper()

std::shared_ptr< VariableWrapper > LaneArea::makeWrapper ( )
static

Definition at line 233 of file libsumo/LaneArea.cpp.

References handleVariable(), makeWrapper(), myContextSubscriptionResults, and mySubscriptionResults.

Referenced by makeWrapper().

Here is the caller graph for this function:

◆ overrideVehicleNumber()

void LaneArea::overrideVehicleNumber ( const std::string & detID,
int vehNum )
static

Definition at line 239 of file libsumo/LaneArea.cpp.

References getDetector(), and overrideVehicleNumber().

Referenced by overrideVehicleNumber().

Here is the caller graph for this function:

◆ storeShape()

void LaneArea::storeShape ( const std::string & id,
PositionVector & shape )
static

Saves the shape of the requested object in the given container.

Parameters
idThe id of the loop to retrieve
shapeThe container to fill

Definition at line 225 of file libsumo/LaneArea.cpp.

References getDetector(), MSE2Collector::getEndPos(), MSE2Collector::getLanes(), MSE2Collector::getStartPos(), and storeShape().

Referenced by getTree(), and storeShape().

Here is the caller graph for this function:

Field Documentation

◆ myContextSubscriptionResults

ContextSubscriptionResults LaneArea::myContextSubscriptionResults
staticprivate

Definition at line 99 of file LaneArea.h.

Referenced by makeWrapper().

◆ mySubscriptionResults

SubscriptionResults LaneArea::mySubscriptionResults
staticprivate

Definition at line 98 of file LaneArea.h.

Referenced by makeWrapper().

◆ myTree

NamedRTree * LaneArea::myTree
staticprivate

Definition at line 97 of file LaneArea.h.

Referenced by cleanup(), and getTree().


The documentation for this class was generated from the following files: