Package | Description |
---|---|
turtlekit.kernel | |
turtlekit.viewer |
Modifier and Type | Method and Description |
---|---|
<T extends Turtle> |
Turtle.getNearestTurtle(double realRadius,
Class<T> turtleType)
Returns the nearest turtle of type T from this one
according to its real distance.
|
<T extends Turtle> |
Patch.getNearestTurtle(int inRadius,
boolean includeThisPatch,
Class<T> turtleType)
Gets the nearest turtle of type T in the vicinity of the patch.
|
<T extends Turtle> |
Turtle.getNearestTurtle(int patchRadius,
Class<T> turtleType)
Returns the nearest turtle of type T from this one
according to its patch distance.
|
<T extends Turtle> |
Turtle.getNearestTurtleWithRole(int patchRadius,
String role,
Class<T> turtleType)
Returns the nearest turtle of type T from this one
according to its patch distance.
|
<T extends Turtle> |
Turtle.getOtherTurtles(int inRadius,
boolean includeThisPatch,
Class<T> turtleType) |
<T extends Turtle> |
Turtle.getOtherTurtlesWithRole(int inRadius,
boolean includeThisPatch,
String role,
Class<T> turtleType) |
<T extends Turtle> |
Patch.getTurtles(Class<T> turtleType)
Get all the turtles on this patch
according to their type.
|
<T extends Turtle> |
Patch.getTurtles(int inRadius,
boolean includeThisPatch,
Class<T> turtleType) |
<T extends Turtle> |
Patch.getTurtlesWithRole(int inRadius,
boolean includeThisPatch,
String role,
Class<T> turtleType) |
<T extends Turtle> |
Patch.getTurtlesWithRole(String role)
Get all the turtles which are on this patch
and having this role.
|
<T extends Turtle> |
Patch.getTurtlesWithRole(String role,
Class<T> turtleType)
Get all the turtles on this patch
according to their type and role.
|
Modifier and Type | Method and Description |
---|---|
Turtle |
Turtle.getNearestTurtle(int inRadius)
Returns the nearest turtle from this one
within the inRadius-vicinity as a patch distance.
|
Turtle |
Patch.getNearestTurtle(int inRadius,
boolean includeThisPatch)
Gets the nearest turtle of type T in the vicinity of the patch.
|
Turtle |
Turtle.getNearestTurtleWithRole(int patchRadius,
String role)
Returns the nearest turtle of type T from this one
according to its patch distance.
|
Modifier and Type | Method and Description |
---|---|
List<Turtle> |
Turtle.getOtherTurtles(int inRadius,
boolean includeThisPatch) |
List<Turtle> |
Turtle.getOtherTurtlesWithRole(int inRadius,
boolean includeThisPatch,
String role) |
List<Turtle> |
Turtle.getPatchOtherTurtles() |
List<Turtle> |
Patch.getTurtles() |
List<Turtle> |
Patch.getTurtles(int inRadius,
boolean includeThisPatch) |
List<Turtle> |
Patch.getTurtlesWithRole(int inRadius,
boolean includeThisPatch,
String role) |
List<Turtle> |
TKEnvironment.getTurtlesWithRoles(String role)
Gets the turtles with this role in the default community and group
|
List<Turtle> |
TKEnvironment.getTurtlesWithRoles(String community,
String group,
String role) |
Modifier and Type | Method and Description |
---|---|
protected void |
TurtleActivator.adding(Turtle agent) |
int |
TKEnvironment.createTurtle(Turtle t)
Launch a turtle with a random location
|
int |
Turtle.createTurtle(Turtle t)
Launch a turtle with a random location.
|
int |
TKEnvironment.createTurtle(Turtle t,
double x,
double y)
Launch a turtle with predefined coordinates
|
int |
Turtle.createTurtle(Turtle t,
double x,
double y)
Launch a turtle with predefined coordinates
|
int |
Turtle.createTurtleHere(Turtle t)
launch a turtle at the creator position (xcor,ycor)
and returns the given ID to the new turtle
|
double |
Turtle.distance(Turtle t) |
void |
Turtle.setHeadingTowards(Turtle t)
Set the heading toward the turtle t.
|
void |
Turtle.setHeadingTowards(Turtle t,
double offset)
Set the heading toward the turtle t.
|
void |
Turtle.setHeadingTowardsNoWrap(Turtle t) |
double |
Turtle.towards(Turtle t) |
double |
Turtle.towardsNoWrap(Turtle t) |
Modifier and Type | Method and Description |
---|---|
void |
TurtleActivator.execute(List<Turtle> agents,
Object... args) |
Modifier and Type | Method and Description |
---|---|
void |
TKDefaultViewer.paintTurtle(Graphics g,
Turtle t,
int i,
int j) |