55 const double length,
const double speed,
57 const bool multiQueue,
A single mesoscopic segment (cell)
void loadQueueExtraState(int qIdx, const std::string &state, SUMOTime offset) override
void send(MEVehicle *veh, MESegment *const next, const int nextQIdx, SUMOTime time, const MSMoveReminder::Notification reason) override
Removes the vehicle from the segment, adapting its parameters.
MELSegment(const std::string &id)
constructor for dummy segment
void updateEntryBlockTime(SUMOTime time) override
update entry blockTime for all queues
bool hasSpaceForInsertion(const Queue &q, int qIdx, double newOccupancy, SUMOTime entryTime) const override
check jam-avoidance constraints during insertion
std::vector< GapTimes > myGapTimes
bool hasTravelingGaps(int qIdx, SUMOTime time) const override
whether space vacated by vehicles that left the given queue has not yet reached the upstream end
int numTravelingGaps(int qIdx, SUMOTime time) const
discard gaps that reached the upstream end until the given time and return the number of remaining ga...
std::vector< SUMOTime > myJamGapTimes
upstream arrival time of the latest gap left by a queued vehicle (for each queue, -1 if there is none...
MELSegment(const MELSegment &)
Invalidated copy constructor.
MELSegment & operator=(const MELSegment &)
Invalidated assignment operator.
std::vector< SUMOTime > GapTimes
upstream arrival times of traveling gaps between cars (for each queue)
const double myJamLength
the length of a segment filled with jammed (default) vehicles
std::string getQueueExtraState(int qIdx) const override
the gap times of the given queue for saving / loading
SUMOTime computeHeadway(Queue &q, const Queue &qNext, const MESegment *const next, const MEVehicle *veh) const override
compute current headway depending on traffic state
A single mesoscopic segment (cell)
A vehicle from the mesoscopic point of view.
A road/street connecting two junctions.
Notification
Definition of a vehicle state.
edge type specific meso parameters