49 #pragma warning(disable: 4355) 53 MEVehicle(pars, route, type, speedFactor),
75 ret->
mkItem(
"waiting time [s]",
true,
115 std::ostringstream str;
116 for (std::vector<MSDevice*>::const_iterator i =
myDevices.begin(); i !=
myDevices.end(); ++i) {
120 str << (*i)->getID().substr(0, (*i)->getID().find(
getID()));
122 ret->
mkItem(
"devices",
false, str.str());
146 ret->
mkItem(
"Type Information:",
false,
"");
176 switch (activeScheme) {
223 for (; i != r.
end(); ++i) {
240 std::string result =
"";
void drawAction_drawVehicleAsBoxPlus() const
const std::vector< double > & getShapeRotations() const
double getMinGap() const
Get the free space in front of vehicles of this class.
const MSVehicleType * myType
This Vehicle's type.
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.
double getMaxSpeed() const
Returns the maximum speed.
static void drawBoxLines(const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, double width, int cornerDetail=0, double offset=0)
Draws thick lines.
Stores the information about how to visualize structures.
double getChosenSpeedFactor() const
Returns the precomputed factor by which the driver wants to be faster than the speed limit...
double getNaviDegree() const
return the current angle in navigational degrees
std::string time2string(SUMOTime t)
int getNumberReroutes() const
Returns the number of new routes this vehicle got.
double getColorValue(int activeScheme) const
gets the color value according to the current scheme index
GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window.
double getPositionOnLane() const
Get the vehicle's position along the lane.
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.
double getSpeed() const
Returns the vehicle's estimated speed assuming no delays.
const SUMOVehicleParameter * myParameter
This Vehicle's parameter.
The base class for microscopic and mesoscopic vehicles.
double getLastEntryTimeSeconds() const
Returns the entry time for the current segment.
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
double getWaitingSeconds() const
Returns the number of seconds waited (speed was lesser than 0.1m/s)
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.
const std::vector< double > & getShapeLengths() const
Representation of a lane in the micro simulation (gui-version)
double getBlockTimeSeconds() const
Returns the time at which the vehicle was blocked on the current segment.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
double getVehicleMaxSpeed(const SUMOVehicle *const veh) const
Returns the maximum speed the vehicle may use on this edge.
bool isStopped() const
Returns whether the vehicle is at a stop.
const SUMOVTypeParameter & getParameter() const
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
GUIMEVehicle(SUMOVehicleParameter *pars, const MSRoute *route, const MSVehicleType *type, const double speedFactor)
Constructor.
void drawRouteHelper(const MSRoute &r, double exaggeration) const
Draws the route.
double getLastLaneChangeOffset() const
Returns the time since the last lane change in seconds.
SUMOTime getDepartDelay() const
Returns the depart delay.
~GUIMEVehicle()
destructor
ConstMSEdgeVector::const_iterator MSRouteIterator
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 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
double getLength() const
Get vehicle's length [m].
double getEventTimeSeconds() const
Returns the earliest leave time for the current segment.
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.
void selectBlockingFoes() const
adds the blocking foes to the current selection
const std::string & getID() const
Returns the name of the vehicle type.
const SUMOVehicleParameter & getParameter() const
Returns the vehicle's parameter (including departure definition)
double getCurrentLinkPenaltySeconds() const
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty.
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.
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