org.nlogo.api
Interface Patch

All Superinterfaces:
Agent
All Known Subinterfaces:
Patch3D
All Known Implementing Classes:
Patch, Patch3D

public interface Patch
extends Agent

Interface provides access to NetLogo patches.


Method Summary
 Patch getPatchAtOffsets(double dx, double dy)
          Returns the patch at dx and dy from this patch
 boolean hasLabel()
          Returns true if the label variable contains something other than an empty string
 Object labelColor()
          Returns the value of the label-color variable
 String labelString()
          Returns the value of the label variable
 Object pcolor()
          Returns the value of the pcolor variable
 int pxcor()
          Returns the value of the pxcor variable
 int pycor()
          Returns the value of the pycor variable
 
Methods inherited from interface org.nlogo.api.Agent
classDisplayName, getVariable, id, setVariable, shape, size, world
 

Method Detail

pxcor

int pxcor()
Returns the value of the pxcor variable


pycor

int pycor()
Returns the value of the pycor variable


labelString

String labelString()
Returns the value of the label variable


labelColor

Object labelColor()
Returns the value of the label-color variable


hasLabel

boolean hasLabel()
Returns true if the label variable contains something other than an empty string


pcolor

Object pcolor()
Returns the value of the pcolor variable


getPatchAtOffsets

Patch getPatchAtOffsets(double dx,
                        double dy)
                        throws AgentException
Returns the patch at dx and dy from this patch

Parameters:
dx - the x offset from this patch
dy - the y offset from this patch
Throws:
AgentException