movement
Interface SwitchableMovement

All Known Subinterfaces:
TransportMovement
All Known Implementing Classes:
BusMovement, BusTravellerMovement, CarMovement, EveningActivityMovement, HomeActivityMovement, MapBasedMovement, MapRouteMovement, OfficeActivityMovement, RandomWalk, ShortestPathMapBasedMovement

public interface SwitchableMovement

Movement models to be used by ExtendedMovementModels should implement this interface


Method Summary
 Coord getLastLocation()
          Get the last location the getPath() of this movement model has returned
 boolean isReady()
          Checks if the movement model is finished doing its task and it's time to switch to the next movement model.
 void setLocation(Coord lastWaypoint)
          Tell the movement model what its current location is
 

Method Detail

setLocation

void setLocation(Coord lastWaypoint)
Tell the movement model what its current location is

Parameters:
lastWaypoint -

getLastLocation

Coord getLastLocation()
Get the last location the getPath() of this movement model has returned

Returns:
the last location

isReady

boolean isReady()
Checks if the movement model is finished doing its task and it's time to switch to the next movement model. The method should be called between getPath() calls.

Returns:
true if ready