|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdriver.ndp
public class ndp
Node Discovery Protocol macro-benchmark.
| Field Summary | |
|---|---|
static int |
GRANULARITY
random waypoint granularity. |
static int |
MAX_SPEED
random waypoint maximum speed. |
static int |
MIN_SPEED
random waypoint minimum speed. |
static int |
PAUSE_TIME
random waypoint pause time. |
static java.lang.String |
VERSION
benchmark version. |
| Constructor Summary | |
|---|---|
ndp()
|
|
| Method Summary | |
|---|---|
static void |
createNode(int i,
Field field,
Placement placement,
RadioInfo.RadioInfoShared radioInfoShared,
Mapper protMap,
PacketLoss plIn,
PacketLoss plOut)
Initialize simulation node. |
static Field |
createSim(Location.Location2D bounds,
Spatial spatial,
long nodes)
Initialize simulation field. |
static void |
main(java.lang.String[] args)
Benchmark entry point: heartbeat benchmark. |
static void |
reportMem()
Print memory information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VERSION
public static final int PAUSE_TIME
public static final int GRANULARITY
public static final int MIN_SPEED
public static final int MAX_SPEED
| Constructor Detail |
|---|
public ndp()
| Method Detail |
|---|
public static void createNode(int i,
Field field,
Placement placement,
RadioInfo.RadioInfoShared radioInfoShared,
Mapper protMap,
PacketLoss plIn,
PacketLoss plOut)
i - node numberfield - simulation fieldplacement - node placement modelradioInfoShared - shared radio informationprotMap - shared protocol mapplIn - incoming packet loss modelplOut - outgoing packet loss model
public static Field createSim(Location.Location2D bounds,
Spatial spatial,
long nodes)
bounds - size of fieldspatial - binning radio containernodes - number of nodes
public static void main(java.lang.String[] args)
args - command-line parameterspublic static void reportMem()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||