 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef MSSOTLE2Sensors_h
21 #define MSSOTLE2Sensors_h
130 template<
typename Method,
typename ValueType>
void buildCountSensors(MSTrafficLightLogic::LaneVectorVector controlledLanes, NLDetectorBuilder &nb)
bool getVelueFromSensor(std::string laneId, Method function, ValueType &value)
Representation of a lane in the micro simulation.
MSLaneID_MaxSpeedMap m_maxSpeedMap
void buildSensors(MSTrafficLightLogic::LaneVectorVector controlledLanes, NLDetectorBuilder &nb)
This function member has to be extended to properly build sensors for the input lanes Sensors has to ...
int getPassedVeh(std::string laneId, bool out)
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
void buildSensorForLane(MSLane *lane, NLDetectorBuilder &nb)
This function member has to be extended to properly build a sensor for a specific input lane Sensors ...
void subtractPassedVeh(std::string laneId, int passed)
double getEstimateQueueLength(std::string laneId)
An areal detector corresponding to a sequence of consecutive lanes.
std::map< std::string, double > MSLaneID_MaxSpeedMap
int count(MSE2Collector *sensor)
virtual void setVehicleWeigths(const std::string &weightString)
double speedThresholdParam
void buildCountSensorForLane(MSLane *lane, NLDetectorBuilder &nb)
int countVehicles(MSLane *lane)
void buildCountSensorForOutLane(MSLane *lane, NLDetectorBuilder &nb)
void buildOutSensors(MSTrafficLightLogic::LaneVectorVector controlledLanes, NLDetectorBuilder &nb)
This function member has to be extended to properly build sensors for the output lanes Sensors has to...
std::map< const std::string, int > m_typeWeightMap
void setSpeedThresholdParam(double newThreshold)
std::map< std::string, MSE2Collector * > MSLaneID_MSE2CollectorMap
MSLaneID_MSE2CollectorMap m_sensorMap
MSSOTLE2Sensors(std::string tlLogicID, const MSTrafficLightLogic::Phases *phases)
std::vector< LaneVector > LaneVectorVector
Definition of a list that holds lists of lanes that do have the same attribute.
int estimateVehicles(std::string laneId)
void buildSensorForOutLane(MSLane *lane, NLDetectorBuilder &nb)
This function member has to be extended to properly build a sensor for a specific output lane Sensors...
void buildContinueSensior(MSLane *lane, NLDetectorBuilder &nb, double sensorLength, MSLane *continueOnLane, double usedLength)
Builds detectors for microsim.
std::map< std::string, std::vector< std::string > > m_continueSensorOnLanes
void buildCountOutSensors(MSTrafficLightLogic::LaneVectorVector controlledLanes, NLDetectorBuilder &nb)
virtual double meanVehiclesSpeed(MSLane *lane)
virtual double getMaxSpeed(std::string laneId)