20 #ifndef MSCalibrator_h
21 #define MSCalibrator_h
54 const std::string& aXMLFilename,
55 const std::string& outputFilename,
MSEdge *const myEdge
the edge on which this calibrator lies
Representation of a vehicle in the micro simulation.
VehicleRemover(MSLane *lane, int laneIndex, MSCalibrator *parent)
bool tryEmit(MSLane *lane, MSVehicle *vehicle)
static std::vector< SUMOVehicleParameter * > LeftoverVehicleParameters
virtual void myEndElement(int element)
Called on the closing of a tag;.
unsigned int myClearedInJam
The number of vehicles that were removed when clearin a jam.
bool myDidSpeedAdaption
The information whether speed was adapted in the current interval.
virtual bool notifyEnter(SUMOVehicle &veh, Notification reason)
Checks whether the reminder is activated by a vehicle entering the lane.
Notification
Definition of a vehicle state.
bool myAmActive
whether the calibrator was active when last checking
std::set< MSVehicle * > myToRemove
bool myDidInit
The information whether init was called.
const SUMOReal myPos
the position on the edge where this calibrator lies
int remainingVehicleCapacity(int laneIndex=-1) const
SUMOTime myFrequency
The frequeny with which to check for calibration.
Base (microsim) event class.
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Data structure for mean (aggregated) edge/lane values.
const std::string & getID() const
Returns the id.
A road/street connecting two junctions.
unsigned int myInserted
The number of vehicles that were inserted in the current interval.
std::vector< AspiredState >::const_iterator myCurrentStateInterval
Iterator pointing to the current interval.
An abstract device that changes the state of the micro simulation.
Representation of a vehicle.
Encapsulated SAX-Attributes.
MSCalibrator(const std::string &id, MSEdge *edge, SUMOReal pos, const std::string &aXMLFilename, const std::string &outputFilename, const SUMOTime freq)
unsigned nVehEntered
The number of vehicles that entered this lane within the sample interval.
bool mySpeedIsDefault
The information whether the speed adaption has been reset.
Something on a lane to be noticed about vehicle movement.
bool scheduleRemoval(MSVehicle *veh)
try to schedule the givne vehicle for removal. return true if it isn't already scheduled ...
std::vector< AspiredState > myIntervals
List of adaptation intervals.
void reset()
reset collected vehicle data
bool myHaveWarnedAboutClearingJam
The default (maximum) speed on the segment.
std::vector< MSMeanData_Net::MSLaneMeanDataValues * > myLaneMeanData
data collector for the calibrator
static std::vector< MSMoveReminder * > LeftoverReminders
Structure representing possible vehicle parameter.
bool invalidJam(int laneIndex=-1) const
SUMOVehicleParameter * vehicleParameter
static void cleanup()
cleanup remaining data structures
OutputDevice * myOutput
The device for xml statistics.
void updateMeanData()
aggregate lane values
Calibrates the flow on a segment to a specified one.
SUMOTime execute(SUMOTime currentTime)
Static storage of an output device and its base (abstract) implementation.
int totalWished() const
number of vehicles expected to pass this interval
MSMeanData_Net::MSLaneMeanDataValues myEdgeMeanData
accumlated data for the whole edge
bool isCurrentStateActive(SUMOTime time)
std::vector< VehicleRemover * > myVehicleRemovers
Representation of a lane in the micro simulation.
unsigned int myRemoved
The number of vehicles that were removed in the current interval.
Parser and container for routes during their loading.
SUMOReal myDefaultSpeed
The default (maximum) speed on the segment.