JavaView® v2.12

vgp.tutor.lsystem
Class LSystem

java.lang.Object
  |
  +--vgp.tutor.lsystem.LSystem

public class LSystem
extends java.lang.Object

Generate a tree with a context-free L-system.

Version:
16.02.00, 1.00 revised (kp)
16.02.00, 1.00 created (kp)
Author:
Konrad Polthier

Constructor Summary
LSystem()
           
 
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 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

LSystem

public LSystem()
Method Detail

iterate

public void iterate(int maxLength)
Generate the tree by applying the rules until the description has a given length.
Parameters:
maxLength - maximal length of tree until we continue to iterate.

getTree

public java.lang.String getTree()
Make the current state of the L-system available, e.g. for interpreting the string using turtle graphics commands.

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.