Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSSOTLSensors Class Referenceabstract

#include <MSSOTLSensors.h>

Inheritance diagram for MSSOTLSensors:
[legend]

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.
 
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.
 
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.
 
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.
 

Protected Attributes

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

Detailed Description

Definition at line 31 of file MSSOTLSensors.h.

Constructor & Destructor Documentation

◆ MSSOTLSensors()

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

Definition at line 22 of file MSSOTLSensors.cpp.

References myPhases, and tlLogicID.

◆ ~MSSOTLSensors()

MSSOTLSensors::~MSSOTLSensors ( )
virtual

Definition at line 28 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

Implemented in MSSOTLE2Sensors.

Referenced by MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLTrafficLightLogic::countVehicles(), and MSSwarmTrafficLightLogic::updatePheromoneLevels().

Here is the caller graph for this function:

◆ 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

Implemented in MSSOTLE2Sensors.

Referenced by MSSwarmTrafficLightLogic::updatePheromoneLevels().

Here is the caller graph for this function:

◆ meanVehiclesSpeed() [1/2]

virtual double MSSOTLSensors::meanVehiclesSpeed ( MSLane lane)
pure virtual

Implemented in MSSOTLE2Sensors.

Referenced by MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), and MSSwarmTrafficLightLogic::updatePheromoneLevels().

Here is the caller graph for this function:

◆ meanVehiclesSpeed() [2/2]

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

Implemented in MSSOTLE2Sensors.

◆ stepChanged()

virtual void MSSOTLSensors::stepChanged ( int  newStep)
inlinevirtual

Definition at line 126 of file MSSOTLSensors.h.

References currentStep.

Referenced by MSSOTLTrafficLightLogic::init(), and MSSOTLTrafficLightLogic::trySwitch().

Here is the caller graph for this function:

Field Documentation

◆ currentStep

int MSSOTLSensors::currentStep
protected

Definition at line 35 of file MSSOTLSensors.h.

Referenced by stepChanged().

◆ myPhases

const MSTrafficLightLogic::Phases* MSSOTLSensors::myPhases
protected

Definition at line 33 of file MSSOTLSensors.h.

Referenced by MSSOTLSensors().

◆ tlLogicID


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