java.lang.Object org.nlogo.agent.TurtleStamp3D
public class TurtleStamp3D
Method Summary | |
---|---|
Shape |
cachedShape()
|
void |
cachedShape(Shape shape)
|
String |
classDisplayName()
Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer) |
Object |
color()
Returns the value of the color variable |
double |
dx()
Returns the x component of the forward vector |
double |
dy()
Returns the y component of the forward vector |
double |
dz()
Returns the z component of the forward vector |
AgentSet |
getBreed()
Returns the breed AgentSet of this turtle, all turtles if the turtle is unbreeded |
int |
getBreedIndex()
Returns the index of this turtle's breed |
Patch |
getPatchHere()
Returns the patch that this turtle is on |
Object |
getVariable(int vn)
Returns the value of the variable in the given position of the agent variable array |
boolean |
hasLabel()
Returns true if the label variable has a non-empty string value |
double |
heading()
Returns the value of the heading variable |
void |
heading(double d)
Sets the value of the heading variable |
boolean |
hidden()
Returns the value of the hidden? |
long |
id()
Returns the id number of this agent. |
void |
jump(double d)
Moves the turtle forward distance as if the command jump were used |
Object |
labelColor()
Returns the value of the label-color variable |
String |
labelString()
Returns the value of the label variable |
double |
lineThickness()
Returns the line-thickness |
double |
pitch()
Returns the value of the pitch variable |
Protractor |
protractor()
|
double |
roll()
Returns the value of the roll variable |
void |
setVariable(int vn,
Object value)
Sets the variable in the position vn of the agent variable array to value |
String |
shape()
Returns the name of the current shape, empty string in the case of patches. |
double |
size()
Returns the size of this agent |
World |
world()
Returns the world object associated with this agent |
double |
xcor()
Returns the value of the xcor variable |
double |
ycor()
Returns the value of the ycor variable |
double |
zcor()
Returns the value of the zcor variable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String shape()
Agent
shape
in interface Agent
public Object color()
Turtle
color
variable
color
in interface Turtle
public double heading()
Turtle
heading
variable
heading
in interface Turtle
public double pitch()
Turtle3D
pitch
variable
pitch
in interface Turtle3D
public double roll()
Turtle3D
roll
variable
roll
in interface Turtle3D
public double lineThickness()
Turtle
line-thickness
lineThickness
in interface Turtle
public double size()
Agent
size
in interface Agent
public double xcor()
Turtle
xcor
variable
xcor
in interface Turtle
public double ycor()
Turtle
ycor
variable
ycor
in interface Turtle
public double zcor()
Turtle3D
zcor
variable
zcor
in interface Turtle3D
public boolean hasLabel()
Turtle
label
variable has a non-empty string value
hasLabel
in interface Turtle
public String labelString()
Turtle
label
variable
labelString
in interface Turtle
public Object labelColor()
Turtle
label-color
variable
labelColor
in interface Turtle
public Shape cachedShape()
cachedShape
in interface Turtle
public void cachedShape(Shape shape)
cachedShape
in interface Turtle
public boolean hidden()
Turtle
hidden?
variable
hidden
in interface Turtle
public long id()
Agent
id
in interface Agent
public AgentSet getBreed()
Turtle
getBreed
in interface Turtle
public int getBreedIndex()
Turtle
getBreedIndex
in interface Turtle
public World world()
Agent
world
in interface Agent
public Protractor protractor()
public Patch getPatchHere()
Turtle
getPatchHere
in interface Turtle
public void jump(double d)
Turtle
jump
were used
jump
in interface Turtle
d
- this amount to jumppublic void heading(double d)
Turtle
heading
variable
heading
in interface Turtle
d
- the new headingpublic String classDisplayName()
Agent
classDisplayName
in interface Agent
public double dx()
Turtle3D
dx
in interface Turtle3D
public double dy()
Turtle3D
dy
in interface Turtle3D
public double dz()
Turtle3D
dz
in interface Turtle3D
public Object getVariable(int vn)
Agent
getVariable
in interface Agent
vn
- the index into the agent variable arraypublic void setVariable(int vn, Object value)
Agent
setVariable
in interface Agent
vn
- the index into the agent variable arrayvalue
- the new value for the variable