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()
Patch3Dpzcor variable
pzcor in interface Patch3D
public void setPatchVariable(int vn,
Object value)
throws AgentException
setPatchVariable in class PatchAgentException
public void setPatchVariable(int vn,
double value)
throws AgentException
setPatchVariable in class PatchAgentExceptionpublic Object getPatchVariable(int vn)
getPatchVariable in class Patchpublic double getPatchVariableDouble(int vn)
getPatchVariableDouble in class Patch
public Patch getPatchAtOffsets(double dx,
double dy)
throws AgentException
Patch
getPatchAtOffsets in interface PatchgetPatchAtOffsets in class Patchdx - 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 Agent3DAgentException
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 Patchpublic Object pcolor()
Patchpcolor variable
pcolor in interface Patchpcolor in class Patchpublic void pcolor(double pcolor)
pcolor in class Patchpublic void pcolor(Double boxedColor)
pcolor in class Patch
public void pcolor(LogoList rgb)
throws AgentException
pcolor in class PatchAgentExceptionpublic void pcolorDoubleUnchecked(Double boxedColor)
pcolorDoubleUnchecked in class Patchpublic Object label()
label in class Patchpublic String labelString()
Patchlabel variable
labelString in interface PatchlabelString in class Patchpublic void label(Object label)
label in class Patchpublic Object labelColor()
Patchlabel-color variable
labelColor in interface PatchlabelColor in class Patchpublic void labelColor(double labelColor)
labelColor in class Patchpublic void labelColor(Double labelColor)
labelColor in class Patchpublic AgentSet getNeighbors()
getNeighbors in class Patchpublic AgentSet getNeighbors6()
public String toString()
toString in class Patch