java.lang.Objectorg.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 Agentpublic Object color()
Turtlecolor variable
color in interface Turtlepublic double heading()
Turtleheading variable
heading in interface Turtlepublic double pitch()
Turtle3Dpitch variable
pitch in interface Turtle3Dpublic double roll()
Turtle3Droll variable
roll in interface Turtle3Dpublic double lineThickness()
Turtleline-thickness
lineThickness in interface Turtlepublic double size()
Agent
size in interface Agentpublic double xcor()
Turtlexcor variable
xcor in interface Turtlepublic double ycor()
Turtleycor variable
ycor in interface Turtlepublic double zcor()
Turtle3Dzcor variable
zcor in interface Turtle3Dpublic boolean hasLabel()
Turtlelabel variable has a non-empty string value
hasLabel in interface Turtlepublic String labelString()
Turtlelabel variable
labelString in interface Turtlepublic Object labelColor()
Turtlelabel-color variable
labelColor in interface Turtlepublic Shape cachedShape()
cachedShape in interface Turtlepublic void cachedShape(Shape shape)
cachedShape in interface Turtlepublic boolean hidden()
Turtlehidden? variable
hidden in interface Turtlepublic long id()
Agent
id in interface Agentpublic AgentSet getBreed()
Turtle
getBreed in interface Turtlepublic int getBreedIndex()
Turtle
getBreedIndex in interface Turtlepublic World world()
Agent
world in interface Agentpublic Protractor protractor()
public Patch getPatchHere()
Turtle
getPatchHere in interface Turtlepublic void jump(double d)
Turtlejump were used
jump in interface Turtled - this amount to jumppublic void heading(double d)
Turtleheading variable
heading in interface Turtled - the new headingpublic String classDisplayName()
Agent
classDisplayName in interface Agentpublic double dx()
Turtle3D
dx in interface Turtle3Dpublic double dy()
Turtle3D
dy in interface Turtle3Dpublic double dz()
Turtle3D
dz in interface Turtle3Dpublic Object getVariable(int vn)
Agent
getVariable in interface Agentvn - the index into the agent variable array
public void setVariable(int vn,
Object value)
Agent
setVariable in interface Agentvn - the index into the agent variable arrayvalue - the new value for the variable