|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
|---|
void newDestination(DTNHost host,
Coord destination,
double speed)
host - The host that got a new destinationdestination - Coordinates of the destinationspeed - Speed towards that destination
void initialLocation(DTNHost host,
Coord location)
host - The host that got the locationlocation - Coordinates of the location
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||