Uses of Class
core.DTNHost

Packages that use DTNHost
core Contains core classes and interfaces of the simulator. 
NPTLab   
report Contains all the report classes. 
routing Contains all the router classes who decide how to handle the messages. 
 

Uses of DTNHost in core
 

Methods in core with parameters of type DTNHost
 int DTNHost.compareTo(DTNHost h)
          Compares two DTNHosts by their addresses.
 void DTNHost.connect(DTNHost h)
          for tests only --- do not use!!!
 boolean DTNHost.equals(DTNHost otherHost)
          Checks if a host is the same as this host by comparing the object reference
 void DTNHost.forceConnection(DTNHost anotherHost, java.lang.String interfaceId, boolean up)
          Force a connection event
 void DTNHost.messageAborted(java.lang.String id, DTNHost from, int bytesRemaining)
          Informs the host that a message transfer was aborted.
 void DTNHost.messageTransferred(java.lang.String id, DTNHost from)
          Informs the host that a message was successfully transferred.
 int DTNHost.receiveMessage(core.Message m, DTNHost from)
          Start receiving a message from another host
 void DTNHost.sendMessage(java.lang.String id, DTNHost to)
          Sends a message from this host to another host
 

Uses of DTNHost in NPTLab
 

Fields in NPTLab with type parameters of type DTNHost
static java.util.Map<DTNHost,Trace> TraceNodeSet.TraceNodeMap
          List of all the Hosts with their mobility traces
 

Methods in NPTLab that return types with arguments of type DTNHost
 java.util.Map<DTNHost,DTNHostWrapper> DTNHWMap.returnMap()
          Returns the Map of the singleton instance of the DTNHWmap
static java.util.Map<DTNHost,Trace> TraceNodeSet.returnTraceNodeMap()
           
 

Methods in NPTLab with parameters of type DTNHost
 void DTNHWMap.add(DTNHost h, core.Coord destination, int day, double time)
          Adds to the map an entrance of Host and a DTNHostWrapper from the DTNHWMAP or a new one if it didn't exist.
static void TraceNodeSet.add(DTNHost host, Trace NodeTrace)
          Add to the complete set an Host and his mobility Trace.
static boolean CompareTraces.compareTwoTracesMessage(Trace userTrace1, Trace userTrace2, int SimulationDays, double MessageOwnerSimilarity, core.Message m, DTNHost h)
          Computes the similarty between two given traces.
static void CompareTraces.compareTwoTracesNodes(Trace userTrace1, Trace userTrace2, int SimulationDays, DTNHost h1, DTNHost h2)
           
static double CompareTraces.getSimilarity(core.Message m, DTNHost h)
          Returns the last computed similarity
 DTNHostWrapper DTNHWMap.returnDTNHostWrapper(DTNHost h)
          Returns the DTNHostWrapper for the given DTNHost h
static void MessageWrapper.setDestNode(DTNHost host)
           
 

Constructors in NPTLab with parameters of type DTNHost
DTNHostWrapper(DTNHost h)
          map containing all the similarities beetween this node and the messages he encountered
 

Uses of DTNHost in report
 

Methods in report with parameters of type DTNHost
 void ConnectivityListReport.hostsConnected(DTNHost host1, DTNHost host2)
           
 void ConnectivityListReport.hostsDisconnected(DTNHost host1, DTNHost host2)
           
 void CreateNodeTrace.initialLocation(DTNHost host, core.Coord location)
          When the node is assigned it's first location this method saves in the DTNHWMap the first location visited the day and the time.
 void DeliveredMessagesProfileCastReport.messageDeleted(core.Message m, DTNHost where, boolean dropped)
           
 void MessageStatsProfileCastReport.messageDeleted(core.Message m, DTNHost where, boolean dropped)
           
 void DeliveredMessagesProfileCastReport.messageTransferAborted(core.Message m, DTNHost from, DTNHost to)
           
 void MessageStatsProfileCastReport.messageTransferAborted(core.Message m, DTNHost from, DTNHost to)
           
 void DeliveredMessagesProfileCastReport.messageTransferred(core.Message m, DTNHost from, DTNHost to, boolean firstDelivery)
           
 void MessageStatsProfileCastReport.messageTransferred(core.Message m, DTNHost from, DTNHost to, boolean finalTarget)
           
 void DeliveredMessagesProfileCastReport.messageTransferStarted(core.Message m, DTNHost from, DTNHost to)
           
 void MessageStatsProfileCastReport.messageTransferStarted(core.Message m, DTNHost from, DTNHost to)
           
 void CreateNodeTrace.newDestination(DTNHost host, core.Coord destination, double speed)
          When the method is called it saves in the DTNHWMap the destination visited, the day and the time.
 

Uses of DTNHost in routing
 

Methods in routing with parameters of type DTNHost
 core.Message ProfileCastRouter.messageTransferred(java.lang.String id, DTNHost from)