|
API V2.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectrepast.simphony.relogo.AbstractTurtle
public abstract class AbstractTurtle
| Field Summary | |
|---|---|
boolean |
hiddenQ
|
| Method Summary | |
|---|---|
void
|
addToFixedLeaves(Turtle t)
|
void
|
addToFreeLeaves(Turtle o)
|
AgentSet
|
allLinks()
{@inheritDoc} |
AgentSet
|
allMyInLinks()
{@inheritDoc} |
AgentSet
|
allMyLinks()
{@inheritDoc} |
AgentSet
|
allMyOutLinks()
{@inheritDoc} |
boolean
|
allQ(Collection a, Closure reporter)
Queries if all agents in a collection are true for a boolean closure. |
void
|
ask(AgentSet a, Closure askBlock)
Executes a set of commands for an agentset. |
void
|
ask(Collection c, Closure askBlock)
Executes a set of commands for a collection of agents. |
void
|
ask(Turtle t, Closure askBlock)
Executes a set of commands for a turtle. |
void
|
ask(Patch p, Closure askBlock)
Executes a set of commands for a patch. |
void
|
ask(Link l, Closure askBlock)
Executes a set of commands for a link. |
void
|
askCollection(Collection l, Closure cl)
|
void
|
askTurtle(Closure cl)
@exclude |
void
|
back(Number num)
Steps turtle backwards by a distance. |
void
|
bk(Number num)
Steps turtle backwards by a distance. |
boolean
|
canMoveQ(Number nDist)
Queries if turtle can move a distance. |
int
|
compareTo(Turtle t)
|
Link
|
createLinkFrom(Turtle t)
Makes a directed link from a turtle to the caller. |
Link
|
createLinkFrom(Turtle t, Closure closure)
Makes a directed link from a turtle to the caller then executes a set of commands on the created link. |
Link
|
createLinkTo(Turtle t)
Makes a directed link from the caller to a turtle. |
Link
|
createLinkTo(Turtle t, Closure closure)
Makes a directed link from the caller to a turtle then executes a set of commands on the created link. |
Link
|
createLinkWith(Turtle t)
Makes a undirected link between the caller and a turtle. |
Link
|
createLinkWith(Turtle t, Closure closure)
Makes an undirected link between the caller and a turtle then executes a set of commands on the created link. |
AgentSet
|
createLinksFrom(Collection a)
Makes directed links from a collection of agents to the caller. |
AgentSet
|
createLinksFrom(AgentSet a, Closure closure)
Makes directed links from an agentset to the caller then executes a set of commands on the created links. |
AgentSet
|
createLinksFrom(Collection a, Closure closure)
Makes directed links from a collection of agents to the caller then executes a set of commands on the created links. |
AgentSet
|
createLinksTo(Collection a)
Makes directed links from the caller to a collection of agents. |
AgentSet
|
createLinksTo(AgentSet a, Closure closure)
Makes directed links from the caller to an agentset then executes a set of commands on the created links. |
AgentSet
|
createLinksTo(Collection a, Closure closure)
Makes directed links from the caller to a collection of agents then executes a set of commands on the created links. |
AgentSet
|
createLinksWith(Collection a)
Makes undirected links between the caller and a collection of agents. |
AgentSet
|
createLinksWith(AgentSet a, Closure closure)
Makes undirected links between the caller and an agentset then executes a set of commands on the created links. |
AgentSet
|
createLinksWith(Collection a, Closure closure)
Makes undirected links between the caller and a collection of agents then executes a set of commands on the created links. |
void
|
die()
Removes the turtle. |
double
|
distance(Turtle t)
Returns the distance from the caller to a turtle. |
double
|
distance(Patch p)
Returns the distance from the caller to a patch. |
double
|
distancexy(Number nX, Number nY)
Returns the distance from the caller to a point. |
double
|
dx()
Returns the turtleŐs x increment for one step. |
double
|
dy()
Returns the turtleŐs y increment for one step. |
void
|
face(Turtle t)
Faces the caller towards a turtle. |
void
|
face(Patch p)
Faces the caller towards a patch. |
void
|
facexy(Number nX, Number nY)
Faces the caller towards a point. |
void
|
fd(Number num)
Steps turtle forward by a distance. |
void
|
fileShow(Object value)
Prints value with agent identifier to current file with a newline. |
boolean
|
fixedLeavesContains(Turtle t)
|
void
|
forward(Number num)
Steps turtle forward by a distance. |
boolean
|
freeLeavesContains(Object o)
|
double
|
getColor()
Returns the color of a turtle. |
double
|
getHeading()
Returns the heading of the turtle. |
double
|
getHeadingInRads()
|
Object
|
getLabel()
Returns the label. |
double
|
getLabelColor()
Returns the label color for a turtle or link. |
int
|
getMaxPxcor()
Returns the maximum x coordinate for all patches. |
int
|
getMaxPycor()
Returns the maximum y coordinate for all patches. |
int
|
getMinPxcor()
Returns the minimum x coordinate for all patches. |
int
|
getMinPycor()
Returns the minimum y coordinate for all patches. |
Observer
|
getMyObserver()
|
TurtleFactory
|
getMyTurtleFactory()
|
double
|
getPcolor()
Returns the color of patch here. |
int
|
getPenMode()
Returns the pen setting of a turtle. |
int
|
getPenSize()
Returns the pen width of a turtle. |
int
|
getPxcor()
Returns the x coordinate of patch here. |
int
|
getPycor()
Returns the y coordinate of patch here. |
String
|
getShape()
Returns the shape of a turtle. |
double
|
getSize()
Returns the size of a turtle. |
NdPoint
|
getTurtleLocation()
|
String
|
getTurtleType()
|
int
|
getWho()
Returns the id number of a turtle. |
static int
|
getWhoCounter()
|
double
|
getXcor()
Returns the x coordinate of a turtle. |
double
|
getYcor()
Returns the y coordinate of a turtle. |
AgentSet
|
hatch(Number number)
Makes a number of new turtles. |
AgentSet
|
hatch(Number number, Closure closure)
Makes a number of new turtles and then executes a set of commands on the created turtles. |
AgentSet
|
hatch(Number number, Closure closure, String childType)
Makes a number of new turtles of a specific type and then executes a set of commands on the created turtles. |
AgentSet
|
hatch(Number number, Closure closure, Class childType)
Makes a number of new turtles of a specific type and then executes a set of commands on the created turtles. |
void
|
hideTurtle()
Turtle appears hidden. |
void
|
home()
Turtle goes to (0,0). |
void
|
ht()
Turtle appears hidden. |
AgentSet
|
inCone(Collection a, Number num, Number angle)
Returns an agentset within a distance and heading cone of the caller. |
Link
|
inLinkFrom(Turtle t)
Returns the directed link from a turtle to the caller. |
boolean
|
inLinkNeighborQ(Turtle t)
Queries if there is a directed link from a turtle to the caller. |
AgentSet
|
inLinkNeighbors()
Returns the agentset with directed links to the caller. |
AgentSet
|
inRadius(Collection a, Number num)
Returns an agentset within a distance of the caller. |
boolean
|
isHiddenQ()
Queries if caller is hidden. |
boolean
|
isShapeChanged()
|
boolean
|
isVisibilityChanged()
|
void
|
jump(Number num)
Moves turtle forward num units. |
void
|
left(Number num)
Rotates the turtle to the left num degrees. |
Link
|
link(Number oneEnd, Number otherEnd)
Returns the link between two turtles. |
Link
|
link(Turtle oneEnd, Turtle otherEnd)
Returns the link between two turtles. |
boolean
|
linkNeighborQ(Turtle t)
Reports true if there is an undirected link connecting t and the caller. |
AgentSet
|
linkNeighbors()
Reports the agentset of all turtles found at the other end of undirected links connected to the calling turtle. |
Link
|
linkWith(Turtle t)
Report the link between t and the caller. |
AgentSet
|
links()
{@inheritDoc} |
void
|
lt(Number num)
Rotates the turtle to the left num degrees. |
AgentSet
|
maxNOf(int number, Collection a, Closure reporter)
Returns an agentset consisting of a specified number of agents which have the greatest value when operated on by a set of commands. |
ReLogoAgent
|
maxOneOf(Collection a, Closure reporter)
Returns the ReLogoAgent with the largest value when operated on by a set of commands. |
AgentSet
|
minNOf(int number, Collection a, Closure reporter)
Returns an agentset consisting of a specified number of agents which have the lowest value when operated on by a set of commands. |
ReLogoAgent
|
minOneOf(Collection a, Closure reporter)
Returns the ReLogoAgent with the smallest value when operated on by a set of commands. |
void
|
move(Number nNumber)
|
void
|
moveTo(Turtle t)
Moves a turtle to the same location as turtle t. |
void
|
moveTo(Patch p)
Moves a turtle to the same location as patch p. |
void
|
mv(Number nNumber)
|
AgentSet
|
myInLinks()
{@inheritDoc} |
AgentSet
|
myLinks()
{@inheritDoc} |
AgentSet
|
myOutLinks()
{@inheritDoc} |
Object
|
myself()
The agent that initiated the asking. |
AgentSet
|
neighbors()
{@inheritDoc} |
AgentSet
|
neighbors(int extent)
{@inheritDoc} |
AgentSet
|
neighbors(int extentX, int extentY)
{@inheritDoc} |
AgentSet
|
neighbors4()
{@inheritDoc} |
AgentSet
|
neighbors4(int extent)
{@inheritDoc} |
AgentSet
|
neighbors4(int extentX, int extentY)
{@inheritDoc} |
void
|
notifySubscribers()
|
AgentSet
|
other(Collection a)
Returns an agentset minus the caller. |
Turtle
|
otherEnd()
Returns the turtle opposite the asking link. |
boolean
|
outLinkNeighborQ(Turtle t)
Queries if there is a directed link from the caller to the turtle. |
AgentSet
|
outLinkNeighbors()
Returns the agentset of the callerŐs out link neighbor turtles. |
Link
|
outLinkTo(Turtle t)
Returns the callerŐs directed link to a turtle. |
Patch
|
patch(Number nX, Number nY)
Returns the patch containing a point. |
Patch
|
patchAhead(Number distance)
Returns the patch that is at a distance ahead of a turtle. |
Patch
|
patchAt(Number nX, Number nY)
Returns the patch at a direction (nX, nY) from the caller. |
Patch
|
patchAtHeadingAndDistance(Number nHeading, Number nDistance)
Returns the patch that is at a direction and distance from the caller. |
Patch
|
patchHere()
Returns the patch where the turtle is located. |
Patch
|
patchLeftAndAhead(Number nAngle, Number nDistance)
Returns the patch that is at a distance and degrees left from the caller. |
Patch
|
patchRightAndAhead(Number nAngle, Number nDistance)
Returns the patch that is at a distance and degrees right from the caller. |
AgentSet
|
patches()
Returns an agentset containing all patches. |
void
|
pd()
Sets the turtleŐs pen to draw lines. |
void
|
pe()
Does nothing, included for translation compatibility. |
void
|
penDown()
Sets the turtleŐs pen to draw lines. |
void
|
penErase()
Does nothing, included for translation compatibility. |
void
|
penUp()
Sets the turtleŐs pen to stop drawing lines. |
void
|
pu()
Sets the turtleŐs pen to stop drawing lines. |
int
|
randomPxcor()
Returns a random x coordinate for patches. |
int
|
randomPycor()
Returns a random y coordinate for patches. |
double
|
randomXcor()
Returns a random x coordinate for turtles. |
double
|
randomYcor()
Returns a random y coordinate for turtles. |
void
|
registerSubscriber(Turtle t)
|
void
|
removeFromFixedLeaves(OutOfContextSubject t)
|
void
|
removeFromFreeLeaves(Turtle o)
|
void
|
removeSubscriber(Turtle t)
|
void
|
right(Number num)
Rotates the turtle to the right num degrees. |
void
|
rt(Number num)
Rotates the turtle to the right num degrees. |
void
|
run(String string)
Interprets a string as commands then runs the commands. |
Object
|
runresult(String string)
Interprets a string as a command then returns the result. |
Turtle
|
self()
Returns this turtle, patch, or link. |
void
|
setBaseTurtleProperties(Observer observer, TurtleFactory turtleFactory, String turtleShape, double heading, double color, NdPoint loc)
|
void
|
setColor(Number color)
Sets the color of a turtle to the value color. |
void
|
setHeading(Number nNum)
Sets the heading of the turtle to nNum. |
void
|
setHiddenQ(boolean hidden)
Sets turtle visibility. |
void
|
setLabel(Object label)
Sets the label. |
void
|
setLabelColor(Number labelColor)
Sets the label color for a turtle to labelColor. |
void
|
setMyObserver(Observer myObserver)
|
void
|
setMyTurtleFactory(TurtleFactory myTurtleFactory)
|
void
|
setMyself(Object o)
Sets the agent that initiated the asking to the value o. |
void
|
setPcolor(Number color)
Sets the color of patch here to pcolor. |
void
|
setPenMode(Number penMode)
Sets the pen setting of a turtle to penMode. |
void
|
setPenSize(Number penSize)
Sets the pen width of a turtle to penSize. |
void
|
setShape(String shape)
Sets the shape of a turtle to shape. |
void
|
setShapeChanged(boolean shapeChanged)
|
void
|
setSize(Number size)
Sets the size of a turtle to size. |
void
|
setUserDefinedVariables(Turtle parent)
|
void
|
setVisibilityChanged(boolean visibilityChanged)
|
static void
|
setWhoCounter(Number whoCounter)
|
void
|
setXcor(Number number)
Sets the x coordinate of a turtle to number. |
void
|
setYcor(Number number)
Sets the y coordinate of a turtle to number. |
void
|
setxy(Number nX, Number nY)
Sets the x-y coordinates of a turtle to (nX, nY). |
void
|
show(Object value)
Prints value with agent identifier to the console. |
void
|
showTurtle()
Makes turtle visible. |
void
|
st()
Makes turtle visible. |
Stop
|
stop()
Stops a turtle executing within a command closure. |
String
|
toString()
This method provides a human-readable name for the agent. |
double
|
towards(Turtle t)
Returns the direction to turtle t. |
double
|
towards(Patch p)
Returns the direction to patch p. |
double
|
towardsxy(Number nX, Number nY)
Returns the direction from a turtle or patch to a point. |
Turtle
|
turtle(Number number)
Returns the turtle of the given number. |
AgentSet
|
turtles()
Returns an agentset containing all turtles. |
AgentSet
|
turtlesAt(Number nX, Number nY)
Returns the agentset on the patch at the direction (ndx, ndy) from the caller. |
AgentSet
|
turtlesHere()
Returns an agentset of turtles from the patch of the caller. |
AgentSet
|
turtlesOn(Patch p)
Returns an agentset of turtles on a given patch. |
AgentSet
|
turtlesOn(Turtle t)
Returns an agentset of turtles on the same patch as a turtle. |
AgentSet
|
turtlesOn(Collection a)
Returns an agentset of turtles on the patches in a collection or on the patches that a collection of turtles are. |
void
|
update(Turtle o)
|
void
|
watchMe()
Does nothing, included for translation compatibility. |
int
|
worldHeight()
Returns the height of the world. |
int
|
worldWidth()
Returns the width of the world. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
public boolean hiddenQ
| Method Detail |
|---|
public void addToFixedLeaves(Turtle t)
public void addToFreeLeaves(Turtle o)
public AgentSet allLinks()
public AgentSet allMyInLinks()
public AgentSet allMyLinks()
public AgentSet allMyOutLinks()
public boolean allQ(Collection a, Closure reporter)
a
- a collection of ReLogoAgentsreporter
- a boolean closure
public void ask(AgentSet a, Closure askBlock)
a
- an agentsetaskBlock
- a set of commands
public void ask(Collection c, Closure askBlock)
c
- a collection of agentsaskBlock
- a set of commands
public void ask(Turtle t, Closure askBlock)
t
- a turtleaskBlock
- a set of commands
public void ask(Patch p, Closure askBlock)
p
- a patchaskBlock
- a set of commands
public void ask(Link l, Closure askBlock)
l
- a linkaskBlock
- a set of commands
public void askCollection(Collection l, Closure cl)
public void askTurtle(Closure cl)
public void back(Number num)
num
- a distance
public void bk(Number num)
num
- a distance
public boolean canMoveQ(Number nDist)
nDist
- a distance
public int compareTo(Turtle t)
public Link createLinkFrom(Turtle t)
t
- a turtle
public Link createLinkFrom(Turtle t, Closure closure)
t
- a turtleclosure
- a set of commands
public Link createLinkTo(Turtle t)
t
- a turtle
public Link createLinkTo(Turtle t, Closure closure)
t
- a turtleclosure
- a set of commands
public Link createLinkWith(Turtle t)
t
- a turtle
public Link createLinkWith(Turtle t, Closure closure)
t
- a turtleclosure
- a set of commands
public AgentSet createLinksFrom(Collection a)
a
- a collection of agents
public AgentSet createLinksFrom(AgentSet a, Closure closure)
a
- an agentsetclosure
- a set of commands
public AgentSet createLinksFrom(Collection a, Closure closure)
a
- a collection of agentsclosure
- a set of commands
public AgentSet createLinksTo(Collection a)
a
- a collection of agents
public AgentSet createLinksTo(AgentSet a, Closure closure)
a
- an agentsetclosure
- a set of commands
public AgentSet createLinksTo(Collection a, Closure closure)
a
- a collection of agentsclosure
- a set of commands
public AgentSet createLinksWith(Collection a)
a
- an collection of agents
public AgentSet createLinksWith(AgentSet a, Closure closure)
a
- an agentsetclosure
- a set of commands
public AgentSet createLinksWith(Collection a, Closure closure)
a
- a collection of agentsclosure
- a set of commands
public void die()
public double distance(Turtle t)
t
- a turtle
public double distance(Patch p)
p
- a patch
public double distancexy(Number nX, Number nY)
nx
- a numberny
- a number
public double dx()
public double dy()
public void face(Turtle t)
t
- a turtle
public void face(Patch p)
p
- a patch
public void facexy(Number nX, Number nY)
nX
- x coordinatenY
- y coordinate
public void fd(Number num)
num
- a distance
public void fileShow(Object value)
value
- any object
public boolean fixedLeavesContains(Turtle t)
public void forward(Number num)
num
- a distance
public boolean freeLeavesContains(Object o)
public double getColor()
public double getHeading()
public double getHeadingInRads()
public Object getLabel()
public double getLabelColor()
public int getMaxPxcor()
public int getMaxPycor()
public int getMinPxcor()
public int getMinPycor()
public Observer getMyObserver()
public TurtleFactory getMyTurtleFactory()
public double getPcolor()
public int getPenMode()
public int getPenSize()
public int getPxcor()
public int getPycor()
public String getShape()
public double getSize()
public NdPoint getTurtleLocation()
public String getTurtleType()
public int getWho()
public static int getWhoCounter()
public double getXcor()
public double getYcor()
public AgentSet hatch(Number number)
number
- a number
public AgentSet hatch(Number number, Closure closure)
number
- a numberclosure
- a set of commands
public AgentSet hatch(Number number, Closure closure, String childType)
number
- a numberclosure
- a set of commandschildType
- a string
public AgentSet hatch(Number number, Closure closure, Class childType)
number
- a numberclosure
- a set of commandschildType
- a turtle class
public void hideTurtle()
public void home()
public void ht()
public AgentSet inCone(Collection a, Number num, Number angle)
a
- a collection of agentsnum
- a distanceanlge
- the cone angle centered on caller's heading
public Link inLinkFrom(Turtle t)
t
- a turtle
public boolean inLinkNeighborQ(Turtle t)
t
- a turtle
public AgentSet inLinkNeighbors()
public AgentSet inRadius(Collection a, Number num)
a
- a collection of agentsnum
- a distance
public boolean isHiddenQ()
public boolean isShapeChanged()
public boolean isVisibilityChanged()
public void jump(Number num)
num
- a number
public void left(Number num)
num
- an angle in degrees in the range [0, 360]
public Link link(Number oneEnd, Number otherEnd)
oneEnd
- an integerotherEnd
- an integer
public Link link(Turtle oneEnd, Turtle otherEnd)
oneEnd
- a turtleotherEnd
- a turtle
public boolean linkNeighborQ(Turtle t)
public AgentSet linkNeighbors()
public Link linkWith(Turtle t)
public AgentSet links()
public void lt(Number num)
num
- an angle in degrees in the range [0, 360]
public AgentSet maxNOf(int number, Collection a, Closure reporter)
number
- an integera
- a collectionclosure
- a set of commands
public ReLogoAgent maxOneOf(Collection a, Closure reporter)
a
- a collectionclosure
- a set of commands
public AgentSet minNOf(int number, Collection a, Closure reporter)
number
- an integera
- a collectionclosure
- a set of commands
public ReLogoAgent minOneOf(Collection a, Closure reporter)
a
- a collectionclosure
- a set of commands
public void move(Number nNumber)
public void moveTo(Turtle t)
t
- a turtle
public void moveTo(Patch p)
p
- a patch
public void mv(Number nNumber)
public AgentSet myInLinks()
public AgentSet myLinks()
public AgentSet myOutLinks()
public Object myself()
public AgentSet neighbors()
public AgentSet neighbors(int extent)
public AgentSet neighbors(int extentX, int extentY)
public AgentSet neighbors4()
public AgentSet neighbors4(int extent)
public AgentSet neighbors4(int extentX, int extentY)
public void notifySubscribers()
public AgentSet other(Collection a)
a
- an agentset
public Turtle otherEnd()
public boolean outLinkNeighborQ(Turtle t)
t
- a turtle
public AgentSet outLinkNeighbors()
public Link outLinkTo(Turtle t)
t
- a turtle
public Patch patch(Number nX, Number nY)
nX
- x coordinatenY
- y coordinate
public Patch patchAhead(Number distance)
distance
- a number
public Patch patchAt(Number nX, Number nY)
nX
- a numbernY
- a number
public Patch patchAtHeadingAndDistance(Number nHeading, Number nDistance)
nHeading
- a numbernDistance
- a number
public Patch patchHere()
public Patch patchLeftAndAhead(Number nAngle, Number nDistance)
nAngle
- an angle in degreesnDistance
- a number
public Patch patchRightAndAhead(Number nAngle, Number nDistance)
nAngle
- an angle in degreesnDistance
- a number
public AgentSet patches()
public void pd()
public void pe()
public void penDown()
public void penErase()
public void penUp()
public void pu()
public int randomPxcor()
public int randomPycor()
public double randomXcor()
public double randomYcor()
public void registerSubscriber(Turtle t)
public void removeFromFixedLeaves(OutOfContextSubject t)
public void removeFromFreeLeaves(Turtle o)
public void removeSubscriber(Turtle t)
public void right(Number num)
num
- an angle in degrees in the range [0, 360]
public void rt(Number num)
num
- an angle in degrees in the range [0, 360]
public void run(String string)
string
- a string
public Object runresult(String string)
string
- a string
public Turtle self()
public void setBaseTurtleProperties(Observer observer, TurtleFactory turtleFactory, String turtleShape, double heading, double color, NdPoint loc)
public void setColor(Number color)
color
- a number
public void setHeading(Number nNum)
nNum
- a number in degrees
public void setHiddenQ(boolean hidden)
hidden
- boolean visibility
public void setLabel(Object label)
label
- a label
public void setLabelColor(Number labelColor)
labelColor
- a number in range [0, 140)
public void setMyObserver(Observer myObserver)
public void setMyTurtleFactory(TurtleFactory myTurtleFactory)
public void setMyself(Object o)
o
- an object
public void setPcolor(Number color)
pcolor
- a number in range [0,140)
public void setPenMode(Number penMode)
penMode
- a pen mode, PEN_UP or PEN_DOWN
public void setPenSize(Number penSize)
penSize
- a number
public void setShape(String shape)
shape
- a string
public void setShapeChanged(boolean shapeChanged)
public void setSize(Number size)
size
- a number
public void setUserDefinedVariables(Turtle parent)
public void setVisibilityChanged(boolean visibilityChanged)
public static void setWhoCounter(Number whoCounter)
public void setXcor(Number number)
number
- a number
public void setYcor(Number number)
number
- a number
public void setxy(Number nX, Number nY)
nX
- a numbernY
- a number
public void show(Object value)
value
- any object
public void showTurtle()
public void st()
public Stop stop()
public String toString()
public double towards(Turtle t)
t
- a turtle
public double towards(Patch p)
p
- a patch
public double towardsxy(Number nX, Number nY)
nX
- a numbernY
- a number
public Turtle turtle(Number number)
number
- a number
public AgentSet turtles()
public AgentSet turtlesAt(Number nX, Number nY)
nX
- a numbernY
- a number
public AgentSet turtlesHere()
public AgentSet turtlesOn(Patch p)
p
- a patch
public AgentSet turtlesOn(Turtle t)
t
- a turtle
public AgentSet turtlesOn(Collection a)
a
- a collection
public void update(Turtle o)
public void watchMe()
public int worldHeight()
public int worldWidth()
ReLogo API V2.0