|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSim.RandomLocationGenerator
public class RandomLocationGenerator
A location creator that is used to get random value locations that are within the range specified in the constructor.
Constructor Summary | |
---|---|
RandomLocationGenerator(java.lang.Integer seed,
java.lang.Integer area)
Set the input random seed, max x and y for the returned location. |
Method Summary | |
---|---|
Location |
getNext()
Gets the next location based on the input paramters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomLocationGenerator(java.lang.Integer seed, java.lang.Integer area)
seed
- Seed for the randomly generated locationsxMax
- Max x value that should be used in generating locationsyMax
- Max y value that should be used for generating locationsMethod Detail |
---|
public Location getNext()
getNext
in interface LocationGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |