|
| VehicleType (String name, int vehicleLength, int maxSpeed, int minSpeed, int maxCommDist, int minCommDist, int maxBrakingRate, int minBrakingRate, int maxAccelerationRate, int minAccelerationRate, int minTimeDistance, int maxTimeDistance, int minPoliteness, int maxPoliteness, int maxWaittime, int minWaittime, boolean wifi, boolean emergencyVehicle, int color) |
|
String | getName () |
|
int | getMaxSpeed () |
|
void | setMaxSpeed (int maxSpeed) |
|
int | getMinSpeed () |
|
void | setMinSpeed (int minSpeed) |
|
int | getMaxCommDist () |
|
void | setMaxCommDist (int maxCommDist) |
|
int | getMinCommDist () |
|
void | setMinCommDist (int minCommDist) |
|
int | getMaxWaittime () |
|
void | setMaxWaittime (int maxWaittime) |
|
int | getMinWaittime () |
|
void | setMinWaittime (int minWaittime) |
|
int | getColor () |
|
void | setColor (int color) |
|
int | getMaxBrakingRate () |
|
void | setMaxBrakingRate (int maxBrakingRate) |
|
int | getMinBrakingRate () |
|
void | setMinBrakingRate (int minBrakingRate) |
|
int | getMaxAccelerationRate () |
|
void | setMaxAccelerationRate (int maxAccelerationRate) |
|
int | getMinAccelerationRate () |
|
void | setMinAccelerationRate (int minAccelerationRate) |
|
boolean | isWifi () |
|
void | setWifi (boolean wifi) |
|
boolean | isEmergencyVehicle () |
|
void | setEmergencyVehicle (boolean emergencyVehicle) |
|
int | getVehicleLength () |
|
void | setVehicleLength (int vehicleLength) |
|
void | setMinTimeDistance (int minTimeDistance_) |
|
int | getMinTimeDistance () |
|
void | setMaxTimeDistance (int maxTimeDistance_) |
|
int | getMaxTimeDistance () |
|
void | setMinPoliteness (int minPoliteness_) |
|
int | getMinPoliteness () |
|
void | setMaxPoliteness (int maxPoliteness_) |
|
int | getMaxPoliteness () |
|
String | toString () |
|
vanetsim.gui.helpers.VehicleType.VehicleType |
( |
String |
name, |
|
|
int |
vehicleLength, |
|
|
int |
maxSpeed, |
|
|
int |
minSpeed, |
|
|
int |
maxCommDist, |
|
|
int |
minCommDist, |
|
|
int |
maxBrakingRate, |
|
|
int |
minBrakingRate, |
|
|
int |
maxAccelerationRate, |
|
|
int |
minAccelerationRate, |
|
|
int |
minTimeDistance, |
|
|
int |
maxTimeDistance, |
|
|
int |
minPoliteness, |
|
|
int |
maxPoliteness, |
|
|
int |
maxWaittime, |
|
|
int |
minWaittime, |
|
|
boolean |
wifi, |
|
|
boolean |
emergencyVehicle, |
|
|
int |
color |
|
) |
| |
|
inline |
Instantiates a new vehicle type.
- Parameters
-
name | name of the vehicle type |
maxSpeed | the maximum speed of this vehicle type in cm/s |
minSpeed | the minimum speed of this vehicle in cm/s |
maxCommDist | the maximum communication distance in cm/s. |
minCommDist | the minimum communication distance in cm/s. |
maxBrakingRate | the maximum braking rate in cm/s^2. |
minBrakingRate | the minimum braking rate in cm/s^2. |
maxAccelerationRate | the maximum acceleration rate in cm/s^2. |
minAccelerationRate | the minimum acceleration rate in cm/s^2. |
maxWaittime | the maximum wait time in ms. |
minWaittime | the minimum wait time in ms. |
vehicleLength | the vehicle length in cm. |
wifi | true : wifi is enabled in the vehicle type |
emergencyVehicle | true : emergencyVehicle functions are enabled in the vehicle type |
color | the color of the vehicle type |
int vanetsim.gui.helpers.VehicleType.getColor |
( |
| ) |
|
|
inline |
Gets the color of the vehicle type
- Returns
- the color
int vanetsim.gui.helpers.VehicleType.getMaxAccelerationRate |
( |
| ) |
|
|
inline |
Gets the maximum acceleration rate of the vehicle type.
- Returns
- the maximum acceleration rate
int vanetsim.gui.helpers.VehicleType.getMaxBrakingRate |
( |
| ) |
|
|
inline |
Gets the maximum braking rate of the vehicle type.
- Returns
- the maximum braking rate
int vanetsim.gui.helpers.VehicleType.getMaxCommDist |
( |
| ) |
|
|
inline |
Gets the maximum communication distance of the vehicle type.
- Returns
- the maximum communication distance
int vanetsim.gui.helpers.VehicleType.getMaxSpeed |
( |
| ) |
|
|
inline |
Gets the maximum speed of the vehicle type.
- Returns
- maximum Speed
int vanetsim.gui.helpers.VehicleType.getMaxWaittime |
( |
| ) |
|
|
inline |
Gets the maximum wait time of the vehicle type.
- Returns
- the maximum wait time
int vanetsim.gui.helpers.VehicleType.getMinAccelerationRate |
( |
| ) |
|
|
inline |
Gets the minimum acceleration rate of the vehicle type.
- Returns
- the minimum acceleration rate
int vanetsim.gui.helpers.VehicleType.getMinBrakingRate |
( |
| ) |
|
|
inline |
Gets the minimum braking rate of the vehicle type.
- Returns
- the minimum braking rate
int vanetsim.gui.helpers.VehicleType.getMinCommDist |
( |
| ) |
|
|
inline |
Gets the minimum communication distance of the vehicle type.
- Returns
- the minimum communication distance
int vanetsim.gui.helpers.VehicleType.getMinSpeed |
( |
| ) |
|
|
inline |
Gets the minimum Speed of the vehicle type.
- Returns
- the minimum Speed
int vanetsim.gui.helpers.VehicleType.getMinWaittime |
( |
| ) |
|
|
inline |
Gets the minimum wait time of the vehicle type.
- Returns
- the minimum wait time
String vanetsim.gui.helpers.VehicleType.getName |
( |
| ) |
|
|
inline |
Gets the current name of the vehicle type.
- Returns
- the name
int vanetsim.gui.helpers.VehicleType.getVehicleLength |
( |
| ) |
|
|
inline |
Gets the vehicle length.
- Returns
- the vehicle length.
boolean vanetsim.gui.helpers.VehicleType.isEmergencyVehicle |
( |
| ) |
|
|
inline |
Gets the emergency vehicle status of the vehicle type.
- Returns
true
if vehicle type is an emergency vehicle.
boolean vanetsim.gui.helpers.VehicleType.isWifi |
( |
| ) |
|
|
inline |
Gets the wifi status of the vehicle type.
- Returns
true
if wifi is enabled
void vanetsim.gui.helpers.VehicleType.setColor |
( |
int |
color | ) |
|
|
inline |
Set the color.
- Parameters
-
void vanetsim.gui.helpers.VehicleType.setEmergencyVehicle |
( |
boolean |
emergencyVehicle | ) |
|
|
inline |
Set the emergency vehicle status.
- Parameters
-
emergencyVehicle | true emergencyVehicle status is enabled. |
void vanetsim.gui.helpers.VehicleType.setMaxAccelerationRate |
( |
int |
maxAccelerationRate | ) |
|
|
inline |
Set the maximum acceleration rate.
- Parameters
-
maxAccelerationRate | the maximum acceleration rate in cm/s^2 |
void vanetsim.gui.helpers.VehicleType.setMaxBrakingRate |
( |
int |
maxBrakingRate | ) |
|
|
inline |
Set the maximum braking rate.
- Parameters
-
maxBrakingRate | the maximum braking rate in cm/s^2 |
void vanetsim.gui.helpers.VehicleType.setMaxCommDist |
( |
int |
maxCommDist | ) |
|
|
inline |
Set the maximum communication distance
- Parameters
-
maxCommDist | the maximum communication distance in cm. |
void vanetsim.gui.helpers.VehicleType.setMaxSpeed |
( |
int |
maxSpeed | ) |
|
|
inline |
Set the maximum speed
- Parameters
-
maxSpeed | the maximum speed in cm/s |
void vanetsim.gui.helpers.VehicleType.setMaxWaittime |
( |
int |
maxWaittime | ) |
|
|
inline |
Set the maximum wait time
- Parameters
-
maxWaittime | the maximum wait time in ms. |
void vanetsim.gui.helpers.VehicleType.setMinAccelerationRate |
( |
int |
minAccelerationRate | ) |
|
|
inline |
Set the minimum acceleration rate.
- Parameters
-
minAccelerationRate | the minimum acceleration rate in cm/s^2 |
void vanetsim.gui.helpers.VehicleType.setMinBrakingRate |
( |
int |
minBrakingRate | ) |
|
|
inline |
Set the minimum braking rate.
- Parameters
-
minBrakingRate | the minimum braking rate in cm/s^2 |
void vanetsim.gui.helpers.VehicleType.setMinCommDist |
( |
int |
minCommDist | ) |
|
|
inline |
Set the minimum communication distance
- Parameters
-
minCommDist | the minimum communication distance in cm. |
void vanetsim.gui.helpers.VehicleType.setMinSpeed |
( |
int |
minSpeed | ) |
|
|
inline |
Set the minimum speed
- Parameters
-
minSpeed | the maximum speed in cm/s. |
void vanetsim.gui.helpers.VehicleType.setMinWaittime |
( |
int |
minWaittime | ) |
|
|
inline |
Set the minimum wait time
- Parameters
-
minWaittime | the minimum wait time in ms. |
void vanetsim.gui.helpers.VehicleType.setVehicleLength |
( |
int |
vehicleLength | ) |
|
|
inline |
Set the vehicle length.
- Parameters
-
vehicleLength | Length of the vehicle. |
void vanetsim.gui.helpers.VehicleType.setWifi |
( |
boolean |
wifi | ) |
|
|
inline |
Set the wifi status.
- Parameters
-
String vanetsim.gui.helpers.VehicleType.toString |
( |
| ) |
|
|
inline |
Gets the name of the vehicle type if the toString() function is called.
- Returns
- name of the vehicle
The documentation for this class was generated from the following file:
- /Users/andreastomandl/Desktop/Vanet-Sim/Simulator/src/vanetsim/gui/helpers/VehicleType.java