sidnet.stack.users.marco_project.node_centric.driver
Class Driver_ElectrostaticRouting

java.lang.Object
  extended by sidnet.stack.users.marco_project.node_centric.driver.Driver_ElectrostaticRouting

public class Driver_ElectrostaticRouting
extends java.lang.Object


Field Summary
static Battery battery
          Define the battery-type for the nodes 75mAh should give enough juice for 24-48h
static EnergyConsumptionParameters eCostParam
          Define the power-consumption characteristics of the nodes, based on Mica Mote MPR500CA
static ExperimentDataImpl experimentData
           
static int fieldLength
           
static int nodes
           
static int time
           
static TopologyGUI topologyGUI
           
 
Constructor Summary
Driver_ElectrostaticRouting()
           
 
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, StatsCollector stats, TopologyGUI topologyGUI)
          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)
          This is the entry point in the program
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topologyGUI

public static TopologyGUI topologyGUI

nodes

public static int nodes

fieldLength

public static int fieldLength

time

public static int time

battery

public static Battery battery
Define the battery-type for the nodes 75mAh should give enough juice for 24-48h


experimentData

public static ExperimentDataImpl experimentData

eCostParam

public static EnergyConsumptionParameters eCostParam
Define the power-consumption characteristics of the nodes, based on Mica Mote MPR500CA

Constructor Detail

Driver_ElectrostaticRouting

public Driver_ElectrostaticRouting()
Method Detail

main

public static void main(java.lang.String[] args)
This is the entry point in the program


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,
                              SimManager simControl,
                              StatsCollector stats,
                              TopologyGUI topologyGUI)
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
Battery - indicate the battery that will power this particular node
StatsCollector - the statistical collector tool