18 #ifndef MSInstantInductLoop_h 19 #define MSInstantInductLoop_h 66 MSLane*
const lane,
double positionInMeters,
67 const std::string& vTypes);
153 void write(
const char* state,
double t,
SUMOTrafficObject& 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.
bool notifyLeave(SUMOTrafficObject &veh, double lastPos, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Dismisses the vehicle if it is on the detector due to a lane change.
Notification
Definition of a vehicle state.
An instantaneous induction loop.
void write(const char *state, double t, SUMOTrafficObject &veh, double speed, const char *add=0, double addValue=-1)
Writes an event line.
#define UNUSED_PARAMETER(x)
double myLastExitTime
The last exit time.
MSInstantInductLoop(const std::string &id, OutputDevice &od, MSLane *const lane, double positionInMeters, const std::string &vTypes)
Constructor.
~MSInstantInductLoop()
Destructor.
MSInstantInductLoop & operator=(const MSInstantInductLoop &)
Invalidated assignment operator.
std::map< SUMOTrafficObject *, double > myEntryTimes
The last exit time.
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.
Representation of a vehicle or person.
Static storage of an output device and its base (abstract) implementation.
Representation of a lane in the micro simulation.
bool notifyMove(SUMOTrafficObject &veh, double oldPos, double newPos, double newSpeed)
Checks whether the vehicle shall be counted and/or shall still touch this MSMoveReminder.
Base of value-generating classes (detectors)