|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdriver.heartbeat
public class heartbeat
SWANS demo/test: heartbeat application.
| 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. |
| Constructor Summary | |
|---|---|
heartbeat()
|
|
| 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(int nodes,
int length)
Initialize simulation field. |
static void |
main(java.lang.String[] args)
Benchmark entry point: heartbeat test. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 heartbeat()
| 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(int nodes,
int length)
nodes - number of nodeslength - length of field
public static void main(java.lang.String[] args)
args - command-line parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||