VANET Simulator
 All Classes Functions Variables
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
vanetsim.scenario.Vehicle Class Reference
Inheritance diagram for vanetsim.scenario.Vehicle:
vanetsim.scenario.LaneObject

Public Member Functions

 Vehicle (ArrayDeque< WayPoint > destinations, int vehicleLength, int maxSpeed, int maxCommDist, boolean wiFiEnabled, boolean emergencyVehicle, int brakingRate, int accelerationRate, int timeDistance, int politeness, Color color) throws ParseException
 
boolean calculateRoute (boolean careAboutDirection, boolean isReroute)
 
void adjustSpeed (int timePerStep)
 
void sendMessages ()
 
final void receiveMessage (int sourceX, int sourceY, Message message)
 
void sendBeacons ()
 
void sendEncryptedBeacons ()
 
void move (int timePerStep)
 
final void moveAttacker ()
 
void searchAttackedVehicle_ ()
 
void reset ()
 
String toString ()
 
boolean getMayBeRecycled ()
 
Street[] getRouteStreets ()
 
boolean[] getRouteDirections ()
 
int getRoutePosition ()
 
int getVehicleID ()
 
int getCommunicationCountdown ()
 
int getBeaconCountdown ()
 
WayPoint getStartPoint ()
 
int getRegionX ()
 
int getRegionY ()
 
int getMaxSpeed ()
 
int getWaittime ()
 
ArrayDeque< WayPointgetDestinations ()
 
int getMaxCommDistance ()
 
boolean isActive ()
 
boolean isInMixZone ()
 
boolean isWiFiEnabled ()
 
KnownMessages getKnownMessages ()
 
KnownPenalties getKnownPenalties ()
 
KnownVehiclesList getKnownVehiclesList ()
 
KnownRSUsList getKnownRSUsList ()
 
int getMessagesCreated ()
 
int getIDsChanged ()
 
int getTotalTravelTime ()
 
long getTotalTravelDistance ()
 
void setRegion (Region region)
 
String getHexID ()
 
long getID ()
 
void setWiFiEnabled (boolean wiFiEnabled)
 
void setMaxSpeed (int maxSpeed)
 
void setMaxCommDistance (int maxCommDistance)
 
void setCurWaitTime (int curWaitTime)
 
int getCurWaitTime ()
 
void setColor (Color color)
 
Color getColor ()
 
void setBrakingRate (int brakingRate)
 
int getBrakingRate ()
 
void setAccelerationRate (int accelerationRate)
 
int getAccelerationRate ()
 
void setEmergencyVehicle (boolean emergencyVehicle)
 
boolean isEmergencyVehicle ()
 
void setVehicleLength (int vehicleLength)
 
int getVehicleLength ()
 
Node getCurMixNode_ ()
 
void setCurMixNode_ (Node curMixNode_)
 
boolean isWaitingForSignal_ ()
 
void setWaitingForSignal_ (boolean waitingForSignal_)
 
void setTimeDistance (int timeDistance)
 
int getTimeDistance ()
 
void setPoliteness (int politeness_)
 
int getPoliteness ()
 
- Public Member Functions inherited from vanetsim.scenario.LaneObject
int getX ()
 
int getY ()
 
int getCurSpeed ()
 
double getCurPosition ()
 
int getCurLane ()
 
Street getCurStreet ()
 
boolean getCurDirection ()
 
LaneObject getNext ()
 
LaneObject getPrevious ()
 
void setNext (LaneObject next)
 
void setPrevious (LaneObject previous)
 

Static Public Member Functions

static void resetGlobalRandomGenerator ()
 
static int getCommunicationInterval ()
 
static int getBeaconInterval ()
 
static boolean getCommunicationEnabled ()
 
static boolean getRecyclingEnabled ()
 
static boolean getBeaconsEnabled ()
 
static boolean getMixZonesEnabled ()
 
static boolean getMixZonesFallbackEnabled ()
 
static boolean getMixZonesFallbackFloodingOnly ()
 
static int getRoutingMode ()
 
