22 #ifndef MSDetectorFileOutput_h 23 #define MSDetectorFileOutput_h
bool vehicleApplies(const SUMOVehicle &veh) const
Checks whether the detector measures vehicles of the given type.
virtual void reset()
Resets collected values.
#define UNUSED_PARAMETER(x)
virtual void detectorUpdate(const SUMOTime step)
Updates the detector (computes values)
virtual void writeXMLDetectorProlog(OutputDevice &dev) const =0
Open the XML-output.
MSDetectorFileOutput(const std::string &id, const std::string &vTypes)
Constructor.
Representation of a vehicle.
MSDetectorFileOutput & operator=(const MSDetectorFileOutput &)
Invalidated assignment operator.
virtual ~MSDetectorFileOutput()
(virtual) destructor
std::set< std::string > myVehicleTypes
The vehicle types to look for (empty means all)
MSDetectorFileOutput(const std::string &id, const std::set< std::string > &vTypes)
Constructor.
Base class for objects which have an id.
std::vector< std::string > getVector()
bool isTyped() const
Checks whether the detector is type specific.
const std::string & getID() const
Returns the name of the vehicle type.
virtual void writeXMLOutput(OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)=0
Write the generated output to the given device.
Static storage of an output device and its base (abstract) implementation.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Builds the graphical representation.
Base of value-generating classes (detectors)
virtual const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.