java.lang.Objectjava.util.Observable
org.nlogo.agent.Agent
org.nlogo.agent.Patch
org.nlogo.agent.Patch3D
public final class 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.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 |
---|
public static final int VAR_PXCOR3D
public static final int VAR_PYCOR3D
public static final int VAR_PZCOR3D
public static final int VAR_PCOLOR3D
public static final int VAR_PLABEL3D
public static final int VAR_PLABELCOLOR3D
public final int pzcor
public AgentSet patchNeighbors6
public static final int LAST_PREDEFINED_VAR_3D
Method Detail |
---|
public int pzcor()
Patch3D
pzcor
variable
pzcor
in interface Patch3D
public void setPatchVariable(int vn, Object value) throws AgentException
setPatchVariable
in class Patch
AgentException
public void setPatchVariable(int vn, double value) throws AgentException
setPatchVariable
in class Patch
AgentException
public Object getPatchVariable(int vn)
getPatchVariable
in class Patch
public double getPatchVariableDouble(int vn)
getPatchVariableDouble
in class Patch
public Patch getPatchAtOffsets(double dx, double dy) throws AgentException
Patch
getPatchAtOffsets
in interface Patch
getPatchAtOffsets
in class Patch
dx
- the x offset from this patchdy
- the y offset from this patch
AgentException
public Patch3D getPatchAtOffsets(double dx, double dy, double dz) throws AgentException
getPatchAtOffsets
in interface Agent3D
AgentException
public Patch getPatchAtPoint(List<Double> point) throws AgentException
AgentException
public Patch fastGetPatchAt(int x, int y)
fastGetPatchAt
in class Patch
public Turtle sprout(int c, int heading, AgentSet breed)
sprout
in class Patch
public Object pcolor()
Patch
pcolor
variable
pcolor
in interface Patch
pcolor
in class Patch
public void pcolor(double pcolor)
pcolor
in class Patch
public void pcolor(Double boxedColor)
pcolor
in class Patch
public void pcolor(LogoList rgb) throws AgentException
pcolor
in class Patch
AgentException
public void pcolorDoubleUnchecked(Double boxedColor)
pcolorDoubleUnchecked
in class Patch
public Object label()
label
in class Patch
public String labelString()
Patch
label
variable
labelString
in interface Patch
labelString
in class Patch
public void label(Object label)
label
in class Patch
public Object labelColor()
Patch
label-color
variable
labelColor
in interface Patch
labelColor
in class Patch
public void labelColor(double labelColor)
labelColor
in class Patch
public void labelColor(Double labelColor)
labelColor
in class Patch
public AgentSet getNeighbors()
getNeighbors
in class Patch
public AgentSet getNeighbors6()
public String toString()
toString
in class Patch