Crossfire JXClient, Trunk
|
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< CLSRule > | rules = new ArrayList<CLSRule>() |
Private Member Functions | |
synchronized void | setPath (StringBuffer path) |
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.
Definition at line 393 of file CLSFractal.java.
ContextLSystem.ContextLSystem | ( | java.applet.Applet | app | ) |
Definition at line 399 of file CLSFractal.java.
References axiom, currentPath, level, and rules.
CLSRule ContextLSystem.findRule | ( | int | pos | ) |
Definition at line 447 of file CLSFractal.java.
References currentPath, CLSRule.matches(), and rules.
Referenced by 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().
int ContextLSystem.getLevel | ( | ) |
Definition at line 417 of file CLSFractal.java.
References level.
Referenced by CLSFractal.run().
synchronized String ContextLSystem.getPath | ( | ) |
Definition at line 422 of file CLSFractal.java.
References currentPath.
Referenced by CLSFractal.paint().
|
private |
Definition at line 426 of file CLSFractal.java.
References currentPath, level, and path.
Referenced by generate().
|
package |
Definition at line 395 of file CLSFractal.java.
Referenced by ContextLSystem().
|
package |
Definition at line 420 of file CLSFractal.java.
Referenced by ContextLSystem(), findRule(), generate(), getPath(), and setPath().
|
package |
Definition at line 397 of file CLSFractal.java.
Referenced by ContextLSystem(), getLevel(), and setPath().
Definition at line 396 of file CLSFractal.java.
Referenced by ContextLSystem(), and findRule().