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, Agent3D, Agent, Patch

public final class Patch3D
extends Patch
implements Agent3D


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)
           
static List getImplicitVariables()
           
 AgentSet getNeighbors()
           
 AgentSet getNeighbors6()
           
 Patch getPatchAtOffsets(double dx, double dy)
           
 Patch3D getPatchAtOffsets(double dx, double dy, double dz)
           
 Patch getPatchAtPoint(ArrayList point)
           
 Object getPatchVariable(int vn)
           
 double getPatchVariableDouble(int vn)
           
static boolean isDoubleVariable(int vn)
           
static boolean isSpecialVariable(int vn)
           
 Object label()
           
 void label(Object label)
           
 Object labelColor()
           
 void labelColor(double labelColor)
           
 void labelColor(Double labelColor)
           
 String labelString()
           
 Object pcolor()
           
 void pcolor(double pcolor)
           
 void pcolor(Double boxedColor)
           
 void pcolor(LogoList rgb)
           
 void pcolorDoubleUnchecked(Double boxedColor)
           
 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, getLinkVariableDouble, getNeighbors4, getObserverVariable, getPatchEast, getPatchNorth, getPatchNorthEast, getPatchNorthWest, getPatchSouth, getPatchSouthEast, getPatchSouthWest, getPatchWest, getTurtleOrLinkVariable, getTurtleVariable, getTurtleVariableDouble, getVariable, hasLabel, labelColor, pcolor, pcolorDouble, setBreedVariable, setLinkBreedVariable, setLinkVariable, setLinkVariable, setObserverVariable, setTurtleOrLinkVariable, setTurtleVariable, setTurtleVariable, setVariable
 
Methods inherited from class org.nlogo.agent.Agent
compareTo, getVariableCount, 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
 

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

getImplicitVariables

public static List getImplicitVariables()

isDoubleVariable

public static boolean isDoubleVariable(int vn)

isSpecialVariable

public static boolean isSpecialVariable(int vn)

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
Overrides:
getPatchAtOffsets in class 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(ArrayList 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()
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()
Overrides:
labelString in class Patch

label

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

labelColor

public Object labelColor()
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