org.nlogo.agent
Class Patch3D

java.lang.Object
  extended by java.util.Observable
      extended by org.nlogo.agent.Agent
          extended by org.nlogo.agent.Patch
              extended by org.nlogo.agent.Patch3D
All Implemented Interfaces:
Comparable<Agent>, Agent3D, Agent, Patch, Patch3D

public final class Patch3D
extends Patch
implements Agent3D, Patch3D


Field Summary
static int LAST_PREDEFINED_VAR_3D
           
 AgentSet patchNeighbors6
           
 int pzcor
           
static int VAR_PCOLOR3D
           
static int VAR_PLABEL3D
           
static int VAR_PLABELCOLOR3D
           
static int VAR_PXCOR3D
           
static int VAR_PYCOR3D
           
static int VAR_PZCOR3D
           
 
Fields inherited from class org.nlogo.agent.Patch
BIT, LAST_PREDEFINED_VAR, NUMBER_PREDEFINED_VARS, patchNeighbors, patchNeighbors4, pxcor, pycor, turtlesHere, VAR_PCOLOR, VAR_PLABEL, VAR_PLABELCOLOR, VAR_PXCOR, VAR_PYCOR
 
Fields inherited from class org.nlogo.agent.Agent
id, variables
 
Method Summary
 Patch fastGetPatchAt(int x, int y)
           
 AgentSet getNeighbors()
           
 AgentSet getNeighbors6()
           
 Patch getPatchAtOffsets(double dx, double dy)
          Returns the patch at dx and dy from this patch
 Patch3D getPatchAtOffsets(double dx, double dy, double dz)
           
 Patch getPatchAtPoint(List<Double> point)
           
 Object getPatchVariable(int vn)
           
 double getPatchVariableDouble(int vn)
           
 Object label()
           
 void label(Object label)
           
 Object labelColor()
          Returns the value of the label-color variable
 void labelColor(double labelColor)
           
 void labelColor(Double labelColor)
           
 String labelString()
          Returns the value of the label variable
 Object pcolor()
          Returns the value of the pcolor variable
 void pcolor(double pcolor)
           
 void pcolor(Double boxedColor)
           
 void pcolor(LogoList rgb)
           
 void pcolorDoubleUnchecked(Double boxedColor)
           
 int pzcor()
          Returns the value of the pzcor variable
 void setPatchVariable(int vn, double value)
           
 void setPatchVariable(int vn, Object value)
           
 Turtle sprout(int c, int heading, AgentSet breed)
           
 String toString()
           
 
Methods inherited from class org.nlogo.agent.Patch
classDisplayName, getAgentBit, getAgentClass, getBreedVariable, getLinkBreedVariable, getLinkVariable, getNeighbors4, getObserverVariable, getPatchEast, getPatchNorth, getPatchNorthEast, getPatchNorthWest, getPatchSouth, getPatchSouthEast, getPatchSouthWest, getPatchWest, getTurtleOrLinkVariable, getTurtleVariable, getVariable, hasLabel, labelColor, pcolor, pcolorDouble, pxcor, pycor, setBreedVariable, setLinkBreedVariable, setLinkVariable, setLinkVariable, setObserverVariable, setTurtleOrLinkVariable, setTurtleVariable, setTurtleVariable, setVariable, shape, size
 
Methods inherited from class org.nlogo.agent.Agent
compareTo, getVariableCount, id, variableConstraint, variableConstraint, world
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nlogo.api.Patch
hasLabel, pxcor, pycor
 
Methods inherited from interface org.nlogo.api.Agent
classDisplayName, getVariable, id, setVariable, shape, size, world
 

Field Detail

VAR_PXCOR3D

public static final int VAR_PXCOR3D
See Also:
Constant Field Values

VAR_PYCOR3D

public static final int VAR_PYCOR3D
See Also:
Constant Field Values

VAR_PZCOR3D

