Crossfire JXClient, Trunk
Public Member Functions | Package Attributes | Private Member Functions | List of all members
ContextLSystem Class Reference
Collaboration diagram for ContextLSystem:
Collaboration graph

Public Member Functions

 ContextLSystem (java.applet.Applet app)
 
CLSRule findRule (int pos)
 
void generate ()
 
int getLevel ()
 
synchronized String getPath ()
 

Package Attributes

String axiom
 
StringBuffer currentPath
 
int level
 
List< CLSRulerules = new ArrayList<CLSRule>()
 

Private Member Functions

synchronized void setPath (StringBuffer path)
 

Detailed Description

A (non-)Context sensitive L-System class.

This class initializes the rules for Context sensitive L-Systems (pred, succ, lContext, rContext) from the given java.applet.Applet's attributes. The generate() method, however, does not (yet) apply the lContext and rContext parts of the rules.

Author
Jim Graham

Definition at line 393 of file CLSFractal.java.

Constructor & Destructor Documentation

◆ ContextLSystem()

ContextLSystem.ContextLSystem ( java.applet.Applet  app)

Definition at line 399 of file CLSFractal.java.

References axiom, currentPath, level, and rules.

Member Function Documentation

◆ findRule()

CLSRule ContextLSystem.findRule ( int  pos)

Definition at line 447 of file CLSFractal.java.

References currentPath, CLSRule.matches(), and rules.

Referenced by generate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate()

void ContextLSystem.generate ( )

Definition at line 431 of file CLSFractal.java.

References currentPath, findRule(), CLSRule.pred, setPath(), and CLSRule.succ.

Referenced by CLSFractal.run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLevel()

int ContextLSystem.getLevel ( )

Definition at line 417 of file CLSFractal.java.

References level.

Referenced by CLSFractal.run().

Here is the caller graph for this function:

◆ getPath()

synchronized String ContextLSystem.getPath ( )

Definition at line 422 of file CLSFractal.java.

References currentPath.

Referenced by CLSFractal.paint().

Here is the caller graph for this function:

◆ setPath()

synchronized void ContextLSystem.setPath ( StringBuffer  path)
private

Definition at line 426 of file CLSFractal.java.

References currentPath, level, and path.

Referenced by generate().

Here is the caller graph for this function:

Member Data Documentation

◆ axiom

String ContextLSystem.axiom
package

Definition at line 395 of file CLSFractal.java.

Referenced by ContextLSystem().

◆ currentPath

StringBuffer ContextLSystem.currentPath
package

Definition at line 420 of file CLSFractal.java.

Referenced by ContextLSystem(), findRule(), generate(), getPath(), and setPath().

◆ level

int ContextLSystem.level
package

Definition at line 397 of file CLSFractal.java.

Referenced by ContextLSystem(), getLevel(), and setPath().

◆ rules

List<CLSRule> ContextLSystem.rules = new ArrayList<CLSRule>()
package

Definition at line 396 of file CLSFractal.java.

Referenced by ContextLSystem(), and findRule().


The documentation for this class was generated from the following file: