public interface Simulator
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Simulator.SimStepResult
An interface denoting the result of a simulation step.
|
| 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.
|
Simulator.SimStepResult |
step(double timeStep)
Move the simulator a time step forward.
|
Simulator.SimStepResult step(double timeStep)
timeStep - the amount of time the simulation should run in
this time stepBasicMap getMap()
double getSimulationTime()
int getNumCompletedVehicles()
double getAvgBitsTransmittedByCompletedVehicles()
double getAvgBitsReceivedByCompletedVehicles()
Set<VehicleSimView> getActiveVehicles()
VehicleSimView getActiveVehicle(int vin)
vin - the VIN number of the vehiclevoid addProxyVehicle(ProxyVehicleSimView vehicle)
vehicle - the proxy vehicleCopyright © 2013. All rights reserved.