SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 SUMOReal getMaxSpeed (std::string laneId)=0
 
virtual SUMOReal meanVehiclesSpeed (MSLane *lane)=0
 
virtual SUMOReal 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 40 of file MSSOTLSensors.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file MSSOTLSensors.cpp.

References myPhases, and tlLogicID.

MSSOTLSensors::~MSSOTLSensors ( )
virtual

Definition at line 28 of file MSSOTLSensors.cpp.

Member Function Documentation

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.

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.

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.

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.

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

Implemented in MSSOTLE2Sensors.

virtual SUMOReal MSSOTLSensors::getMaxSpeed ( std::string  laneId)
pure virtual
virtual SUMOReal MSSOTLSensors::meanVehiclesSpeed ( std::string  laneId)
pure virtual

Implemented in MSSOTLE2Sensors.

virtual void MSSOTLSensors::stepChanged ( int  newStep)
inlinevirtual

Definition at line 135 of file MSSOTLSensors.h.

Referenced by MSSOTLTrafficLightLogic::trySwitch().

Field Documentation

int MSSOTLSensors::currentStep
protected

Definition at line 44 of file MSSOTLSensors.h.

const MSTrafficLightLogic::Phases* MSSOTLSensors::myPhases
protected

Definition at line 42 of file MSSOTLSensors.h.

Referenced by MSSOTLSensors().


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