sidnet.stack.driver
Class Driver_Test802_15_4
java.lang.Object
sidnet.stack.driver.Driver_Test802_15_4
public class Driver_Test802_15_4
- extends java.lang.Object
Method Summary |
static Node |
createNode(int id,
Field field,
Placement placement,
Mapper protMap,
RadioInfo.RadioInfoShared radioInfoShared,
PacketLoss plIn,
PacketLoss plOut,
PanelContext hostPanelContext,
LocationContext fieldContext,
SimManager simControl,
Battery battery,
StatsCollector stats,
int nodesCount,
java.lang.String junitTest)
Configures each node representation and network stack |
static Field |
createSim(int nodes,
int length)
Initialize simulation environment and field |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodes
public static int nodes
fieldLength
public static int fieldLength
time
public static int time
junitTest
public static java.lang.String junitTest
numberRepetitions
public static int numberRepetitions
numberRepetitions123
public static int numberRepetitions123
numberRepetitions321
public static int numberRepetitions321
intervalMillis
public static int intervalMillis
contor
public static int contor
evaluationDone
public static boolean evaluationDone
sleepInterval
public static long sleepInterval
battery
public static Battery battery
eCostParam
public static EnergyConsumptionParameters eCostParam
Driver_Test802_15_4
public Driver_Test802_15_4()
main
public static void main(java.lang.String[] args)
createSim
public static Field createSim(int nodes,
int length)
- Initialize simulation environment and field
- Parameters:
nodes
- number of nodeslength
- length of field
- Returns:
- simulation field
createNode
public static Node createNode(int id,
Field field,
Placement placement,
Mapper protMap,
RadioInfo.RadioInfoShared radioInfoShared,
PacketLoss plIn,
PacketLoss plOut,
PanelContext hostPanelContext,
LocationContext fieldContext,
SimManager simControl,
Battery battery,
StatsCollector stats,
int nodesCount,
java.lang.String junitTest)
- Configures each node representation and network stack
- Parameters:
int
- id a numerical value to represent the id of a node. Will correspond to the IP address representationField
- the field propertiesPlacement
- information regarding positions length of fieldMapper
- network stack mapperRadioInfo.RadioInfoShared
- configuration of the radioplIn
- property of the PacketLoss for incoming data packetplOut
- property of the PacketLoss for outgoing data packethostPanelContext
- the context of the panel this node will be drawnfieldContext
- the context of the actual field this node is in (for GPS)simControl
- handle to the simulation managerBattery
- indicate the battery that will power this particular nodeStatsCollector
- the statistical collector tool