static int getMaximumCommunicationDistance ()
 
static int getMinTravelTimeForRecycling ()
 
static int getMixZoneRadius ()
 
static void setMaxMixZoneRadius (int maxMixZoneRadius)
 
static int getMaxMixZoneRadius ()
 
static void setMixZoneRadius (int mixZoneRadius)
 
static void setMinTravelTimeForRecycling (int minTravelTimeForRecycling)
 
static void setMaximumCommunicationDistance (int maximumCommunicationDistance)
 
static void setRegions (Region[][] regions)
 
static void setCommunicationInterval (int communicationInterval)
 
static void setBeaconInterval (int beaconInterval)
 
static void setCommunicationEnabled (boolean state)
 
static void setRecyclingEnabled (boolean state)
 
static void setBeaconsEnabled (boolean state)
 
static void setMixZonesEnabled (boolean state)
 
static void setMixZonesFallbackEnabled (boolean state)
 
static void setMixZonesFallbackFloodingOnly (boolean state)
 
static void setBeaconMonitorZoneEnabled (boolean beaconMonitorEnabled)
 
static boolean getbeaconMonitorEnabled ()
 
static void setMonitoredMixZoneVariables (int beaconMonitorMinX, int beaconMonitorMaxX, int beaconMonitorMinY, int beaconMonitorMaxY)
 
static int getbeaconMonitorMinX ()
 
static int getbeaconMonitorMaxX ()
 
static int getbeaconMonitorMinY ()
 
static int getbeaconMonitorMaxY ()
 
static ReportingControlPanel getREPORT_PANEL ()
 
static void setRoutingMode (int mode)
 
static AttackRSU[] getArsuList ()
 
static void setArsuList (AttackRSU[] arsuList)
 
static boolean isAttackerDataLogged_ ()
 
static void setAttackerDataLogged_ (boolean attackerDataLogged_)
 
static long getAttackedVehicleID_ ()
 
static void setAttackedVehicleID_ (long attackedVehicleID_)
 
static boolean isEncryptedBeaconsInMix_ ()
 
static void setEncryptedBeaconsInMix_ (boolean encryptedBeaconsInMix_)
 
static boolean isAttackerEncryptedDataLogged_ ()
 
static void setAttackerEncryptedDataLogged_ (boolean attackerEncryptedDataLogged_)
 
static ReportingControlPanel getReportingPanel ()
 
static boolean isPrivacyDataLogged_ ()
 
static void setPrivacyDataLogged_ (boolean privacyDataLogged_)
 
static int getTIME_BETWEEN_SILENT_PERIODS ()
 
static void setTIME_BETWEEN_SILENT_PERIODS (int i)
 
static int getTIME_OF_SILENT_PERIODS ()
 
static void setTIME_OF_SILENT_PERIODS (int i)
 
static boolean isSilent_period ()
 
static void setSilent_period (boolean silent_period)
 
static boolean isSilentPeriodsOn ()
 
static void setSilentPeriodsOn (boolean silentPeriodsOn)
 

Public Attributes

ArrayDeque< WayPointoriginalDestinations_
 

Additional Inherited Members

- Protected Member Functions inherited from vanetsim.scenario.LaneObject
void calculatePosition ()
 
- Protected Attributes inherited from vanetsim.scenario.LaneObject
LaneObject previous_
 
LaneObject next_
 
int curX_
 
int curY_
 
double curSpeed_ = 0.0
 
double curPosition_
 
int curLane_ = 1
 
Street curStreet_
 
boolean curDirection_ = true
 

Detailed Description

A vehicle which can move and communicate (if wifi is enabled).

Constructor & Destructor Documentation

vanetsim.scenario.Vehicle.Vehicle ( ArrayDeque< WayPoint destinations,
int  vehicleLength,
int  maxSpeed,
int  maxCommDist,
boolean  wiFiEnabled,
boolean  emergencyVehicle,
int  brakingRate,
int  accelerationRate,
int  timeDistance,
int  politeness,
Color  color 
) throws ParseException
inline

