org.nlogo.agent
Class TurtleStamp3D

java.lang.Object
  extended by org.nlogo.agent.TurtleStamp3D
All Implemented Interfaces:
Agent, Turtle, Turtle3D, TurtleStamp3D

public class TurtleStamp3D
extends Object
implements 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

shape

public String shape()
Description copied from interface: Agent
Returns the name of the current shape, empty string in the case of patches.

Specified by:
shape in interface Agent

color

public Object color()
Description copied from interface: Turtle
Returns the value of the color variable

Specified by:
color in interface Turtle

heading

public double heading()
Description copied from interface: Turtle
Returns the value of the heading variable

Specified by:
heading in interface Turtle

pitch

public double pitch()
Description copied from interface: Turtle3D
Returns the value of the pitch variable

Specified by:
pitch in interface Turtle3D

roll

public double roll()
Description copied from interface: Turtle3D
Returns the value of the roll variable

Specified by:
roll in interface Turtle3D

lineThickness

public double lineThickness()
Description copied from interface: Turtle
Returns the line-thickness

Specified by:
lineThickness in interface Turtle

size

public double size()
Description copied from interface: Agent
Returns the size of this agent

Specified by:
size in interface Agent

xcor

public double xcor()
Description copied from interface: Turtle
Returns the value of the xcor variable

Specified by:
xcor in interface Turtle

ycor

public double ycor()
Description copied from interface: Turtle
Returns the value of the ycor variable

Specified by:
ycor in interface Turtle

zcor

public double zcor()
Description copied from interface: Turtle3D
Returns the value of the zcor variable

Specified by:
zcor in interface Turtle3D

hasLabel

public boolean hasLabel()
Description copied from interface: Turtle
Returns true if the label variable has a non-empty string value

Specified by:
hasLabel in interface Turtle

labelString

public String labelString()
Description copied from interface: Turtle
Returns the value of the label variable

Specified by:
labelString in interface Turtle

labelColor

public Object labelColor()
Description copied from interface: Turtle
Returns the value of the label-color variable

Specified by:
labelColor in interface Turtle

cachedShape

public Shape cachedShape()
Specified by:
cachedShape in interface Turtle

cachedShape

public void cachedShape(Shape shape)
Specified by:
cachedShape in interface Turtle

hidden

public boolean hidden()
Description copied from interface: Turtle
Returns the value of the hidden? variable

Specified by:
hidden in interface Turtle

id

public long id()
Description copied from interface: Agent
Returns the id number of this agent. The who number in the case of a turtle, index into the array in the case of patches

Specified by:
id in interface Agent

getBreed

public AgentSet getBreed()
Description copied from interface: Turtle
Returns the breed AgentSet of this turtle, all turtles if the turtle is unbreeded

Specified by:
getBreed in interface Turtle

getBreedIndex

public int getBreedIndex()
Description copied from interface: Turtle
Returns the index of this turtle's breed

Specified by:
getBreedIndex in interface Turtle

world

public World world()
Description copied from interface: Agent
Returns the world object associated with this agent

Specified by:
world in interface Agent

protractor

public Protractor protractor()

getPatchHere

public Patch getPatchHere()
Description copied from interface: Turtle
Returns the patch that this turtle is on

Specified by:
getPatchHere in interface Turtle

jump

public void jump(double d)
Description copied from interface: Turtle
Moves the turtle forward distance as if the command jump were used

Specified by:
jump in interface Turtle
Parameters:
d - this amount to jump

heading

public void heading(double d)
Description copied from interface: Turtle
Sets the value of the heading variable

Specified by:
heading in interface Turtle
Parameters:
d - the new heading

classDisplayName

public String classDisplayName()
Description copied from interface: Agent
Returns a displayable name of this type of agent (Turtle, Link, Patch, Observer)

Specified by:
classDisplayName in interface Agent

dx

public double dx()
Description copied from interface: Turtle3D
Returns the x component of the forward vector

Specified by:
dx in interface Turtle3D

dy

public double dy()
Description copied from interface: Turtle3D
Returns the y component of the forward vector

Specified by:
dy in interface Turtle3D

dz

public double dz()
Description copied from interface: Turtle3D
Returns the z component of the forward vector

Specified by:
dz in interface Turtle3D

getVariable

public Object getVariable(int vn)
Description copied from interface: Agent
Returns the value of the variable in the given position of the agent variable array

Specified by:
getVariable in interface Agent
Parameters:
vn - the index into the agent variable array

setVariable

public void setVariable(int vn,
                        Object value)
Description copied from interface: Agent
Sets the variable in the position vn of the agent variable array to value

Specified by:
setVariable in interface Agent
Parameters:
vn - the index into the agent variable array
value - the new value for the variable