import java.awt.*; // Basic interface for spatial agents. public interface Agent { // Should be called to enact agent behaviour. public void run (); // Should return spatial location x coordinate. public int getX(); // Should return spatial location y coordinate. public int getY(); // Should return the current neighbourhood for the agent. // This might, for example, be the area of their perception. public Polygon getNeighbourhood(); }