|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSim.UniformLocationGenerator
public class UniformLocationGenerator
Generates a uniform square field of nodes within the center of the area. Nodes are seperated by half the transmission range. Not that smart of a generator, does not check if the uniform distribution is within the area, just attempts to center the nodes. Keep the width/height area larger than sqrt(nodes)*tx.
| Constructor Summary | |
|---|---|
UniformLocationGenerator(java.lang.Integer totalNodes,
java.lang.Double transmissionRange,
java.lang.Integer area)
Generates a new UniformLocation structure. |
|
| Method Summary | |
|---|---|
Location |
getNext()
Gets the next node location in the field thus far. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniformLocationGenerator(java.lang.Integer totalNodes,
java.lang.Double transmissionRange,
java.lang.Integer area)
totalNodes - total number of nodes in the simulationtransmissionRange - the range of each nodearea - the area of the field| Method Detail |
|---|
public Location getNext()
getNext in interface LocationGenerator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||