edu.lmu.liftor
Interface Visitor

All Known Implementing Classes:
Person

public interface Visitor

A visitor visits places.


Method Summary
 void start()
          Start this visitor visiting.
 void youAreHere(Place p)
          A signal that the Visitor has successfully entered a place.
 void youHaveLeft(Place p)
          A signal that the Visitor has left a place.
 

Method Detail

youAreHere

public void youAreHere(Place p)
A signal that the Visitor has successfully entered a place. This method is not called unless the visitor is already at the given place.


youHaveLeft

public void youHaveLeft(Place p)
A signal that the Visitor has left a place. This method is not called unless the visitor is already out of the given place.


start

public void start()
Start this visitor visiting. This method should establish a new visitor's thread and run it. This method must return to the caller. Typically the thread started by this method would be a daemon thread so as to not block the exit of the simulation.