Instantiates a new vehicle. You will get an exception if the destinations don't contain at least two valid elements.
Elements are considered as invalid if

  • no route can be found between them and the first destination
  • the destination is on the same street as the first destination
Parameters
destinationsan ArrayDeque with at least 2 elements (start and target) indicating where to move.
vehicleLengththe vehicle length
maxSpeedthe maximum speed of this vehicle in cm/s
maxCommDistthe maximum distance in cm this vehicle can communicate
wiFiEnabledtrue if this vehicle has a communication device (WiFi), else false
emergencyVehicletrue vehicle is an emergency vehicle
brakingRatethe braking rate in cm/s^2
accelerationRatethe acceleration rate in cm/s^2
colorthe color of the vehicle, if empty the default (color.black) is used
Exceptions
ParseExceptionan Exception indicating that you did not supply a valid destination list.

Member Function Documentation

void vanetsim.scenario.Vehicle.adjustSpeed ( int  timePerStep)
inline

Adjust the speed if reaching crossings or other cars. It also checks if the vehicle should get active. Furthermore some cleanup in the known messages and vehicles is done and new jam messages are created if necessary.

Parameters
timePerStepthe time per step in milliseconds
boolean vanetsim.scenario.Vehicle.calculateRoute ( boolean  careAboutDirection,
boolean  isReroute 
)
inline

(Re-)Calculates the route to the next destination.

Parameters
careAboutDirectiontrue if the direction on the current street shall be used for calculation, false if the direction can be chosen freely
isReroutetrue to indicate that this is a Rerouting. If it's a rerouting, a non-existent route does not lead to the vehicle getting inactive!
Returns
true if new route has been found, else false (on error)
int vanetsim.scenario.Vehicle.getAccelerationRate ( )
inline

Gets the acceleration rate

Returns
accelerationRate_ the acceleration rate in cm/s^2
int vanetsim.scenario.Vehicle.getBeaconCountdown ( )
inline

Gets the current beacon countdown

Returns
the beacon countdown
static int vanetsim.scenario.Vehicle.getBeaconInterval ( )
inlinestatic

Returns the interval between beacons.

Returns
the interval in milliseconds
static boolean vanetsim.scenario.Vehicle.getbeaconMonitorEnabled ( )
inlinestatic

Gets beacon monitor status

Returns
beaconMonitorEnabled_ true if beacon monitor is enabled
static int vanetsim.scenario.Vehicle.getbeaconMonitorMaxX ( )
inlinestatic

Gets beacon monitor maxX coordinate

Returns
beaconMonitorMaxX_ the maxX coordinate of the beacon monitor window
static int vanetsim.scenario.Vehicle.getbeaconMonitorMaxY ( )
inlinestatic

Gets beacon monitor maxY coordinate

Returns
beaconMonitorMaxY_ the maxY coordinate of the beacon monitor window
static int vanetsim.scenario.Vehicle.getbeaconMonitorMinX ( )
inlinestatic

Gets beacon monitor minX coordinate

Returns
beaconMonitorMinX_ the minX coordinate of the beacon monitor window
static int vanetsim.scenario.Vehicle.getbeaconMonitorMinY ( )
inlinestatic

Gets beacon monitor minY coordinate

Returns
beaconMonitorMinY_ the minY coordinate of the beacon monitor window
static boolean vanetsim.scenario.Vehicle.getBeaconsEnabled ( )
inlinestatic

Signals if beacons are enabled.

Returns
true if beacons are enabled, else false
int vanetsim.scenario.Vehicle.getBrakingRate ( )
inline

Gets the braking rate

Returns
brakingRate_ the braking rate in cm/s^2
Color vanetsim.scenario.Vehicle.getColor ( )
inline

Gets the vehicle color.

Returns
color_ the vehicle color.
int vanetsim.scenario.Vehicle.getCommunicationCountdown ( )
inline

Gets the current communication countdown

Returns
the communication countdown
static boolean vanetsim.scenario.Vehicle.getCommunicationEnabled ( )
inlinestatic

Signals if communication is enabled.

