aim4.map
Class GridMapUtil.OneSpawnSpecGenerator
java.lang.Object
  
aim4.map.GridMapUtil.OneSpawnSpecGenerator
- All Implemented Interfaces: 
 - SpawnPoint.SpawnSpecGenerator
 
- Enclosing class:
 - GridMapUtil
 
public static class GridMapUtil.OneSpawnSpecGenerator
- extends Object
- implements SpawnPoint.SpawnSpecGenerator
  
The spawn spec generator that generates only one spec.
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
GridMapUtil.OneSpawnSpecGenerator
public GridMapUtil.OneSpawnSpecGenerator(int vehicleSpecId,
                                         double trafficLevel,
                                         DestinationSelector destinationSelector)
- Create a spawn spec generator that generates only one spec.
- Parameters:
 vehicleSpecId - the vehicle spec IDtrafficLevel - the traffic leveldestinationSelector - the destination selector
 
act
public List<SpawnPoint.SpawnSpec> act(SpawnPoint spawnPoint,
                                      double timeStep)
- Advance the time step.
- Specified by:
 act in interface SpawnPoint.SpawnSpecGenerator
 
- Parameters:
 spawnPoint - the spawn pointtimeStep - the time step
- Returns:
 - the list of spawn spec generated in this time step.
 
 
 
Copyright © 2011. All Rights Reserved.