|
|||||||||
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.
Nested Class Summary | |
---|---|
private static class |
ndp.cmdlineOpts
Parsed command-line options. |
Field Summary | |
---|---|
static int |
GRANULARITY
random waypoint granularity. |
static int |
MAX_SPEED
random waypoint maximum speed. |
static int |
MIN_SPEED
random waypoint minimum speed. |
private static int |
MODE_DENSITY
benchmark mode. |
private static java.lang.String |
MODE_DENSITY_STRING
benchmark mode string. |
private static int |
MODE_INVALID
benchmark mode. |
private static int |
MODE_MEM
benchmark mode. |
private static java.lang.String |
MODE_MEM_STRING
benchmark mode string. |
private static int |
MODE_SPATIAL_GRID
benchmark binning types. |
private static int |
MODE_SPATIAL_HIER
benchmark binning types. |
private static int |
MODE_SPATIAL_LINEAR
benchmark binning types. |
private static java.lang.String |
MODE_SPATIAL_STRING_GRID
benchmark binning type strings. |
private static java.lang.String |
MODE_SPATIAL_STRING_HIER
benchmark binning type strings. |
private static java.lang.String |
MODE_SPATIAL_STRING_LINEAR
benchmark binning type strings. |
private static int |
MODE_TIME
benchmark mode. |
private static java.lang.String |
MODE_TIME_STRING
benchmark mode string. |
static int |
PAUSE_TIME
random waypoint pause time. |
private static long |
startTime
benchmark start 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. |
private static ndp.cmdlineOpts |
parseCommandLineOptions(java.lang.String[] args)
Parse command-line options. |
static void |
reportMem()
Print memory information. |
private static void |
showUsage()
Print benchmark command-line syntax. |
private static void |
showVersion()
Print benchmark version 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
private static final int MODE_INVALID
private static final int MODE_TIME
private static final int MODE_MEM
private static final int MODE_DENSITY
private static final java.lang.String MODE_TIME_STRING
private static final java.lang.String MODE_MEM_STRING
private static final java.lang.String MODE_DENSITY_STRING
private static final int MODE_SPATIAL_LINEAR
private static final int MODE_SPATIAL_GRID
private static final int MODE_SPATIAL_HIER
private static final java.lang.String MODE_SPATIAL_STRING_LINEAR
private static final java.lang.String MODE_SPATIAL_STRING_GRID
private static final java.lang.String MODE_SPATIAL_STRING_HIER
public static final int PAUSE_TIME
public static final int GRANULARITY
public static final int MIN_SPEED
public static final int MAX_SPEED
private static long startTime
Constructor Detail |
---|
public ndp()
Method Detail |
---|
private static void showVersion()
private static void showUsage()
private static ndp.cmdlineOpts parseCommandLineOptions(java.lang.String[] args) throws jargs.gnu.CmdLineParser.OptionException
args
- command-line parameters
CmdLineParser.OptionException
- invalid option encounteredpublic 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 modelpublic 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 |