Returns
true if communication is enabled, else false
static int vanetsim.scenario.Vehicle.getCommunicationInterval ( )
inlinestatic

Returns the interval between messages.

Returns
the interval in milliseconds
int vanetsim.scenario.Vehicle.getCurWaitTime ( )
inline

Gets the current wait time

Returns
curWaitTime_ the current wait time
ArrayDeque<WayPoint> vanetsim.scenario.Vehicle.getDestinations ( )
inline

Gets the destinations of this vehicle.

Returns
the ArrayDeque with all destinations
String vanetsim.scenario.Vehicle.getHexID ( )
inline

Gets the ID used in beacons encoded in HEX so that it's shorter. If the vehicle is not wifi enabled, brackets are used to indicate this.

Returns
the ID as an hex string
long vanetsim.scenario.Vehicle.getID ( )
inline

Gets the vehicle ID

Returns
ID_ the vehicle ID
int vanetsim.scenario.Vehicle.getIDsChanged ( )
inline

Returns how often this vehicle has changed it's ID (excluding the initial ID).

Returns
the amount
KnownMessages vanetsim.scenario.Vehicle.getKnownMessages ( )
inline

Gets the special data structure with all known messages.

Returns
the data structure
KnownPenalties vanetsim.scenario.Vehicle.getKnownPenalties ( )
inline

Gets the special data structure with all known penalties.

Returns
the data structure
KnownRSUsList vanetsim.scenario.Vehicle.getKnownRSUsList ( )
inline

Gets the special data structure with all known RSUs.

Returns
the data structure
KnownVehiclesList vanetsim.scenario.Vehicle.getKnownVehiclesList ( )
inline

Gets the special data structure with all known vehicles.

Returns
the data structure
int vanetsim.scenario.Vehicle.getMaxCommDistance ( )
inline

Gets the maximum communication distance of this vehicle.

Returns
the distance in cm
static int vanetsim.scenario.Vehicle.getMaximumCommunicationDistance ( )
inlinestatic

Returns the maximum communication distance.

Returns
the maximum communication distance in cm
static int vanetsim.scenario.Vehicle.getMaxMixZoneRadius ( )
inlinestatic

Gets the maximum mix zone radius used in the scenario.

Returns
maxMixZoneRadius_ the maximum mix zone radius in cm
int vanetsim.scenario.Vehicle.getMaxSpeed ( )
inline

Gets the maximum speed of this vehicle.

Returns
the maximum speed in cm/s
boolean vanetsim.scenario.Vehicle.getMayBeRecycled ( )
inline

Indicates if this vehicle may be reset and reused.

Returns
true if it may be reused, else false
int vanetsim.scenario.Vehicle.getMessagesCreated ( )
inline

Returns how many messages this vehicle has created.

Returns
the amount
static int vanetsim.scenario.Vehicle.getMinTravelTimeForRecycling ( )
inlinestatic

Gets the minimum time a vehicle needs to have traveled in order to be able to be recycled. Vehicles which travel shorter than this time will NOT get recycled.

Returns
the time in milliseconds
static int vanetsim.scenario.Vehicle.getMixZoneRadius ( )
inlinestatic

Returns the radius of the mix zones.

Returns
the mix zone radius in cm
static boolean vanetsim.scenario.Vehicle.getMixZonesEnabled ( )
inlinestatic

Signals if mix zones are enabled.

Returns
true if mix zones are enabled, else false
static boolean vanetsim.scenario.Vehicle.getMixZonesFallbackEnabled ( )
inlinestatic

If the fallback mode shall be enabled in mix zones. This fallback mode enables the beaconless communication inside mix zones.

Returns
true if the fallback mode is enabled, else false
static boolean vanetsim.scenario.Vehicle.getMixZonesFallbackFloodingOnly ( )
inlinestatic

If the fallback mode only sends messages which are in flooding/broadcast mode.

Returns
true if only flooding messages are sent, else false
static boolean vanetsim.scenario.Vehicle.getRecyclingEnabled ( )
inlinestatic

Signals if recycling of vehicles is enabled or not

