46 #pragma warning(disable: 4355) 50 MEVehicle(pars, route, type, speedFactor),
72 ret->
mkItem(
"waiting time [s]",
true,
85 if (
getParameter().repetitionNumber < std::numeric_limits<int>::max()) {
133 ret->
mkItem(
"Type Information:",
false,
"");
160 switch (activeScheme) {
218 for (; i != r.
end(); ++i) {
235 std::string result =
"";
double getBlockTimeSeconds() const
Returns the time at which the vehicle was blocked on the current segment.
std::vector< MSVehicleDevice * > myDevices
The devices this vehicle has.
double getLength() const
Returns the vehicle's length.
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
std::string getEdgeID() const
A vehicle from the mesoscopic point of view.
std::string getStopInfo() const
retrieve information about the current stop state
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.
double getVehicleMaxSpeed(const SUMOTrafficObject *const veh) const
Returns the maximum speed the vehicle may use on this edge.
static void drawAction_drawVehicleAsBoxPlus(const double width, const double length)
draw vehicle as a Box
const MSVehicleType & getVType() const
A shortcut to myVehicle.myType.
Stores the information about how to visualize structures.
int getIndex() const
Returns the running index of the segment in the edge (0 is the most upstream).
const SUMOVehicleParameter & getParameter() const
Returns the vehicle's parameter (including departure definition)
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
std::string time2string(SUMOTime t)
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.
void drawAction_drawCarriageClass(const GUIVisualizationSettings &s, bool asImage) const
draws the given guiShape with distinct carriages/modules
const SUMOVehicleParameter * myParameter
This vehicle's parameter.
const std::string & getID() const
Returns the id.
int getSegmentIndex() const
The base class for microscopic and mesoscopic vehicles.
double getEventTimeSeconds() const
Returns the earliest leave time for the current segment.
const std::vector< double > & getShapeRotations() const
int getPersonCapacity() const
Get this vehicle type's person capacity.
double getNaviDegree() const
return the current angle in navigational degrees
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)
double getChosenSpeedFactor() const
Returns the precomputed factor by which the driver wants to be faster than the speed limit...
double getMaxSpeed() const
Returns the maximum speed.
double getCurrentStoppingTimeSeconds() const
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
double getColorValue(const GUIVisualizationSettings &s, 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
ConstMSEdgeVector::const_iterator MSRouteIterator
bool isStopped() const
Returns whether the vehicle is at a stop.
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
double getMinGap() const
Get the free space in front of vehicles of this class.
static std::string getName(const SUMOEmissionClass c)
Checks whether the string describes a known vehicle class.
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
const SUMOVTypeParameter & getParameter() const
std::string line
The vehicle's line (mainly for public transport)
Structure representing possible vehicle parameter.
double getLastEntryTimeSeconds() const
Returns the entry time for the current segment.
MSVehicleType * myType
This vehicle's type.
const std::vector< double > & getShapeLengths() const
const std::string & getID() const
Returns the name of the vehicle type.
double getLength() const
Get vehicle's length [m].
bool isParking() const
Returns whether the vehicle is parking.
const std::map< std::string, std::string > & getParametersMap() const
Returns the inner key/value map.
GUIGlID getGlID() const
Returns the numerical id of the object.
double getLastLaneChangeOffset() const
Returns the time since the last lane change in seconds.
void drawRouteHelper(const GUIVisualizationSettings &s, const MSRoute &r, bool future) const
Draws the route.
double getPositionOnLane() const
Get the vehicle's position along the lane.
GUIVisualizationSizeSettings vehicleSize
MSRouteIterator myCurrEdge
Iterator to current route-edge.
double getCurrentLinkPenaltySeconds() const
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty.
MSRouteIterator begin() const
Returns the begin of the list of edges to pass.
double getSpeed() const
Returns the vehicle's estimated speed assuming no delays.
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
GUIMEVehicle(SUMOVehicleParameter *pars, const MSRoute *route, MSVehicleType *type, const double speedFactor)
Constructor.
GUISelectedStorage gSelected
A global holder of selected objects.
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
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.
double getWidth() const
Returns the vehicle's width.
double getWaitingSeconds() const
Returns the number of seconds waited (speed was lesser than 0.1m/s)