org.nlogo.agent
Class Patch3D
java.lang.Object
java.util.Observable
org.nlogo.agent.Agent
org.nlogo.agent.Patch
org.nlogo.agent.Patch3D
- All Implemented Interfaces:
- Comparable, Agent3D, Agent, Patch
public final class Patch3D
- extends Patch
- implements Agent3D
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 |
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 |
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
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