NPTLab
Class TraceNodeSet

java.lang.Object
  extended by NPTLab.TraceNodeSet

public class TraceNodeSet
extends java.lang.Object

Class that contains a map of all the nodes with their mobility trace.

Author:
Andrea Campanella, NPTLab, Public university of Milan, 2014

Field Summary
static java.util.Map<DTNHost,Trace> TraceNodeMap
          List of all the Hosts with their mobility traces
 
Constructor Summary
TraceNodeSet()
           
 
Method Summary
static void add(DTNHost host, Trace NodeTrace)
          Add to the complete set an Host and his mobility Trace.
static Trace getRandomTrace()
          Picks a random trace from the set
static java.util.Map<DTNHost,Trace> returnTraceNodeMap()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TraceNodeMap

public static java.util.Map<DTNHost,Trace> TraceNodeMap
List of all the Hosts with their mobility traces

Constructor Detail

TraceNodeSet

public TraceNodeSet()
Method Detail

add

public static void add(DTNHost host,
                       Trace NodeTrace)
Add to the complete set an Host and his mobility Trace.

Parameters:
host - DTNHost the host
NodeTrace - Trace the mobility trace of the host

getRandomTrace

public static Trace getRandomTrace()
Picks a random trace from the set

Returns:
Trace

returnTraceNodeMap

public static java.util.Map<DTNHost,Trace> returnTraceNodeMap()