aim4.driver
Class ProxyDriver
java.lang.Object
aim4.driver.Driver
aim4.driver.AutoDriver
aim4.driver.ProxyDriver
- All Implemented Interfaces:
- AutoDriverCoordinatorView, AutoDriverPilotView, DriverSimView
public class ProxyDriver
- extends AutoDriver
A proxy driver.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyDriver
public ProxyDriver(AutoVehicleDriverView vehicle,
BasicMap basicMap)
- Construct a proxy driver.
- Parameters:
vehicle - the vehicle objectbasicMap - the map object
act
public void act()
- Take control actions for driving the agent's Vehicle. This allows
both the Coordinator and the Pilot to act (in that order).
- Specified by:
act in interface DriverSimView- Overrides:
act in class AutoDriver
getSpawnPoint
public SpawnPoint getSpawnPoint()
- Get where this DriverAgent is coming from.
- Specified by:
getSpawnPoint in interface DriverSimView- Overrides:
getSpawnPoint in class Driver
- Returns:
- the Road where this DriverAgent is coming from
getDestination
public Road getDestination()
- Get where this DriverAgent is going.
- Specified by:
getDestination in interface AutoDriverCoordinatorView- Specified by:
getDestination in interface DriverSimView- Overrides:
getDestination in class Driver
- Returns:
- the Road where this DriverAgent is going
Copyright © 2011. All Rights Reserved.