public static final int VAR_PZCOR3D
See Also:
Constant Field Values

VAR_PCOLOR3D

public static final int VAR_PCOLOR3D
See Also:
Constant Field Values

VAR_PLABEL3D

public static final int VAR_PLABEL3D
See Also:
Constant Field Values

VAR_PLABELCOLOR3D

public static final int VAR_PLABELCOLOR3D
See Also:
Constant Field Values

pzcor

public final int pzcor

patchNeighbors6

public AgentSet patchNeighbors6

LAST_PREDEFINED_VAR_3D

public static final int LAST_PREDEFINED_VAR_3D
See Also:
Constant Field Values
Method Detail

pzcor

public int pzcor()
Description copied from interface: Patch3D
Returns the value of the pzcor variable

Specified by:
pzcor in interface Patch3D

setPatchVariable

public void setPatchVariable(int vn,
                             Object value)
                      throws AgentException
Overrides:
setPatchVariable in class Patch
Throws:
AgentException

setPatchVariable

public void setPatchVariable(int vn,
                             double value)
                      throws AgentException
Overrides:
setPatchVariable in class Patch
Throws:
AgentException

getPatchVariable

public Object getPatchVariable(int vn)
Overrides:
getPatchVariable in class Patch

getPatchVariableDouble

public double getPatchVariableDouble(int vn)
Overrides:
getPatchVariableDouble in class Patch

getPatchAtOffsets

public Patch getPatchAtOffsets(double dx,
                               double dy)
                        throws AgentException
Description copied from interface: Patch
Returns the patch at dx and dy from this patch

Specified by:
getPatchAtOffsets in interface Patch
Overrides:
getPatchAtOffsets in class Patch
Parameters:
dx - the x offset from this patch
dy - the y offset from this patch
Throws:
AgentException

getPatchAtOffsets

public Patch3D getPatchAtOffsets(double dx,
                                 double dy,
                                 double dz)
                          throws AgentException
Specified by:
getPatchAtOffsets in interface Agent3D
Throws:
AgentException

getPatchAtPoint

public Patch getPatchAtPoint(List<Double> point)
                      throws AgentException
Throws:
AgentException

fastGetPatchAt

public Patch fastGetPatchAt(int x,
                            int y)
Overrides:
fastGetPatchAt in class Patch

sprout

public Turtle sprout(int c,
                     int heading,
                     AgentSet breed)
Overrides:
sprout in class Patch

pcolor

public Object pcolor()
Description copied from interface: Patch
Returns the value of the pcolor variable

Specified by:
pcolor in interface Patch
Overrides:
pcolor in class Patch

pcolor

public void pcolor(double pcolor)
Overrides:
pcolor in class Patch

pcolor

public void pcolor(Double boxedColor)
Overrides:
pcolor in class Patch

pcolor

public void pcolor(LogoList rgb)
            throws AgentException
Overrides:
pcolor in class Patch
Throws:
AgentException

pcolorDoubleUnchecked

public void pcolorDoubleUnchecked(Double boxedColor)
Overrides:
pcolorDoubleUnchecked in class Patch

label

public Object label()
Overrides:
label in class Patch

labelString

public String labelString()
Description copied from interface: Patch
Returns the value of the label variable

Specified by:
labelString in interface Patch
Overrides:
labelString in class Patch

label

public void label(Object label)
Overrides:
label in class Patch

labelColor

public Object labelColor()
Description copied from interface: Patch
Returns the value of the label-color variable

Specified by:
labelColor in interface Patch
Overrides:
labelColor in class Patch

labelColor

public void labelColor(double labelColor)
Overrides:
labelColor in class Patch

labelColor

public void labelColor(Double labelColor)
Overrides:
labelColor in class Patch

getNeighbors

public AgentSet getNeighbors()
Overrides:
getNeighbors in class Patch

getNeighbors6

public AgentSet getNeighbors6()

toString

public String toString()
Overrides:
toString in class Patch