20 #ifndef MSInstantInductLoop_h 21 #define MSInstantInductLoop_h 71 MSLane*
const lane,
double positionInMeters,
72 const std::string& vTypes);
158 void write(
const char* state,
double t,
SUMOVehicle& veh,
double speed,
const char* add = 0,
double addValue = -1);
Representation of a vehicle in the micro simulation.
void writeXMLOutput(OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)
Write the generated output to the given device.
void writeXMLDetectorProlog(OutputDevice &dev) const
Open the XML-output.
Notification
Definition of a vehicle state.
An instantaneous induction loop.
bool notifyMove(SUMOVehicle &veh, double oldPos, double newPos, double newSpeed)
Checks whether the vehicle shall be counted and/or shall still touch this MSMoveReminder.
#define UNUSED_PARAMETER(x)
bool notifyLeave(SUMOVehicle &veh, double lastPos, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Dismisses the vehicle if it is on the detector due to a lane change.
double myLastExitTime
The last exit time.
MSInstantInductLoop(const std::string &id, OutputDevice &od, MSLane *const lane, double positionInMeters, const std::string &vTypes)
Constructor.
std::map< SUMOVehicle *, double > myEntryTimes
The last exit time.
~MSInstantInductLoop()
Destructor.
Representation of a vehicle.
MSInstantInductLoop & operator=(const MSInstantInductLoop &)
Invalidated assignment operator.
Something on a lane to be noticed about vehicle movement.
const double myPosition
Detector's position on lane [m].
OutputDevice & myOutputDevice
The output device to use.
void write(const char *state, double t, SUMOVehicle &veh, double speed, const char *add=0, double addValue=-1)
Writes an event line.
Static storage of an output device and its base (abstract) implementation.
Representation of a lane in the micro simulation.
Base of value-generating classes (detectors)