Returns
true if recycling is enabled, else false
int vanetsim.scenario.Vehicle.getRegionX ( )
inline

Gets the regions x-coordinate in which this vehicle is found.

Returns
An Integer representing the x-coordinate of the Region
int vanetsim.scenario.Vehicle.getRegionY ( )
inline

Gets the regions y-coordinate in which this vehicle is found.

Returns
An Integer representing the y-coordinate of the Region
static ReportingControlPanel vanetsim.scenario.Vehicle.getREPORT_PANEL ( )
inlinestatic

Gets the report panel for beacon monitoring

Returns
REPORT_PANEL the beacon report panel
boolean [] vanetsim.scenario.Vehicle.getRouteDirections ( )
inline

Get the directions corresponding to the array returned getRouteStreets().

Returns
the array with all directions
int vanetsim.scenario.Vehicle.getRoutePosition ( )
inline

Gets the current position in the array returned by getRouteStreets() and getRouteDirections().

Returns
the position
Street [] vanetsim.scenario.Vehicle.getRouteStreets ( )
inline

Gets an array with all streets which will be visited until arriving at the next destination.

Returns
the array with all streets
static int vanetsim.scenario.Vehicle.getRoutingMode ( )
inlinestatic

Returns the current routing mode.

Returns
the routing mode
WayPoint vanetsim.scenario.Vehicle.getStartPoint ( )
inline

Gets the starting point of the vehicle.

Returns
the WayPoint
long vanetsim.scenario.Vehicle.getTotalTravelDistance ( )
inline

The total distance traveled. This is not completely exact but should suffice in most cases. Small aberration from the real value occur if this vehicle reaches a destination (which should not happen too often).

Returns
the total distance in cm
int vanetsim.scenario.Vehicle.getTotalTravelTime ( )
inline

Gets how long this vehicle traveled. This excludes predefined waiting times but includes all other stops.

Returns
the total time in milliseconds
int vanetsim.scenario.Vehicle.getVehicleID ( )
inline

Gets the current ID of this vehicle. This ID might change if mixing is enabled!

Returns
the ID
int vanetsim.scenario.Vehicle.getVehicleLength ( )
inline

Gets the vehicle length.

Returns
vehicleLength_ the vehicle length in cm.
int vanetsim.scenario.Vehicle.getWaittime ( )
inline

Gets the current waittime.

Returns
the current waittime in milliseconds
boolean vanetsim.scenario.Vehicle.isActive ( )
inline

Returns if this vehicle is currently active.

Returns
true if it's active
boolean vanetsim.scenario.Vehicle.isEmergencyVehicle ( )
inline

Signals if vehicle is an emergency vehicle

Returns
true if vehicle is an emergency vehicle
boolean vanetsim.scenario.Vehicle.isInMixZone ( )
inline

Returns if this vehicle is currently in a mix zone.

Returns
true if it's in a mix zone
boolean vanetsim.scenario.Vehicle.isWaitingForSignal_ ( )
inline
Returns
the waitingForSignal_
boolean vanetsim.scenario.Vehicle.isWiFiEnabled ( )
inline

Returns if this vehicle has WiFi functionality.

Returns
true if it has WiFi
void vanetsim.scenario.Vehicle.move ( int  timePerStep)
inline

Move the vehicle one step forward. Please check if the vehicle is active before calling this!

Parameters
timePerStepthe time per step in milliseconds
final void vanetsim.scenario.Vehicle.moveAttacker ( )
inline

Move Attacker.

final void vanetsim.scenario.Vehicle.receiveMessage ( int  sourceX,
int  sourceY,
Message  message 
)
inline

Receive a message from another vehicle.

Parameters
sourceXthe x coordinate of the other vehicle
sourceYthe y coordinate of the other vehicle
messagethe message
void vanetsim.scenario.Vehicle.reset ( )
inline

Resets this vehicle so that it can be reused. It will travel on the same route as last time!

static void vanetsim.scenario.Vehicle.resetGlobalRandomGenerator ( )
inlinestatic

