sidnet.stack.users.topological_tree_aggregation.driver
Class Driver_TopologicalTreeAggregation

java.lang.Object
  extended by sidnet.stack.users.topological_tree_aggregation.driver.Driver_TopologicalTreeAggregation

public class Driver_TopologicalTreeAggregation
extends java.lang.Object


Field Summary
static Battery battery
           
static double batteryCapacity
           
static double batteryVoltage
           
static int BEZIER
           
static int DEMO
           
static EnergyConsumptionParameters eCostParam
           
static int EXPERIMENT
           
static int fieldLength
           
static int KSHORT
           
static int nodes
           
static int P2P
           
static RadioParameters radioParam
           
static int time
           
static TopologyGUI topologyVisualizationTool
           
 
Constructor Summary
Driver_TopologicalTreeAggregation(int nodes, int fieldWidth, int fieldHeight, int time)
          Creates a new instance of Driver_Assignment
 
Method Summary
static Node createNode(int id, Field field, Placement placement, Mapper protMap, RadioInfo.RadioInfoShared radioInfoShared, PacketLoss plIn, PacketLoss plOut, PanelContext hostPanelContext, LocationContext fieldContext, Battery battery, SimManager simControl, StatsCollector stats)
          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)
           
static void parseAdvancedCommandLineArguments(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEMO

public static int DEMO

EXPERIMENT

public static int EXPERIMENT

BEZIER

public static final int BEZIER
See Also:
Constant Field Values

KSHORT

public static final int KSHORT
See Also:
Constant Field Values

P2P

public static int P2P

nodes

public static int nodes

fieldLength

public static int fieldLength

time

public static int time

topologyVisualizationTool

public static TopologyGUI topologyVisualizationTool

batteryVoltage

public static double batteryVoltage

batteryCapacity

public static double batteryCapacity

battery

public static Battery battery

eCostParam

public static EnergyConsumptionParameters eCostParam

radioParam

public static RadioParameters radioParam
Constructor Detail

Driver_TopologicalTreeAggregation

public Driver_TopologicalTreeAggregation(int nodes,
                                         int fieldWidth,
                                         int fieldHeight,
                                         int time)
Creates a new instance of Driver_Assignment

Method Detail

parseAdvancedCommandLineArguments

public static void parseAdvancedCommandLineArguments(java.lang.String[] args)

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 nodes
length - 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,
                              Battery battery,
                              SimManager simControl,
                              StatsCollector stats)
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 representation
Field - the field properties
Placement - information regarding positions length of field
Mapper - network stack mapper
RadioInfo.RadioInfoShared - configuration of the radio
plIn - property of the PacketLoss for incoming data packet
plOut - property of the PacketLoss for outgoing data packet
hostPanelContext - the context of the panel this node will be drawn
fieldContext - the context of the actual field this node is in (for GPS)
simControl - handle to the simulation manager