40 MSEdge*
const edge,
const double pos,
41 const std::string& aXMLFilename,
42 const std::string& outputFilename,
43 const SUMOTime freq,
const double length,
45 const double invalidJamThreshold,
46 const std::string& vTypes);
A single mesoscopic segment (cell).
void reset()
reset collected vehicle data
int maximumInflow() const
returns the maximum number of vehicles that could enter from upstream until the calibrator is activat...
virtual ~METriggeredCalibrator()
SUMOTime execute(SUMOTime currentTime)
int remainingVehicleCapacity() const
returns the number of vehicles (of the current type) that still fit onto the segment
bool invalidJam() const
returns whether the segment is jammed although it should not be
void updateMeanData()
do nothing
MESegment * mySegment
mesoscopic edge segment the calibrator lies on
bool tryEmit(MESegment *s, MEVehicle *vehicle)
METriggeredCalibrator(const std::string &id, MSEdge *const edge, const double pos, const std::string &aXMLFilename, const std::string &outputFilename, const SUMOTime freq, const double length, const MSRouteProbe *probe, const double invalidJamThreshold, const std::string &vTypes)
A vehicle from the mesoscopic point of view.
MSCalibrator(const std::string &id, MSEdge *const edge, MSLane *const lane, MSJunction *const node, const double pos, const std::string &aXMLFilename, const std::string &outputFilename, const SUMOTime freq, const double length, const MSRouteProbe *probe, const double invalidJamThreshold, const std::string &vTypes, const bool local, const bool addLaneMeanData)
MSMeanData_Net::MSLaneMeanDataValues myEdgeMeanData
accumlated data for the whole edge
SUMOTime myFrequency
The frequeny with which to check for calibration.
A road/street connecting two junctions.
Writes routes of vehicles passing a certain edge.