NPTLab
Class TraceNodeSet
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraceNodeMap
public static java.util.Map<DTNHost,Trace> TraceNodeMap
- List of all the Hosts with their mobility traces
TraceNodeSet
public TraceNodeSet()
add
public static void add(DTNHost host,
Trace NodeTrace)
- Add to the complete set an Host and his mobility Trace.
- Parameters:
host
- DTNHost the hostNodeTrace
- 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()