Resets the global random number generator

void vanetsim.scenario.Vehicle.searchAttackedVehicle_ ( )
inline

The attacked vehicle can«t be found. But it can«t be far because we received a beacon the last time. This method is only evoked one time per mix-zone so it doesn't need to be that efficient

void vanetsim.scenario.Vehicle.sendBeacons ( )
inline

Find vehicles in neighborhood and send beacons to them. Please check the following conditions before calling this function:

  • communication is generally enabled
  • beacons are generally enabled
  • if this vehicle is active
  • if it has wifi
  • if the beacon countdown is 0 or less
  • if vehicle is not in a mix zone
void vanetsim.scenario.Vehicle.sendEncryptedBeacons ( )
inline

Find vehicles nearest in neighborhood and send encrypted beacons to them. Please check the following conditions before calling this function:

  • communication is generally enabled
  • beacons are generally enabled
  • if this vehicle is active
  • if it has wifi
  • if the beacon countdown is 0 or less
  • if vehicle is in a mix zone
  • if encryptedBeaconsInMix is enabled
void vanetsim.scenario.Vehicle.sendMessages ( )
inline

Find vehicles in neighborhood and give information to them. Please check the following conditions before calling this function:

  • communication is generally enabled
  • if this vehicle is active
  • if it has wifi
  • if the communication countdown is 0 or less
void vanetsim.scenario.Vehicle.setAccelerationRate ( int  accelerationRate)
inline

Sets the acceleration rate

Parameters
accelerationRatethe acceleration rate in cm/s^2
static void vanetsim.scenario.Vehicle.setBeaconInterval ( int  beaconInterval)
inlinestatic

Sets a new value for the beacon interval. Common to all vehicles.

Parameters
beaconIntervalthe new value
static void vanetsim.scenario.Vehicle.setBeaconMonitorZoneEnabled ( boolean  beaconMonitorEnabled)
inlinestatic

Sets if beacon zones should be monitored or not. Common to all vehicles.

Parameters
beaconMonitorEnabledtrue to enable monitoring mix zones, else false
static void vanetsim.scenario.Vehicle.setBeaconsEnabled ( boolean  state)
inlinestatic

Sets if beacons are enabled or not. Common to all vehicles.

Parameters
statetrue to enable beacons, else false
void vanetsim.scenario.Vehicle.setBrakingRate ( int  brakingRate)
inline

Sets the braking rate

Parameters
brakingRatethe braking rate in cm/s^2
void vanetsim.scenario.Vehicle.setColor ( Color  color)
inline

Sets the color

Parameters
colorthe new color
static void vanetsim.scenario.Vehicle.setCommunicationEnabled ( boolean  state)
inlinestatic

Sets if communication is enabled or not. Common to all vehicles.

Parameters
statetrue to enable communication, else false
static void vanetsim.scenario.Vehicle.setCommunicationInterval ( int  communicationInterval)
inlinestatic

Sets a new value for the communication interval. Common to all vehicles.

Parameters
communicationIntervalthe new value
void vanetsim.scenario.Vehicle.setCurWaitTime ( int  curWaitTime)
inline

Sets the current wait time.

Parameters
curWaitTimethe current wait time in ms.
void vanetsim.scenario.Vehicle.setEmergencyVehicle ( boolean  emergencyVehicle)
inline

Sets the emergency vehicle mode

Parameters
emergencyVehicletrue to enable emergency mode
void vanetsim.scenario.Vehicle.setMaxCommDistance ( int  maxCommDistance)
inline

Sets the maximum communication distance

Parameters
maxCommDistancethe maximum communication distance in cm
static void vanetsim.scenario.Vehicle.setMaximumCommunicationDistance ( int  maximumCommunicationDistance)
inlinestatic

Set the maximum communication distance.

Parameters
maximumCommunicationDistancethe maximum communication distance in cm
static void vanetsim.scenario.Vehicle.setMaxMixZoneRadius ( int  maxMixZoneRadius)
inlinestatic

Set the maximum radius of the mix zones.

