|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvgp.tutor.lsystem.LSystem
Generate a tree with a context-free L-system.
| Constructor Summary | |
LSystem()
Constructor. |
|
| Method Summary | |
java.lang.String |
getTree()
Make the current state of the L-system available, e.g. for interpreting the string using turtle graphics commands. |
void |
init()
|
void |
iterate(int maxLength)
Generate the tree by applying the rules until the description has a given length. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LSystem()
| Method Detail |
public void init()
public void iterate(int maxLength)
maxLength - maximal length of tree until we continue to iterate.public java.lang.String getTree()
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||