SUMO - Simulation of Urban MObility
MSSOTLSensors Class Referenceabstract

#include <MSSOTLSensors.h>

Inheritance diagram for MSSOTLSensors:
Inheritance graph
Collaboration diagram for MSSOTLSensors:
Collaboration graph

Public Member Functions

virtual void buildOutSensors (MSTrafficLightLogic::LaneVectorVector controlledLanes, NLDetectorBuilder &nb)=0
 This function member has to be extended to properly build sensors for the output lanes Sensors has to be constrained on lane dimension Built sensors has to be collected and associated properly to theirs MSLane for retrieval using MSSOTLSensors::countVehicles(std::string) See extension classes for further specifications on sensor building. More...
 
virtual void buildSensors (MSTrafficLightLogic::LaneVectorVector controlledLanes, NLDetectorBuilder &nb)=0
 This function member has to be extended to properly build sensors for the input lanes Sensors has to be constrained on lane dimension Built sensors has to be collected and associated properly to theirs MSLane for retrieval using MSSOTLSensors::countVehicles(std::string) See extension classes for further specifications on sensor building. More...
 
virtual int countVehicles (MSLane *lane)=0
 
virtual int countVehicles (std::string laneId)=0
 
virtual double getMaxSpeed (std::string laneId)=0
 
virtual double meanVehiclesSpeed (MSLane *lane)=0
 
virtual double meanVehiclesSpeed (std::string laneId)=0
 
 MSSOTLSensors (std::string tlLogicID, const MSTrafficLightLogic::Phases *phases)
 
virtual void stepChanged (int newStep)
 
virtual ~MSSOTLSensors ()
 

Protected Member Functions

virtual void buildSensorForLane (MSLane *lane, NLDetectorBuilder &nb)=0
 This function member has to be extended to properly build a sensor for a specific input lane Sensors has to be constrained on lane dimension Built sensors has to be collected and associated properly to the respective MSLane for retrieval using MSSOTLSensors::countVehicles(std::string) See extension classes for further specifications on sensor building. More...
 
virtual void buildSensorForOutLane (MSLane *lane, NLDetectorBuilder &nb)=0
 This function member has to be extended to properly build a sensor for a specific output lane Sensors has to be constrained on lane dimension Built sensors has to be collected and associated properly to the respective MSLane for retrieval using MSSOTLSensors::countVehicles(std::string) See extension classes for further specifications on sensor building. More...
 

Protected Attributes

int currentStep
 
const MSTrafficLightLogic::PhasesmyPhases
 
std::string tlLogicID
 

Detailed Description

Definition at line 39 of file MSSOTLSensors.h.

Constructor & Destructor Documentation

◆ MSSOTLSensors()

MSSOTLSensors::MSSOTLSensors ( std::string  tlLogicID,
const MSTrafficLightLogic::Phases phases 
)

Definition at line 21 of file MSSOTLSensors.cpp.

References myPhases, and tlLogicID.

◆ ~MSSOTLSensors()

MSSOTLSensors::~MSSOTLSensors ( )
virtual

Definition at line 27 of file MSSOTLSensors.cpp.

Member Function Documentation

◆ buildOutSensors()

virtual void MSSOTLSensors::buildOutSensors ( MSTrafficLightLogic::LaneVectorVector  controlledLanes,
NLDetectorBuilder nb 
)
pure virtual

This function member has to be extended to properly build sensors for the output lanes Sensors has to be constrained on lane dimension Built sensors has to be collected and associated properly to theirs MSLane for retrieval using MSSOTLSensors::countVehicles(std::string) See extension classes for further specifications on sensor building.

Implemented in MSSOTLE2Sensors.

◆ buildSensorForLane()

virtual void MSSOTLSensors::buildSensorForLane ( MSLane lane,
NLDetectorBuilder nb 
)
protectedpure virtual

This function member has to be extended to properly build a sensor for a specific input lane Sensors has to be constrained on lane dimension Built sensors has to be collected and associated properly to the respective MSLane for retrieval using MSSOTLSensors::countVehicles(std::string) See extension classes for further specifications on sensor building.

Implemented in MSSOTLE2Sensors.

◆ buildSensorForOutLane()

virtual void MSSOTLSensors::buildSensorForOutLane ( MSLane lane,
NLDetectorBuilder nb 
)
protectedpure virtual

This function member has to be extended to properly build a sensor for a specific output lane Sensors has to be constrained on lane dimension Built sensors has to be collected and associated properly to the respective MSLane for retrieval using MSSOTLSensors::countVehicles(std::string) See extension classes for further specifications on sensor building.

Implemented in MSSOTLE2Sensors.

◆ buildSensors()

virtual void MSSOTLSensors::buildSensors ( MSTrafficLightLogic::LaneVectorVector  controlledLanes,
NLDetectorBuilder nb 
)
pure virtual

This function member has to be extended to properly build sensors for the input lanes Sensors has to be constrained on lane dimension Built sensors has to be collected and associated properly to theirs MSLane for retrieval using MSSOTLSensors::countVehicles(std::string) See extension classes for further specifications on sensor building.

Implemented in MSSOTLE2Sensors.

◆ countVehicles() [1/2]

virtual int MSSOTLSensors::countVehicles ( MSLane lane)
pure virtual

◆ countVehicles() [2/2]

virtual int MSSOTLSensors::countVehicles ( std::string  laneId)
pure virtual

Implemented in MSSOTLE2Sensors.

◆ getMaxSpeed()

virtual double MSSOTLSensors::getMaxSpeed ( std::string  laneId)
pure virtual

◆ meanVehiclesSpeed() [1/2]

◆ meanVehiclesSpeed() [2/2]

virtual double MSSOTLSensors::meanVehiclesSpeed ( std::string  laneId)
pure virtual

Implemented in MSSOTLE2Sensors.

◆ stepChanged()

virtual void MSSOTLSensors::stepChanged ( int  newStep)
inlinevirtual

Field Documentation

◆ currentStep

int MSSOTLSensors::currentStep
protected

Definition at line 43 of file MSSOTLSensors.h.

◆ myPhases

const MSTrafficLightLogic::Phases* MSSOTLSensors::myPhases
protected

Definition at line 41 of file MSSOTLSensors.h.

Referenced by MSSOTLSensors().

◆ tlLogicID


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