20 #ifndef METriggeredCalibrator_h 21 #define METriggeredCalibrator_h 51 const std::string& aXMLFilename,
52 const std::string& outputFilename,
int nVehEntered
The number of vehicles that entered this lane within the sample interval.
SUMOTime execute(SUMOTime currentTime)
A vehicle from the mesoscopic point of view.
int nVehVaporized
The number of vehicles that left this lane within the sample interval.
METriggeredCalibrator(const std::string &id, const MSEdge *const edge, const SUMOReal pos, const std::string &aXMLFilename, const std::string &outputFilename, const SUMOTime freq, const SUMOReal length, const MSRouteProbe *probe)
bool invalidJam() const
returns whether the segment is jammed although it should not be
Writes routes of vehicles passing a certain edge.
SUMOTime myFrequency
The frequeny with which to check for calibration.
bool tryEmit(MESegment *s, MEVehicle *vehicle)
A road/street connecting two junctions.
void updateMeanData()
do nothing
Calibrates the flow on a segment to a specified one.
MESegment * mySegment
mesoscopic edge segment the calibrator lies on
SUMOTime getMinimumHeadwayTime() const
return the minimum headway-time with which vehicles may enter or leave this segment ...
A single mesoscopic segment (cell)
Calibrates the flow on a segment to a specified one.
virtual ~METriggeredCalibrator()
MSMeanData_Net::MSLaneMeanDataValues myEdgeMeanData
accumlated data for the whole edge
int remainingVehicleCapacity() const
returns the number of vehicles (of the current type) that still fit onto the segment ...
int maximumInflow() const
returns the maximum number of vehicles that could enter from upstream until the calibrator is activat...
void reset()
reset collected vehicle data