Eclipse SUMO - Simulation of Urban MObility
|
#include <MSSOTLSensors.h>
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::Phases * | myPhases |
std::string | tlLogicID |
Definition at line 31 of file MSSOTLSensors.h.
MSSOTLSensors::MSSOTLSensors | ( | std::string | tlLogicID, |
const MSTrafficLightLogic::Phases * | phases | ||
) |
Definition at line 22 of file MSSOTLSensors.cpp.
|
virtual |
Definition at line 28 of file MSSOTLSensors.cpp.
|
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.
|
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.
|
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.
|
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.
|
pure virtual |
Implemented in MSSOTLE2Sensors.
Referenced by MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLTrafficLightLogic::countVehicles(), and MSSwarmTrafficLightLogic::updatePheromoneLevels().
|
pure virtual |
Implemented in MSSOTLE2Sensors.
|
pure virtual |
Implemented in MSSOTLE2Sensors.
Referenced by MSSwarmTrafficLightLogic::updatePheromoneLevels().
|
pure virtual |
Implemented in MSSOTLE2Sensors.
Referenced by MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), and MSSwarmTrafficLightLogic::updatePheromoneLevels().
|
pure virtual |
Implemented in MSSOTLE2Sensors.
|
inlinevirtual |
Definition at line 126 of file MSSOTLSensors.h.
References currentStep.
Referenced by MSSOTLTrafficLightLogic::init(), and MSSOTLTrafficLightLogic::trySwitch().
|
protected |
Definition at line 35 of file MSSOTLSensors.h.
Referenced by stepChanged().
|
protected |
Definition at line 33 of file MSSOTLSensors.h.
Referenced by MSSOTLSensors().
|
protected |
Definition at line 34 of file MSSOTLSensors.h.
Referenced by MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), and MSSOTLSensors().