public class Vehicletype
extends Object
Constructor and Description |
---|
Vehicletype() |
Modifier and Type | Method and Description |
---|---|
static SumoCommand |
getAccel(String typeID)
Returns the maximum acceleration of the named vehicle class.
|
static SumoCommand |
getApparentDecel(String typeID)
Returns The preferred lateral alignment of the type
|
static SumoCommand |
getColor(String typeID)
Returns the vehicle type's color.
|
static SumoCommand |
getDecel(String typeID)
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 |
getHeight(String typeID)
Returns the height in m of vehicles of this type.
|
static SumoCommand |
getIDCount()
Returns the number of all vehicle types in the network.
|
static SumoCommand |
getIDList()
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 |
getLength(String typeID)
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 |
getMinGap(String typeID)
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(String typeID)
getTau
|
static SumoCommand |
getVehicleClass(String typeID)
Returns the vehicle class of the names vehicle type.
|
static SumoCommand |
getWidth(String typeID)
Returns the width of the named vehicle type.
|
static SumoCommand |
setAccel(String typeID,
double accel)
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 |
setColor(String typeID,
SumoColor color)
Sets the vehicle type's color.
|
static SumoCommand |
setDecel(String typeID,
double decel)
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 |
setHeight(String typeID,
double height)
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 |
setLength(String typeID,
double length)
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 |
setMinGap(String typeID,
double minGap)
Sets the vehicle type's minimum headway gap to the given value.
|
static SumoCommand |
setMinGapLat(String typeID,
double minGapLat)
setImperfection
|
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(String typeID,
double tau)
setTau
|
static SumoCommand |
setVehicleClass(String typeID,
String clazz)
Sets the vehicle type's vehicle class to the given value.
|
static SumoCommand |
setWidth(String typeID,
double width)
Sets the vehicle type's width to the given value.
|
static SumoCommand |
setWidth(String typeID,
String newTypeID)
Duplicates the vType with ID origTypeID.
|
public static SumoCommand getAccel(String typeID)
typeID
- type idpublic static SumoCommand getIDCount()
public static SumoCommand getColor(String typeID)
typeID
- type idpublic static SumoCommand getDecel(String typeID)
typeID
- type idpublic static SumoCommand getEmergencyDecel(String typeID)
typeID
- type idpublic static SumoCommand getLateralAlignment(String typeID)
typeID
- type idpublic static SumoCommand getHeight(String typeID)
typeID
- type idpublic static SumoCommand getApparentDecel(String typeID)
typeID
- type idpublic static SumoCommand getMinGapLat(String typeID)
typeID
- type idpublic static SumoCommand getMaxSpeedLat(String typeID)
typeID
- type idpublic static SumoCommand getEmissionClass(String typeID)
typeID
- type idpublic static SumoCommand getIDList()
public static SumoCommand getImperfection(String typeID)
typeID
- type idpublic static SumoCommand getLength(String typeID)
typeID
- type idpublic static SumoCommand getMaxSpeed(String typeID)
typeID
- type idpublic static SumoCommand getMinGap(String typeID)
typeID
- type idpublic static SumoCommand getParameter(String typeID, String param)
typeID
- a string identifying the vehicle typeparam
- a string identifying the parameterpublic static SumoCommand getShapeClass(String typeID)
typeID
- type idpublic static SumoCommand getSpeedDeviation(String typeID)
typeID
- type idpublic static SumoCommand getSpeedFactor(String typeID)
typeID
- type idpublic static SumoCommand getTau(String typeID)
typeID
- type idpublic static SumoCommand getVehicleClass(String typeID)
typeID
- type idpublic static SumoCommand getWidth(String typeID)
typeID
- type idpublic static SumoCommand setAccel(String typeID, double accel)
typeID
- type idaccel
- accelerationpublic static SumoCommand setColor(String typeID, SumoColor color)
typeID
- type idcolor
- colorpublic static SumoCommand setDecel(String typeID, double decel)
typeID
- type iddecel
- decelerationpublic static SumoCommand setEmissionClass(String typeID, String clazz)
typeID
- type idclazz
- emission classpublic static SumoCommand setMinGapLat(String typeID, double minGapLat)
typeID
- type idminGapLat
- minGapLatpublic static SumoCommand setMaxSpeedLat(String typeID, double speed)
typeID
- type idspeed
- speedpublic static SumoCommand setApparentDecel(String typeID, double decel)
typeID
- type iddecel
- decelpublic static SumoCommand setImperfection(String typeID, double imperfection)
typeID
- type idimperfection
- imperfectionpublic static SumoCommand setLateralAlignment(String typeID, String latAlignment)
typeID
- type idlatAlignment
- latAlignmentpublic static SumoCommand setHeight(String typeID, double height)
typeID
- type idheight
- heightpublic static SumoCommand setEmergencyDecel(String typeID, double decel)
typeID
- type iddecel
- decelpublic static SumoCommand setLength(String typeID, double length)
typeID
- type idlength
- lengthpublic static SumoCommand setMaxSpeed(String typeID, double speed)
typeID
- type idspeed
- speedpublic static SumoCommand setMinGap(String typeID, double minGap)
typeID
- type idminGap
- minimum gappublic static SumoCommand setShapeClass(String typeID, String clazz)
typeID
- type idclazz
- shape classpublic static SumoCommand setSpeedDeviation(String typeID, double deviation)
typeID
- type iddeviation
- deviationpublic static SumoCommand setSpeedFactor(String typeID, double factor)
typeID
- type idfactor
- factorpublic static SumoCommand setTau(String typeID, double tau)
typeID
- type idtau
- taupublic static SumoCommand setVehicleClass(String typeID, String clazz)
typeID
- type idclazz
- vehicle classpublic static SumoCommand setWidth(String typeID, double width)
typeID
- type idwidth
- widthpublic static SumoCommand setWidth(String typeID, String newTypeID)
typeID
- type idnewTypeID
- newTypeID