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 =
"";
const MSVehicleType * myType
This Vehicle's type.
A vehicle from the mesoscopic point of view.
std::string getStopInfo() const
retrieve information about the current stop state
void drawAction_drawVehicleAsBoxPlus() const
Stores the information about how to visualize structures.
const SUMOVehicleParameter & getParameter() const
Returns the vehicle's parameter (including departure definition)
std::string time2string(SUMOTime t)
SUMOReal getLength() const
Get vehicle's length [m].
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.
void drawRouteHelper(const MSRoute &r, SUMOReal exaggeration) const
Draws the route.
GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window.
SUMOTime getDepartDelay() const
Returns the depart delay.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
const std::vector< SUMOReal > & getShapeLengths() const
const SUMOVehicleParameter * myParameter
This Vehicle's parameter.
The base class for microscopic and mesoscopic vehicles.
int getPersonCapacity() const
Get this vehicle type's person capacity.
int getNumberReroutes() const
Returns the number of new routes this vehicle got.
int getContainerCapacity() const
Get this vehicle type's container capacity.
The car-following model and parameter.
Representation of a lane in the micro simulation (gui-version)
SUMOReal getSpeed() const
Returns the vehicle's estimated speed assuming no delays.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
SUMOReal getWaitingSeconds() const
Returns the number of seconds waited (speed was lesser than 0.1m/s)
SUMOReal getVehicleMaxSpeed(const SUMOVehicle *const veh) const
Returns the maximum speed the vehicle may use on this edge.
SUMOReal getColorValue(int activeScheme) const
gets the color value according to the current scheme index
MESegment * getSegment() const
Returns the current segment the vehicle is on.
const MSEdge * getEdge() const
Returns the edge the vehicle is currently at.
~GUIMEVehicle()
destructor
SUMOReal getBlockTimeSeconds() const
Returns the time at which the vehicle was blocked on the current segment.
ConstMSEdgeVector::const_iterator MSRouteIterator
bool isStopped() const
Returns whether the vehicle is at a stop.
SUMOReal getCurrentTLSPenaltySeconds() const
Returns the delay that is accrued due to option –meso-tls-penalty.
SUMOReal getMaxSpeed() const
Returns the maximum speed.
void selectBlockingFoes() const
adds the blocking foes to the current selection
A MSVehicle extended by some values for usage within the gui.
const PositionVector & getShape() const
SUMOReal getNaviDegree() const
return the current angle in navigational degrees
static std::string getName(const SUMOEmissionClass c)
Checks whether the string describes a known vehicle class.
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
SUMOReal getEventTimeSeconds() const
Returns the earliest leave time for the current segment.
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
const SUMOVTypeParameter & getParameter() const
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 ...
SUMOReal getLastEntryTimeSeconds() const
Returns the entry time for the current segment.
Structure representing possible vehicle parameter.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
SUMOReal getChosenSpeedFactor() const
Returns the precomputed factor by which the driver wants to be faster than the speed limit...
const std::map< std::string, std::string > & getMap() const
Returns the inner key/value map.
const std::string & getID() const
Returns the name of the vehicle type.
bool isParking() const
Returns whether the vehicle is parking.
GUIGlID getGlID() const
Returns the numerical id of the object.
SUMOReal getMinGap() const
Get the free space in front of vehicles of this class.
SUMOReal getPositionOnLane() const
Get the vehicle's position along the lane.
SUMOReal getLastLaneChangeOffset() const
Returns the time since the last lane change in seconds.
const std::vector< SUMOReal > & getShapeRotations() const
MSRouteIterator begin() const
Returns the begin of the list of edges to pass.
GUIMEVehicle(SUMOVehicleParameter *pars, const MSRoute *route, const MSVehicleType *type, const SUMOReal speedFactor)
Constructor.
const std::string & getID() const
Returns the name of the vehicle.
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.
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
std::vector< MSDevice * > myDevices
The devices this vehicle has.
A window containing a gl-object's parameter.
SUMOEmissionClass getEmissionClass() const
Get this vehicle type's emission class.
MSRouteIterator end() const
Returns the end of the list of edges to pass.
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.