|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vanetsim.gui.helpers.VehicleType
public class VehicleType
Constructor Summary | |
---|---|
VehicleType(java.lang.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)
Instantiates a new vehicle type. |
Method Summary | |
---|---|
int |
getColor()
Gets the color of the vehicle type |
int |
getMaxAccelerationRate()
Gets the maximum acceleration rate of the vehicle type. |
int |
getMaxBrakingRate()
Gets the maximum braking rate of the vehicle type. |
int |
getMaxCommDist()
Gets the maximum communication distance of the vehicle type. |
int |
getMaxPoliteness()
|
int |
getMaxSpeed()
Gets the maximum speed of the vehicle type. |
int |
getMaxTimeDistance()
|
int |
getMaxWaittime()
Gets the maximum wait time of the vehicle type. |
int |
getMinAccelerationRate()
Gets the minimum acceleration rate of the vehicle type. |
int |
getMinBrakingRate()
Gets the minimum braking rate of the vehicle type. |
int |
getMinCommDist()
Gets the minimum communication distance of the vehicle type. |
int |
getMinPoliteness()
|
int |
getMinSpeed()
Gets the minimum Speed of the vehicle type. |
int |
getMinTimeDistance()
|
int |
getMinWaittime()
Gets the minimum wait time of the vehicle type. |
java.lang.String |
getName()
Gets the current name of the vehicle type. |
int |
getVehicleLength()
Gets the vehicle length. |
boolean |
isEmergencyVehicle()
Gets the emergency vehicle status of the vehicle type. |
boolean |
isWifi()
Gets the wifi status of the vehicle type. |
void |
setColor(int color)
Set the color. |
void |
setEmergencyVehicle(boolean emergencyVehicle)
Set the emergency vehicle status. |
void |
setMaxAccelerationRate(int maxAccelerationRate)
Set the maximum acceleration rate. |
void |
setMaxBrakingRate(int maxBrakingRate)
Set the maximum braking rate. |
void |
setMaxCommDist(int maxCommDist)
Set the maximum communication distance |
void |
setMaxPoliteness(int maxPoliteness_)
|
void |
setMaxSpeed(int maxSpeed)
Set the maximum speed |
void |
setMaxTimeDistance(int maxTimeDistance_)
|
void |
setMaxWaittime(int maxWaittime)
Set the maximum wait time |
void |
setMinAccelerationRate(int minAccelerationRate)
Set the minimum acceleration rate. |
void |
setMinBrakingRate(int minBrakingRate)
Set the minimum braking rate. |
void |
setMinCommDist(int minCommDist)
Set the minimum communication distance |
void |
setMinPoliteness(int minPoliteness_)
|
void |
setMinSpeed(int minSpeed)
Set the minimum speed |
void |
setMinTimeDistance(int minTimeDistance_)
|
void |
setMinWaittime(int minWaittime)
Set the minimum wait time |
void |
setVehicleLength(int vehicleLength)
Set the vehicle length. |
void |
setWifi(boolean wifi)
Set the wifi status. |
java.lang.String |
toString()
Gets the name of the vehicle type if the toString() function is called. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VehicleType(java.lang.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)
name
- name of the vehicle typemaxSpeed
- the maximum speed of this vehicle type in cm/sminSpeed
- the minimum speed of this vehicle in cm/smaxCommDist
- 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 typeemergencyVehicle
- true
: emergencyVehicle functions are enabled in the vehicle typecolor
- the color of the vehicle typeMethod Detail |
---|
public java.lang.String getName()
public int getMaxSpeed()
public void setMaxSpeed(int maxSpeed)
maxSpeed
- the maximum speed in cm/spublic int getMinSpeed()
public void setMinSpeed(int minSpeed)
minSpeed
- the maximum speed in cm/s.public int getMaxCommDist()
public void setMaxCommDist(int maxCommDist)
maxCommDist
- the maximum communication distance in cm.public int getMinCommDist()
public void setMinCommDist(int minCommDist)
minCommDist
- the minimum communication distance in cm.public int getMaxWaittime()
public void setMaxWaittime(int maxWaittime)
maxWaittime
- the maximum wait time in ms.public int getMinWaittime()
public void setMinWaittime(int minWaittime)
minWaittime
- the minimum wait time in ms.public int getColor()
public void setColor(int color)
color
- the rgb colorpublic int getMaxBrakingRate()
public void setMaxBrakingRate(int maxBrakingRate)
maxBrakingRate
- the maximum braking rate in cm/s^2public int getMinBrakingRate()
public void setMinBrakingRate(int minBrakingRate)
minBrakingRate
- the minimum braking rate in cm/s^2public int getMaxAccelerationRate()
public void setMaxAccelerationRate(int maxAccelerationRate)
maxAccelerationRate
- the maximum acceleration rate in cm/s^2public int getMinAccelerationRate()
public void setMinAccelerationRate(int minAccelerationRate)
minAccelerationRate
- the minimum acceleration rate in cm/s^2public boolean isWifi()
true
if wifi is enabledpublic void setWifi(boolean wifi)
wifi
- true
wifi is enabledpublic boolean isEmergencyVehicle()
true
if vehicle type is an emergency vehicle.public void setEmergencyVehicle(boolean emergencyVehicle)
emergencyVehicle
- true
emergencyVehicle status is enabled.public int getVehicleLength()
public void setVehicleLength(int vehicleLength)
vehicleLength
- Length of the vehicle.public void setMinTimeDistance(int minTimeDistance_)
public int getMinTimeDistance()
public void setMaxTimeDistance(int maxTimeDistance_)
public int getMaxTimeDistance()
public void setMinPoliteness(int minPoliteness_)
public int getMinPoliteness()
public void setMaxPoliteness(int maxPoliteness_)
public int getMaxPoliteness()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |