|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aim4.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 simulationMethod Detail |
---|
public AutoDriverOnlySimulator.AutoDriverOnlySimStepResult step(double timeStep)
step
in interface Simulator
timeStep
- the amount of time the simulation should run in
this time steppublic BasicMap getMap()
getMap
in interface Simulator
public double getSimulationTime()
getSimulationTime
in interface Simulator
public int getNumCompletedVehicles()
getNumCompletedVehicles
in interface Simulator
public double getAvgBitsTransmittedByCompletedVehicles()
getAvgBitsTransmittedByCompletedVehicles
in interface Simulator
public double getAvgBitsReceivedByCompletedVehicles()
getAvgBitsReceivedByCompletedVehicles
in interface Simulator
public Set<VehicleSimView> getActiveVehicles()
getActiveVehicles
in interface Simulator
public VehicleSimView getActiveVehicle(int vin)
getActiveVehicle
in interface Simulator
vin
- the VIN number of the vehicle
public void addProxyVehicle(ProxyVehicleSimView vehicle)
addProxyVehicle
in interface Simulator
vehicle
- the proxy vehicle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |