/** * --Copyright notice-- * * Copyright (c) School of Geography, University of Leeds. * http://www.geog.leeds.ac.uk/ * This software is licensed under 'The Artistic License' which can be found at * the Open Source Initiative website at... * http://www.opensource.org/licenses/artistic-license.php * Please note that the optional Clause 8 does not apply to this code. * * The Standard Version source code, and associated documentation can be found at... * [online] http://mass.leeds.ac.uk/ * * * --End of Copyright notice-- * */ import java.awt.*; /** * Basic interface for spatial agents. * @version 1.0 * @author Andy Evans */ public interface Agent { /** * Should be called to enact agent behaviour. */ public void run (); /** * Should return spatial location x coordinate. * @return spatial location x coordinate */ public int getX(); /** * Should return spatial location y coordinate. * @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. * @return local neighbourhood as a Polygon. */ public Polygon getNeighbourhood(); }