Class TreeString

java.lang.Object
  extended byTreeString

public class TreeString
extends java.lang.Object


Constructor Summary
TreeString()
          Creates a new instance of TreeString
 
Method Summary
 void addParameter(java.lang.String param)
          Method to set the parameters of a parametric string
 void addRule(java.lang.String rule)
          method to set the production rules
 java.lang.String generateParametricString()
          Method to generate a parametric sting
 java.lang.String generateString()
          method to generate the production string
 void printData()
          method to print L-system details on the screen
 void setAxiom(java.lang.String omega)
          ,ethod to get the axim of the system
 void setDerivations(int derivations)
          ,ethod to get the derivations number from the user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeString

public TreeString()
Creates a new instance of TreeString

Method Detail

addParameter

public void addParameter(java.lang.String param)
Method to set the parameters of a parametric string

Parameters:
param - a parameter value of a parametric system

addRule

public void addRule(java.lang.String rule)
method to set the production rules

Parameters:
rule - a production rule of the L-system

generateParametricString

public java.lang.String generateParametricString()
Method to generate a parametric sting


generateString

public java.lang.String generateString()
method to generate the production string


printData

public void printData()
method to print L-system details on the screen


setAxiom

public void setAxiom(java.lang.String omega)
,ethod to get the axim of the system

Parameters:
omega - the axiom of the L-System

setDerivations

public void setDerivations(int derivations)
,ethod to get the derivations number from the user

Parameters:
derivations - the number of derivations