|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectexample.hot.InetInitializer
public class InetInitializer
This initialization class collects the simulation parameters from the config file and generates uniformly random 2D-coordinates for each node. The coordinates are distributed on a unit (1.0) square.
The first node in the Network is considered as the root node and its
coordinate is set to the center of the square.
| Parameter Summary | |
|---|---|
protocol
The protocol to operate on. |
|
| Constructor Summary | |
|---|---|
InetInitializer(java.lang.String prefix)
Standard constructor that reads the configuration parameters. |
|
| Method Summary | |
|---|---|
boolean |
execute()
Initialize the node coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Parameter Detail |
|---|
protocol
| Constructor Detail |
|---|
public InetInitializer(java.lang.String prefix)
prefix - the configuration prefix for this class.| Method Detail |
|---|
public boolean execute()
Network is
the root node by default and it is located in the middle (the center of
the square) of the surface area.
execute in interface Control
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||