65 MSDetectorFileOutput(
const std::string&
id,
const std::string& vTypes,
const std::string& nextEdges =
"",
const int detectPersons =
false);
virtual void clearState(SUMOTime)
Remove all vehicles before quick-loading state.
bool isTyped() const
Checks whether the detector is type specific.
MSDetectorFileOutput(const MSDetectorFileOutput &)
Invalidated copy constructor.
bool vehicleApplies(const SUMOTrafficObject &veh) const
Checks whether the detector measures vehicles of the given type.
std::vector< const MSEdge * > myNextEdges
The upcoming edges to filter by (empty means no filtering).
const int myDetectPersons
Whether pedestrians shall be detected instead of vehicles.
bool detectsPersons() const
MSDetectorFileOutput(const std::string &id, const std::string &vTypes, const std::string &nextEdges="", const int detectPersons=false)
Constructor.
MSDetectorFileOutput & operator=(const MSDetectorFileOutput &)
Invalidated assignment operator.
virtual void reset()
Resets collected values.
virtual void detectorUpdate(const SUMOTime step)
Updates the detector (computes values).
virtual void writeXMLDetectorProlog(OutputDevice &dev) const =0
Open the XML-output.
const std::set< std::string > & getVehicleTypes() const
virtual ~MSDetectorFileOutput()
(virtual) destructor
bool personApplies(const MSTransportable &p, int dir) const
std::set< std::string > myVehicleTypes
The vehicle types to look for (empty means all).
virtual void writeXMLOutput(OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)=0
Write the generated output to the given device.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Builds the graphical representation.
A road/street connecting two junctions.
Named(const std::string &id)
Constructor.
Static storage of an output device and its base (abstract) implementation.
Parameterised()
Default constructor.
Representation of a vehicle, person, or container.
#define UNUSED_PARAMETER(x)