21 #ifndef MSSOTLE2Sensors_h 22 #define MSSOTLE2Sensors_h 131 template<
typename Method,
typename ValueType>
Builds detectors for microsim.
void buildCountSensorForOutLane(MSLane *lane, NLDetectorBuilder &nb)
int countVehicles(MSLane *lane)
SUMOReal getEstimateQueueLength(std::string laneId)
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...
An areal (along a single lane) detector.
SUMOReal speedThresholdParam
MSLaneID_MSE2CollectorMap m_sensorMap
MSSOTLE2Sensors(std::string tlLogicID, const MSTrafficLightLogic::Phases *phases)
void buildCountOutSensors(MSTrafficLightLogic::LaneVectorVector controlledLanes, NLDetectorBuilder &nb)
std::map< const std::string, unsigned int > m_typeWeightMap
void setSpeedThresholdParam(SUMOReal newThreshold)
std::map< std::string, std::vector< std::string > > m_continueSensorOnLanes
int estimateVehicles(std::string laneId)
void buildCountSensors(MSTrafficLightLogic::LaneVectorVector controlledLanes, NLDetectorBuilder &nb)
int getPassedVeh(std::string laneId, bool out)
void buildSensorForOutLane(MSLane *lane, NLDetectorBuilder &nb)
This function member has to be extended to properly build a sensor for a specific output lane Sensors...
virtual SUMOReal getMaxSpeed(std::string laneId)
bool getVelueFromSensor(std::string laneId, Method function, ValueType &value)
std::map< std::string, MSE2Collector * > MSLaneID_MSE2CollectorMap
MSLaneID_MaxSpeedMap m_maxSpeedMap
void buildSensorForLane(MSLane *lane, NLDetectorBuilder &nb)
This function member has to be extended to properly build a sensor for a specific input lane Sensors ...
virtual void setVehicleWeigths(const std::string &weightString)
std::vector< MSPhaseDefinition * > Phases
Definition of a list of phases, being the junction logic.
std::vector< LaneVector > LaneVectorVector
Definition of a list that holds lists of links that do have the same attribute.
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 ...
void buildCountSensorForLane(MSLane *lane, NLDetectorBuilder &nb)
std::map< std::string, SUMOReal > MSLaneID_MaxSpeedMap
void buildContinueSensior(MSLane *lane, NLDetectorBuilder &nb, SUMOReal sensorLength, MSLane *continueOnLane, SUMOReal usedLength)
void subtractPassedVeh(std::string laneId, int passed)
virtual SUMOReal meanVehiclesSpeed(MSLane *lane)
Representation of a lane in the micro simulation.
int count(MSE2Collector *sensor)