Documentation of 'vgp.tutor.lsystem.LSystem' Java class
LSystem ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.tutor.lsystem

Class LSystem



  • public class LSystem
    extends java.lang.Object
    Generate a tree with a context-free L-system.
    Author:
    Konrad Polthier
    Version:
    04.11.01, 2.50 revised (kp) Current state m_tree converted into char[] from string.
    30.10.01, 2.00 revised (kp) Converted into a project.
    16.02.00, 1.00 created (kp)
    • Constructor Summary

      Constructors 
      Constructor and Description
      LSystem()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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

      • LSystem

        public LSystem()
        Constructor.
    • Method Detail

      • init

        public void init()
      • 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? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.