Parameters
maxMixZoneRadiusthe maximum radius of the mix zones in cm
void vanetsim.scenario.Vehicle.setMaxSpeed ( int  maxSpeed)
inline

Sets the maximum speed

Parameters
maxSpeedthe speed in cm/s
static void vanetsim.scenario.Vehicle.setMinTravelTimeForRecycling ( int  minTravelTimeForRecycling)
inlinestatic

Sets the minimum time a vehicle needs to have traveled in order to be able to be recycled. Vehicles which travel shorter than this time will NOT get recycled.

Parameters
minTravelTimeForRecyclingthe time in milliseconds
static void vanetsim.scenario.Vehicle.setMixZoneRadius ( int  mixZoneRadius)
inlinestatic

Set the default radius of the mix zones (in the common settings panel).

Parameters
mixZoneRadiusthe radius of the mix zones in cm
static void vanetsim.scenario.Vehicle.setMixZonesEnabled ( boolean  state)
inlinestatic

Sets if mix zones are enabled or not. Common to all vehicles.

Parameters
statetrue to enable mix zones, else false
static void vanetsim.scenario.Vehicle.setMixZonesFallbackEnabled ( boolean  state)
inlinestatic

Sets if the fallback mode shall be enabled in mix zones. This fallback mode enables the beaconless communication inside mix zones.

Parameters
statetrue if the fallback mode is enabled, else false
static void vanetsim.scenario.Vehicle.setMixZonesFallbackFloodingOnly ( boolean  state)
inlinestatic

Sets if the fallback mode only sends messages which are in flooding/broadcast mode.

Parameters
statetrue if only flooding messages are sent, else false
static void vanetsim.scenario.Vehicle.setMonitoredMixZoneVariables ( int  beaconMonitorMinX,
int  beaconMonitorMaxX,
int  beaconMonitorMinY,
int  beaconMonitorMaxY 
)
inlinestatic

Sets the values for the monitored beacon zone. A rectangular bounding box within the specified coordinates is monitored if setBeaconMonitorZoneEnabled(boolean) is set to true.

Parameters
beaconMonitorMinXthe minimum x coordinate
beaconMonitorMaxXthe maximum x coordinate
beaconMonitorMinYthe minimum y coordinate
beaconMonitorMaxYthe maximum y coordinate
static void vanetsim.scenario.Vehicle.setRecyclingEnabled ( boolean  state)
inlinestatic

Sets if recycling of vehicles is enabled or not. Common to all vehicles.

Parameters
statetrue to enable recycling, else false
void vanetsim.scenario.Vehicle.setRegion ( Region  region)
inline

Sets the region in which this vehicle is found.

Parameters
regionthe region
static void vanetsim.scenario.Vehicle.setRegions ( Region  regions[][])
inlinestatic

Sets the reference to all regions. Call this on map reload!

Parameters
regionsthe array with all regions
static void vanetsim.scenario.Vehicle.setRoutingMode ( int  mode)
inlinestatic

Sets a new routing mode. See the A_Star_Algor for details. Common to all vehicles.

Parameters
modethe new routing mode
void vanetsim.scenario.Vehicle.setVehicleLength ( int  vehicleLength)
inline

Sets the vehicle length

Parameters
vehicleLengththe vehicle length in cm.
void vanetsim.scenario.Vehicle.setWaitingForSignal_ ( boolean  waitingForSignal_)
inline
Parameters
waitingForSignal_the waitingForSignal_ to set
void vanetsim.scenario.Vehicle.setWiFiEnabled ( boolean  wiFiEnabled)
inline

Set vehicle WiFi

Parameters
wiFiEnabledtrue to enable WiFi for the vehicle
String vanetsim.scenario.Vehicle.toString ( )
inline

Gets a substring of the Vehicle ID. Used in the EditOneVehicleControl.java chooseVehicle_ JCombobox.

Member Data Documentation

ArrayDeque<WayPoint> vanetsim.scenario.Vehicle.originalDestinations_

The destinations this vehicle wants to visit.


The documentation for this class was generated from the following file: