48 #ifdef CHECK_MEMORY_LEAKS
50 #endif // CHECK_MEMORY_LEAKS
69 for (MSEdgeVector::const_iterator e = edges.begin(); e != edges.end(); ++e) {
71 const std::vector<MSLane*>& lanes = edge.
getLanes();
72 for (std::vector<MSLane*>::const_iterator lane = lanes.begin(); lane != lanes.end(); ++lane) {
88 const SUMOReal threshold_velocity = 5 / 3.6;
91 for (MSLane::VehCont::const_iterator it_veh = lane.
myVehicles.begin(); it_veh != lane.
myVehicles.end(); ++it_veh) {
100 queueing_length =
MAX2(veh_back_to_lane_end, queueing_length);
106 queueing_length2 =
MAX2(veh_back_to_lane_end, queueing_length2);
112 if (queueing_length > 1 || queueing_length2 > 1) {
static void writeEdge(OutputDevice &of)
Iterates through all the edges and extract the lanes.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
VehCont myVehicles
The lane's vehicles. This container holds all vehicles that have their front (longitudinally) and the...
Representation of a vehicle in the micro simulation.
const std::vector< MSLane * > & getLanes() const
Returns this edge's lanes.
SUMOReal getLength() const
Returns the lane's length.
std::string time2string(SUMOTime t)
SUMOReal getLength() const
Get vehicle's length [m].
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
SUMOReal getPositionOnLane() const
Get the vehicle's position along the lane.
static void write(OutputDevice &of, SUMOTime timestep)
Export the queueing length in front of a junction (very experimental!)
const std::string & getID() const
Returns the id.
A road/street connecting two junctions.
static void writeLane(OutputDevice &of, const MSLane &lane)
Iterates through the lanes and check for available vehicle queues.
Stores edges and lanes, performs moving of vehicle.
bool empty() const
Returns true if there is not a single vehicle on the lane.
const MSVehicleType & getVehicleType() const
Returns the vehicle's type definition.
SUMOReal getSpeed() const
Returns the vehicle's current speed.
SUMOReal getWaitingSeconds() const
Returns the number of seconds waited (speed was lesser than 0.1m/s)
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
MSEdgeControl & getEdgeControl()
Returns the edge control.
std::vector< MSEdge * > MSEdgeVector
bool isOnRoad() const
Returns the information whether the vehicle is on a road (is simulated)
MSLane * getLane() const
Returns the lane the vehicle is on.
Representation of a lane in the micro simulation.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
const MSEdgeVector & getEdges() const
Returns loaded edges.