core
Interface MovementListener

All Known Implementing Classes:
MovementNs2Report

public interface MovementListener

Interface for classes that want to be informed about node movement.


Method Summary
 void initialLocation(DTNHost host, Coord location)
          Method is called when a host receives its initial location from movement model.
 void newDestination(DTNHost host, Coord destination, double speed)
          Method is called every time a host receives a new destination from its movement model.
 

Method Detail

newDestination

void newDestination(DTNHost host,
                    Coord destination,
                    double speed)
Method is called every time a host receives a new destination from its movement model.

Parameters:
host - The host that got a new destination
destination - Coordinates of the destination
speed - Speed towards that destination

initialLocation

void initialLocation(DTNHost host,
                     Coord location)
Method is called when a host receives its initial location from movement model.

Parameters:
host - The host that got the location
location - Coordinates of the location