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
-
Method Summary
Modifier and TypeMethodDescriptionstatic SumoCommand
Returns the maximum acceleration of the named vehicle class.static SumoCommand
getApparentDecel
(String typeID) Returns The preferred lateral alignment of the type.static SumoCommand
Returns the vehicle type's color.static SumoCommand
Returns the maximum deceleration of the names vehicle type.static SumoCommand
getEmergencyDecel
(String typeID) Returns the maximal physically possible deceleration in m/s^2 of vehicles of this type.static SumoCommand
getEmissionClass
(String typeID) Returns the emission class of the named vehicle type.static SumoCommand
Returns the height in m of vehicles of this type.static SumoCommand
Returns the number of all vehicle types in the network.static SumoCommand
Returns a list of all known vehicle types.static SumoCommand
getImperfection
(String typeID) getImperfection.static SumoCommand
getLateralAlignment
(String typeID) Returns The preferred lateral alignment of the type.static SumoCommand
Returns the length of the named vehicle type.static SumoCommand
getMaxSpeed
(String typeID) Return the maximum speed of the named vehicle type.static SumoCommand
getMaxSpeedLat
(String typeID) Returns the maximum lateral speed in m/s of this type.static SumoCommand
Returns the minimum headway gap of the named vehicle type.static SumoCommand
getMinGapLat
(String typeID) Returns The desired lateral gap of this type at 50km/h in m.static SumoCommand
getParameter
(String typeID, String param) Returns the chosen parameter.static SumoCommand
getShapeClass
(String typeID) getShapeClass.static SumoCommand
getSpeedDeviation
(String typeID) Returns the speed deviation of the named vehicle type.static SumoCommand
getSpeedFactor
(String typeID) Return the speed factor of the names vehicle type.static SumoCommand
getTau.static SumoCommand
getVehicleClass
(String typeID) Returns the vehicle class of the names vehicle type.static SumoCommand
Returns the width of the named vehicle type.static SumoCommand
Sets the vehicle type's wished maximum acceleration to the given value.static SumoCommand
setApparentDecel
(String typeID, double decel) Sets the apparent deceleration in m/s^2 of vehicles of this type.static SumoCommand
Sets the vehicle type's color.static SumoCommand
Sets the vehicle type's wished maximum deceleration to the given value.static SumoCommand
setEmergencyDecel
(String typeID, double decel) Sets the maximal physically possible deceleration in m/s^2 of vehicles of this type.static SumoCommand
setEmissionClass
(String typeID, String clazz) Sets the vehicle type's emission class to the given value.static SumoCommand
Sets the height in m of vehicles of this type.static SumoCommand
setImperfection
(String typeID, double imperfection) setImperfection.static SumoCommand
setLateralAlignment
(String typeID, String latAlignment) Sets the preferred lateral alignment of this type.static SumoCommand
Sets the vehicle type's length to the given value.static SumoCommand
setMaxSpeed
(String typeID, double speed) Sets the vehicle type's maximum speed to the given value.static SumoCommand
setMaxSpeedLat
(String typeID, double speed) Sets the maximum lateral speed of this type.static SumoCommand
Sets the vehicle type's minimum headway gap to the given value.static SumoCommand
setMinGapLat
(String typeID, double minGapLat) setImperfection.static SumoCommand
setParameter
(String typeID, String param, String value) Sets the chosen parameter.static SumoCommand
setShapeClass
(String typeID, String clazz) setShapeClass.static SumoCommand
setSpeedDeviation
(String typeID, double deviation) Sets the vehicle type's speed deviation to the given value.static SumoCommand
setSpeedFactor
(String typeID, double factor) Sets the vehicle type's speed factor to the given value.static SumoCommand
setTau.static SumoCommand
setVehicleClass
(String typeID, String clazz) Sets the vehicle type's vehicle class to the given value.static SumoCommand
Sets the vehicle type's width to the given value.static SumoCommand
Duplicates 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
-