Package de.tudresden.sumo.cmd
Class Vehicletype
java.lang.Object
de.tudresden.sumo.cmd.Vehicletype
The Class Vehicletype.
- Author:
- Mario Krumnow, Evamarie Wiessner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SumoCommandReturns the maximum acceleration of the named vehicle class.static SumoCommandgetApparentDecel(String typeID) Returns The preferred lateral alignment of the type.static SumoCommandReturns the vehicle type's color.static SumoCommandReturns the maximum deceleration of the names vehicle type.static SumoCommandgetEmergencyDecel(String typeID) Returns the maximal physically possible deceleration in m/s^2 of vehicles of this type.static SumoCommandgetEmissionClass(String typeID) Returns the emission class of the named vehicle type.static SumoCommandReturns the height in m of vehicles of this type.static SumoCommandReturns the number of all vehicle types in the network.static SumoCommandReturns a list of all known vehicle types.static SumoCommandgetImperfection(String typeID) getImperfection.static SumoCommandgetLateralAlignment(String typeID) Returns The preferred lateral alignment of the type.static SumoCommandReturns the length of the named vehicle type.static SumoCommandgetMaxSpeed(String typeID) Return the maximum speed of the named vehicle type.static SumoCommandgetMaxSpeedLat(String typeID) Returns the maximum lateral speed in m/s of this type.static SumoCommandReturns the minimum headway gap of the named vehicle type.static SumoCommandgetMinGapLat(String typeID) Returns The desired lateral gap of this type at 50km/h in m.static SumoCommandgetParameter(String typeID, String param) Returns the chosen parameter.static SumoCommandgetShapeClass(String typeID) getShapeClass.static SumoCommandgetSpeedDeviation(String typeID) Returns the speed deviation of the named vehicle type.static SumoCommandgetSpeedFactor(String typeID) Return the speed factor of the names vehicle type.static SumoCommandgetTau.static SumoCommandgetVehicleClass(String typeID) Returns the vehicle class of the names vehicle type.static SumoCommandReturns the width of the named vehicle type.static SumoCommandSets the vehicle type's wished maximum acceleration to the given value.static SumoCommandsetApparentDecel(String typeID, double decel) Sets the apparent deceleration in m/s^2 of vehicles of this type.static SumoCommandSets the vehicle type's color.static SumoCommandSets the vehicle type's wished maximum deceleration to the given value.static SumoCommandsetEmergencyDecel(String typeID, double decel) Sets the maximal physically possible deceleration in m/s^2 of vehicles of this type.static SumoCommandsetEmissionClass(String typeID, String clazz) Sets the vehicle type's emission class to the given value.static SumoCommandSets the height in m of vehicles of this type.static SumoCommandsetImperfection(String typeID, double imperfection) setImperfection.static SumoCommandsetLateralAlignment(String typeID, String latAlignment) Sets the preferred lateral alignment of this type.static SumoCommandSets the vehicle type's length to the given value.static SumoCommandsetMaxSpeed(String typeID, double speed) Sets the vehicle type's maximum speed to the given value.static SumoCommandsetMaxSpeedLat(String typeID, double speed) Sets the maximum lateral speed of this type.static SumoCommandSets the vehicle type's minimum headway gap to the given value.static SumoCommandsetMinGapLat(String typeID, double minGapLat) setImperfection.static SumoCommandsetParameter(String typeID, String param, String value) Sets the chosen parameter.static SumoCommandsetShapeClass(String typeID, String clazz) setShapeClass.static SumoCommandsetSpeedDeviation(String typeID, double deviation) Sets the vehicle type's speed deviation to the given value.static SumoCommandsetSpeedFactor(String typeID, double factor) Sets the vehicle type's speed factor to the given value.static SumoCommandsetTau.static SumoCommandsetVehicleClass(String typeID, String clazz) Sets the vehicle type's vehicle class to the given value.static SumoCommandSets the vehicle type's width to the given value.static SumoCommandDuplicates the vType with ID origTypeID.
-
Constructor Details
-
Vehicletype
public Vehicletype()
-
-
Method Details
-
getAccel
Returns the maximum acceleration of the named vehicle class.- Parameters:
typeID- type id- Returns:
- acceleration
-
getIDCount
Returns the number of all vehicle types in the network.- Returns:
- number of vehicle types
-
getColor
Returns the vehicle type's color.- Parameters:
typeID- type id- Returns:
- color color
-
getDecel
Returns the maximum deceleration of the names vehicle type.- Parameters:
typeID- type id- Returns:
- deceleration
-
getEmergencyDecel
Returns the maximal physically possible deceleration in m/s^2 of vehicles of this type.- Parameters:
typeID- type id- Returns:
- deceleration
-
getLateralAlignment
Returns The preferred lateral alignment of the type.- Parameters:
typeID- type id- Returns:
- deceleration
-
getHeight
Returns the height in m of vehicles of this type.- Parameters:
typeID- type id- Returns:
- deceleration
-
getApparentDecel
Returns The preferred lateral alignment of the type.- Parameters:
typeID- type id- Returns:
- deceleration
-
getMinGapLat
Returns The desired lateral gap of this type at 50km/h in m.- Parameters:
typeID- type id- Returns:
- deceleration
-
getMaxSpeedLat
Returns the maximum lateral speed in m/s of this type.- Parameters:
typeID- type id- Returns:
- deceleration
-
getEmissionClass
Returns the emission class of the named vehicle type.- Parameters:
typeID- type id- Returns:
- emission class
-
getIDList
Returns a list of all known vehicle types.- Returns:
- list of vechicle types
-
getImperfection
getImperfection.- Parameters:
typeID- type id- Returns:
- imperfection
-
getLength
Returns the length of the named vehicle type.- Parameters:
typeID- type id- Returns:
- length
-
getMaxSpeed
Return the maximum speed of the named vehicle type.- Parameters:
typeID- type id- Returns:
- max speed
-
getMinGap
Returns the minimum headway gap of the named vehicle type.- Parameters:
typeID- type id- Returns:
- min gap
-
getParameter
Returns the chosen parameter.- Parameters:
typeID- a string identifying the vehicle typeparam- a string identifying the parameter- Returns:
- the specific parameter
-
setParameter
Sets the chosen parameter.- Parameters:
typeID- the type IDparam- a string identifying the parametervalue- a string identifying the new value- Returns:
- SumoCommand
-
getShapeClass
getShapeClass.- Parameters:
typeID- type id- Returns:
- shape class
-
getSpeedDeviation
Returns the speed deviation of the named vehicle type.- Parameters:
typeID- type id- Returns:
- speed deviation
-
getSpeedFactor
Return the speed factor of the names vehicle type.- Parameters:
typeID- type id- Returns:
- speed factor
-
getTau
getTau.- Parameters:
typeID- type id- Returns:
- tau
-
getVehicleClass
Returns the vehicle class of the names vehicle type.- Parameters:
typeID- type id- Returns:
- vehicle class
-
getWidth
Returns the width of the named vehicle type.- Parameters:
typeID- type id- Returns:
- width
-
setAccel
Sets the vehicle type's wished maximum acceleration to the given value.- Parameters:
typeID- type idaccel- acceleration- Returns:
- SumoCommand
-
setColor
Sets the vehicle type's color.- Parameters:
typeID- type idcolor- color- Returns:
- SumoCommand
-
setDecel
Sets the vehicle type's wished maximum deceleration to the given value.- Parameters:
typeID- type iddecel- deceleration- Returns:
- SumoCommand
-
setEmissionClass
Sets the vehicle type's emission class to the given value.- Parameters:
typeID- type idclazz- emission class- Returns:
- SumoCommand
-
setMinGapLat
setImperfection.- Parameters:
typeID- type idminGapLat- minGapLat- Returns:
- SumoCommand
-
setMaxSpeedLat
Sets the maximum lateral speed of this type.- Parameters:
typeID- type idspeed- speed- Returns:
- SumoCommand
-
setApparentDecel
Sets the apparent deceleration in m/s^2 of vehicles of this type.- Parameters:
typeID- type iddecel- decel- Returns:
- SumoCommand
-
setImperfection
setImperfection.- Parameters:
typeID- type idimperfection- imperfection- Returns:
- SumoCommand
-
setLateralAlignment
Sets the preferred lateral alignment of this type.- Parameters:
typeID- type idlatAlignment- latAlignment- Returns:
- SumoCommand
-
setHeight
Sets the height in m of vehicles of this type.- Parameters:
typeID- type idheight- height- Returns:
- SumoCommand
-
setEmergencyDecel
Sets the maximal physically possible deceleration in m/s^2 of vehicles of this type.- Parameters:
typeID- type iddecel- decel- Returns:
- SumoCommand
-
setLength
Sets the vehicle type's length to the given value.- Parameters:
typeID- type idlength- length- Returns:
- SumoCommand
-
setMaxSpeed
Sets the vehicle type's maximum speed to the given value.- Parameters:
typeID- type idspeed- speed- Returns:
- SumoCommand
-
setMinGap
Sets the vehicle type's minimum headway gap to the given value.- Parameters:
typeID- type idminGap- minimum gap- Returns:
- SumoCommand
-
setShapeClass
setShapeClass.- Parameters:
typeID- type idclazz- shape class- Returns:
- SumoCommand
-
setSpeedDeviation
Sets the vehicle type's speed deviation to the given value.- Parameters:
typeID- type iddeviation- deviation- Returns:
- SumoCommand
-
setSpeedFactor
Sets the vehicle type's speed factor to the given value.- Parameters:
typeID- type idfactor- factor- Returns:
- SumoCommand
-
setTau
setTau.- Parameters:
typeID- type idtau- tau- Returns:
- SumoCommand
-
setVehicleClass
Sets the vehicle type's vehicle class to the given value.- Parameters:
typeID- type idclazz- vehicle class- Returns:
- SumoCommand
-
setWidth
Sets the vehicle type's width to the given value.- Parameters:
typeID- type idwidth- width- Returns:
- SumoCommand
-
setWidth
Duplicates the vType with ID origTypeID. The newly created vType is assigned the ID newTypeID- Parameters:
typeID- type idnewTypeID- newTypeID- Returns:
- SumoCommand
-