public static class GridMapUtil.OnlyOneSpawnSpecGenerator extends Object implements SpawnPoint.SpawnSpecGenerator
| Constructor and Description |
|---|
GridMapUtil.OnlyOneSpawnSpecGenerator(int vehicleSpecId,
Road destinationRoad)
Create a spec generator that generates just one vehicle in the entire
simulation.
|
public GridMapUtil.OnlyOneSpawnSpecGenerator(int vehicleSpecId,
Road destinationRoad)
vehicleSpecId - the vehicle spec IDdestinationRoad - the destination roadpublic List<SpawnPoint.SpawnSpec> act(SpawnPoint spawnPoint, double timeStep)
act in interface SpawnPoint.SpawnSpecGeneratorspawnPoint - the spawn pointtimeStep - the time stepCopyright © 2013. All rights reserved.