|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.primordion.xholon.base.Xholon
org.primordion.xholon.base.XholonWithPorts
org.primordion.xholon.base.Turtle
org.primordion.user.app.TurtleExample1
| Field Summary | |
static int |
SIG_SELF
|
| Fields inherited from class org.primordion.xholon.base.Turtle |
color, heading, isHidden, penMode, xcor, ycor |
| Fields inherited from class org.primordion.xholon.base.XholonWithPorts |
port |
| Fields inherited from class org.primordion.xholon.base.Xholon |
DEFAULT_LEVEL, interaction, interactionsEnabled |
| Fields inherited from interface org.primordion.xholon.base.ITurtle |
COMMANDID_NONE, FILTERID_NONE, PENMODE_DOWN, PENMODE_ERASE, PENMODE_UP, WHENMOVED_INIT |
| Fields inherited from interface org.primordion.xholon.base.IXholon |
DEFAULT_SIZE_MSG_Q, NINCLUDE_PSC, NINCLUDE_PSx, NINCLUDE_PxC, NINCLUDE_Pxx, NINCLUDE_xSC, NINCLUDE_xSx, NINCLUDE_xxC, NINCLUDE_xxx |
| Constructor Summary | |
TurtleExample1()
|
|
| Method Summary | |
static java.lang.String |
getAppSpecificParam1()
|
void |
initialize()
Initialize the tree node. |
void |
postConfigure()
Perform some action, typically once at start up; MAY be overridden. |
void |
processReceivedMessage(Message msg)
Process a received ROOM/UML2 message taken from the message queue. |
static void |
setAppSpecificParam1(java.lang.String AppSpecificParam1Arg)
|
void |
toBranch(double length,
int level)
source: Abelson, H. |
double |
toEquispi(double side,
double angle,
double scale)
source: Abelson, H. |
double |
toInspi(double side,
double angle,
double inc)
source: Abelson, H. |
void |
toLBranch(double length,
double angle,
int level)
source: Abelson, H. |
void |
toLDragon(double size,
int level)
source: Abelson, H. |
void |
toPoly(double side,
double angle)
Draw a polygon. |
double |
toPolyspi(double side,
double angle,
double inc)
source: Abelson, H. |
void |
toRBranch(double length,
double angle,
int level)
|
void |
toRDragon(double size,
int level)
|
void |
toSquare(double size)
Draw a square. |
| Methods inherited from class org.primordion.xholon.base.Turtle |
aggregate, back, beep, bk, canMove, die, distance, distancexy, downhill, downhill4, dx, dy, face, facexy, fd, forward, getBreed, getColor, getHeading, getIsHidden, getLabel, getMaxPxcor, getMaxPycor, getMinPxcor, getMinPycor, getPcolor, getPenMode, getPlabel, getPxcor, getPycor, getWho, getWorldHeight, getWorldWidth, getXcor, getYcor, hasAlreadyMoved, hatch, hideTurtle, home, ht, inCone, initWhenMoved, inRadius, inRadius, jump, jump, jump, left, lineBresenham, lt, neighbors, neighbors4, otherTurtlesHere, patchAhead, patchAt, patchAtHeadingAndDistance, patchHere, patchLeftAndAhead, patchRightAndAhead, pd, pe, penDown, penErase, penUp, pu, right, rt, setBreed, setColor, setHeading, setIsHidden, setLabel, setPcolor, setPenMode, setPlabel, setPxcor, setPycor, setWho, setXcor, setxy, setYcor, showTurtle, st, stamp, stampErase, toString, towards, towardsxy, turtlesAt, turtlesHere, turtlesOn, uphill, uphill4, with |
| Methods inherited from class org.primordion.xholon.base.XholonWithPorts |
configure, getMaxPorts, getPort, isActiveObject, isBound, isContainer, isPassiveObject, setMaxPorts, setPorts, terminate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SIG_SELF
| Constructor Detail |
public TurtleExample1()
| Method Detail |
public static void setAppSpecificParam1(java.lang.String AppSpecificParam1Arg)
public static java.lang.String getAppSpecificParam1()
public void initialize()
IXholon
initialize in interface IXholoninitialize in class XholonWithPortspublic void postConfigure()
IXholon
postConfigure in interface IXholonpostConfigure in class XholonWithPortspublic void processReceivedMessage(Message msg)
IXholon
processReceivedMessage in interface IXholonprocessReceivedMessage in class Xholonpublic void toSquare(double size)
size - The length of the edges of the square.
public void toPoly(double side,
double angle)
side - The length of a side of the polygon.angle - The angle in degrees between sides.
public double toPolyspi(double side,
double angle,
double inc)
side - angle - inc -
public double toInspi(double side,
double angle,
double inc)
side - angle - inc -
public double toEquispi(double side,
double angle,
double scale)
side - angle - scale -
public void toBranch(double length,
int level)
length - level -
public void toLBranch(double length,
double angle,
int level)
length - angle - level -
public void toRBranch(double length,
double angle,
int level)
public void toLDragon(double size,
int level)
size - level -
public void toRDragon(double size,
int level)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||