|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Simulator
An interface for simulators.
Nested Class Summary | |
---|---|
static interface |
Simulator.SimStepResult
An interface denoting the result of a simulation step. |
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. |
Simulator.SimStepResult |
step(double timeStep)
Move the simulator a time step forward. |
Method Detail |
---|
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 vehicle
void addProxyVehicle(ProxyVehicleSimView vehicle)
vehicle
- the proxy vehicle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |