| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.sim.AutoDriverOnlySimulator
public class AutoDriverOnlySimulator
The autonomous drivers only simulator.
| Nested Class Summary | |
|---|---|
static class | 
AutoDriverOnlySimulator.AutoDriverOnlySimStepResult
The result of a simulation step.  | 
| Nested classes/interfaces inherited from interface aim4.sim.Simulator | 
|---|
Simulator.SimStepResult | 
| Constructor Summary | |
|---|---|
AutoDriverOnlySimulator(BasicMap basicMap)
Create an instance of the simulator.  | 
|
| Method Summary | |
|---|---|
 void | 
addProxyVehicle(ProxyVehicleSimView vehicle)
Add the proxy vehicle to the simulator for the mixed reality experiments.  | 
 VehicleSimView | 
getActiveVehicle(int vin)
Get a particular active vehicle via a given VIN.  | 
 Set<VehicleSimView> | 
getActiveVehicles()
Get the set of all active vehicles in the simulation.  | 
 double | 
getAvgBitsReceivedByCompletedVehicles()
Get average number of bits received by completed vehicles.  | 
 double | 
getAvgBitsTransmittedByCompletedVehicles()
Get average number of bits transmitted by completed vehicles.  | 
 BasicMap | 
getMap()
Get the layout of the simulation.  | 
 int | 
getNumCompletedVehicles()
Get the number of vehicles that has reached their destinations.  | 
 double | 
getSimulationTime()
Get the total amount of simulation time has run.  | 
 AutoDriverOnlySimulator.AutoDriverOnlySimStepResult | 
step(double timeStep)
Move the simulator a time step forward.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AutoDriverOnlySimulator(BasicMap basicMap)
basicMap - the map of the simulation| Method Detail | 
|---|
public AutoDriverOnlySimulator.AutoDriverOnlySimStepResult step(double timeStep)
step in interface SimulatortimeStep - the amount of time the simulation should run in
                  this time steppublic BasicMap getMap()
getMap in interface Simulatorpublic double getSimulationTime()
getSimulationTime in interface Simulatorpublic int getNumCompletedVehicles()
getNumCompletedVehicles in interface Simulatorpublic double getAvgBitsTransmittedByCompletedVehicles()
getAvgBitsTransmittedByCompletedVehicles in interface Simulatorpublic double getAvgBitsReceivedByCompletedVehicles()
getAvgBitsReceivedByCompletedVehicles in interface Simulatorpublic Set<VehicleSimView> getActiveVehicles()
getActiveVehicles in interface Simulatorpublic VehicleSimView getActiveVehicle(int vin)
getActiveVehicle in interface Simulatorvin - the VIN number of the vehicle
public void addProxyVehicle(ProxyVehicleSimView vehicle)
addProxyVehicle in interface Simulatorvehicle - the proxy vehicle
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||