| Modifier and Type | Class and Description |
|---|---|
static class |
AutoDriverOnlySimulator.AutoDriverOnlySimStepResult
The result of a simulation step.
|
Simulator.SimStepResult| Constructor and Description |
|---|
AutoDriverOnlySimulator(BasicMap basicMap)
Create an instance of the simulator.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public AutoDriverOnlySimulator(BasicMap basicMap)
basicMap - the map of the simulationpublic AutoDriverOnlySimulator.AutoDriverOnlySimStepResult step(double timeStep)
public BasicMap getMap()
public 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 vehiclepublic void addProxyVehicle(ProxyVehicleSimView vehicle)
addProxyVehicle in interface Simulatorvehicle - the proxy vehicleCopyright © 2013. All rights reserved.