47 #include <mesosim/MELoop.h>
48 #include <mesosim/MESegment.h>
51 #ifdef CHECK_MEMORY_LEAKS
53 #endif // CHECK_MEMORY_LEAKS
68 for (; it != end; ++it) {
95 const std::vector<MSEdge*>& edges = ec.
getEdges();
96 for (std::vector<MSEdge*>::const_iterator e = edges.begin(); e != edges.end(); ++e) {
97 const std::vector<MSPerson*>& persons = (*e)->getSortedPersons(timestep);
98 for (std::vector<MSPerson*>::const_iterator it_p = persons.begin(); it_p != persons.end(); ++it_p) {
const std::string & getID() const
returns the person id
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
void cartesian2geo(Position &cartesian) const
Converts the given cartesian (shifted) position to its geo (lat/long) representation.
Representation of a vehicle in the micro simulation.
constVehIt loadedVehBegin() const
Returns the begin of the internal vehicle map.
virtual Position getPosition() const
return the Network coordinate of the person
Position getPosition(const SUMOReal offset=0) const
Return current position (x/y, cartesian)
#define GEO_OUTPUT_ACCURACY
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
std::string time2string(SUMOTime t)
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
SUMOReal getPositionOnLane() const
Get the vehicle's position along the lane.
constVehIt loadedVehEnd() const
Returns the end of the internal vehicle map.
SUMOReal x() const
Returns the x-position.
static OptionsCont & getOptions()
Retrieves the options.
SUMOReal slopeDegreeAtOffset(SUMOReal pos) const
Returns the slope at the given length.
const std::string & getID() const
Returns the id.
void setPrecision(unsigned int precision=OUTPUT_ACCURACY)
Sets the precison or resets it to default.
static void write(OutputDevice &of, SUMOTime timestep)
Writes the posion and the angle of each vehcile into the given device.
A point in 2D or 3D with translation and scaling methods.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
Stores edges and lanes, performs moving of vehicle.
virtual SUMOReal getAngle() const
return the current angle of the person
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
SUMOReal y() const
Returns the y-position.
const MSVehicleType & getVehicleType() const
Returns the vehicle's type definition.
const std::string & getID() const
Returns the name of the vehicle type.
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
SUMOReal getSpeed() const
Returns the vehicle's current speed.
std::map< std::string, SUMOVehicle * >::const_iterator constVehIt
Definition of the internal vehicles map iterator.
virtual SUMOReal getSpeed() const
the current speed of the person
const PositionVector & getShape() const
Returns this lane's shape.
const std::vector< MSEdge * > & getEdges() const
Returns loaded edges.
virtual SUMOReal getEdgePos() const
return the offset from the start of the current edge
int getSignals() const
Returns the signals.
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.
The class responsible for building and deletion of vehicles.
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.
SUMOReal getAngle() const
Returns the vehicle's direction in degrees.
const std::string & getID() const
Returns the name of the vehicle.