public static class GridMapUtil.OneSpawnSpecGenerator extends Object implements SpawnPoint.SpawnSpecGenerator
| Constructor and Description |
|---|
GridMapUtil.OneSpawnSpecGenerator(int vehicleSpecId,
double trafficLevel,
DestinationSelector destinationSelector)
Create a spawn spec generator that generates only one spec.
|
public GridMapUtil.OneSpawnSpecGenerator(int vehicleSpecId,
double trafficLevel,
DestinationSelector destinationSelector)
vehicleSpecId - the vehicle spec IDtrafficLevel - the traffic leveldestinationSelector - the destination selectorpublic List<SpawnPoint.SpawnSpec> act(SpawnPoint spawnPoint, double timeStep)
act in interface SpawnPoint.SpawnSpecGeneratorspawnPoint - the spawn pointtimeStep - the time stepCopyright © 2013. All rights reserved.