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