43 #ifdef CHECK_MEMORY_LEAKS 45 #endif // CHECK_MEMORY_LEAKS 52 #pragma warning(disable: 4355) 56 MEVehicle(pars, route, type, speedFactor),
60 #pragma warning(default: 4355) 78 ret->
mkItem(
"waiting time [s]",
true,
118 std::ostringstream str;
119 for (std::vector<MSDevice*>::const_iterator i =
myDevices.begin(); i !=
myDevices.end(); ++i) {
123 str << (*i)->getID().substr(0, (*i)->getID().find(
getID()));
125 ret->
mkItem(
"devices",
false, str.str());
149 ret->
mkItem(
"Type Information:",
false,
"");
179 switch (activeScheme) {
226 for (; i != r.
end(); ++i) {
243 std::string result =
"";
void drawAction_drawVehicleAsBoxPlus() const
const MSVehicleType * myType
This Vehicle's type.
const std::vector< SUMOReal > & getShapeRotations() const
bool isParking() const
Returns whether the vehicle is parking.
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
A vehicle from the mesoscopic point of view.
SUMOReal getMaxSpeed() const
Returns the maximum speed.
Stores the information about how to visualize structures.
void drawRouteHelper(const MSRoute &r, SUMOReal exaggeration) const
Draws the route.
SUMOReal getNaviDegree() const
return the current angle in navigational degrees
SUMOReal getCurrentTLSPenaltySeconds() const
Returns the delay that is accrued due to option –meso-tls-penalty.
SUMOReal getSpeed() const
Returns the vehicle's estimated speed assuming no delays.
std::string time2string(SUMOTime t)
SUMOReal getLength() const
Get vehicle's length [m].
int getNumberReroutes() const
Returns the number of new routes this vehicle got.
static void drawBoxLines(const PositionVector &geom, const std::vector< SUMOReal > &rots, const std::vector< SUMOReal > &lengths, SUMOReal width, int cornerDetail=0, SUMOReal offset=0)
Draws thick lines.
GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
const std::map< std::string, std::string > & getMap() const
Returns the inner key/value map.
const std::vector< SUMOReal > & getShapeLengths() const
const SUMOVehicleParameter * myParameter
This Vehicle's parameter.
The base class for microscopic and mesoscopic vehicles.
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
SUMOReal getEventTimeSeconds() const
Returns the earliest leave time for the current segment.
GUIGlID getGlID() const
Returns the numerical id of the object.
The car-following model and parameter.
int getPersonCapacity() const
Get this vehicle type's person capacity.
SUMOReal getBlockTimeSeconds() const
Returns the time at which the vehicle was blocked on the current segment.
Representation of a lane in the micro simulation (gui-version)
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
bool isStopped() const
Returns whether the vehicle is at a stop.
const SUMOVTypeParameter & getParameter() const
SUMOReal getMinGap() const
Get the free space in front of vehicles of this class.
SUMOTime getDepartDelay() const
Returns the depart delay.
SUMOReal getLastEntryTimeSeconds() const
Returns the entry time for the current segment.
~GUIMEVehicle()
destructor
ConstMSEdgeVector::const_iterator MSRouteIterator
SUMOReal getColorValue(int activeScheme) const
gets the color value according to the current scheme index
A MSVehicle extended by some values for usage within the gui.
static std::string getName(const SUMOEmissionClass c)
Checks whether the string describes a known vehicle class.
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
std::string line
The vehicle's line (mainly for public transport)
bool drawAction_drawCarriageClass(const GUIVisualizationSettings &s, SUMOVehicleShape guiShape, bool asImage) const
draws the given guiShape if it has distinc carriages/modules and eturns true if so ...
std::string getStopInfo() const
retrieve information about the current stop state
SUMOReal getLastLaneChangeOffset() const
Returns the time since the last lane change in seconds.
Structure representing possible vehicle parameter.
MSRouteIterator end() const
Returns the end of the list of edges to pass.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
SUMOReal getWaitingSeconds() const
Returns the number of seconds waited (speed was lesser than 0.1m/s)
void selectBlockingFoes() const
adds the blocking foes to the current selection
SUMOReal getChosenSpeedFactor() const
Returns the precomputed factor by which the driver wants to be faster than the speed limit...
SUMOReal getPositionOnLane() const
Get the vehicle's position along the lane.
const std::string & getID() const
Returns the name of the vehicle type.
const SUMOVehicleParameter & getParameter() const
Returns the vehicle's parameter (including departure definition)
SUMOReal getVehicleMaxSpeed(const SUMOVehicle *const veh) const
Returns the maximum speed the vehicle may use on this edge.
int getContainerCapacity() const
Get this vehicle type's container capacity.
const MSEdge * getEdge() const
Returns the edge the vehicle is currently at.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
GUIMEVehicle(SUMOVehicleParameter *pars, const MSRoute *route, const MSVehicleType *type, const SUMOReal speedFactor)
Constructor.
void mkItem(const char *name, bool dynamic, ValueSource< unsigned > *src)
Adds a row which obtains its value from an unsigned-ValueSource.
GUISelectedStorage gSelected
A global holder of selected objects.
void closeBuilding()
Closes the building of the table.
std::vector< MSDevice * > myDevices
The devices this vehicle has.
A window containing a gl-object's parameter.
MESegment * getSegment() const
Returns the current segment the vehicle is on.
MSRouteIterator begin() const
Returns the begin of the list of edges to pass.
const std::string & getID() const
Returns the name of the vehicle.
const PositionVector & getShape() const