driver
Class ndp

java.lang.Object
  extended by driver.ndp

public class ndp
extends java.lang.Object

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

VERSION

public static final java.lang.String VERSION
benchmark version.

See Also:
Constant Field Values

PAUSE_TIME

public static final int PAUSE_TIME
random waypoint pause time.

See Also:
Constant Field Values

GRANULARITY

public static final int GRANULARITY
random waypoint granularity.

See Also:
Constant Field Values

MIN_SPEED

public static final int MIN_SPEED
random waypoint minimum speed.

See Also:
Constant Field Values

MAX_SPEED

public static final int MAX_SPEED
random waypoint maximum speed.

See Also:
Constant Field Values
Constructor Detail

ndp

public ndp()
Method Detail

createNode

public static void createNode(int i,
                              Field field,
                              Placement placement,
                              RadioInfo.RadioInfoShared radioInfoShared,
                              Mapper protMap,
                              PacketLoss plIn,
                              PacketLoss plOut)
Initialize simulation node.

Parameters:
i - node number
field - simulation field
placement - node placement model
radioInfoShared - shared radio information
protMap - shared protocol map
plIn - incoming packet loss model
plOut - outgoing packet loss model

createSim

public static Field createSim(Location.Location2D bounds,
                              Spatial spatial,
                              long nodes)
Initialize simulation field.

Parameters:
bounds - size of field
spatial - binning radio container
nodes - number of nodes
Returns:
simulation field

main

public static void main(java.lang.String[] args)
Benchmark entry point: heartbeat benchmark.

Parameters:
args - command-line parameters

reportMem

public static void reportMem()
Print memory information.