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

Public Member Functions

 CLSRule (String p, String d, String l, String r)
 
boolean matches (StringBuffer sb, int pos)
 

Package Attributes

String lContext
 
String pred
 
String rContext
 
String succ
 

Detailed Description

A Context sensitive L-System production rule.

This class encapsulates a production rule for a Context sensitive L-System (pred, succ, lContext, rContext). The matches() method, however, does not (yet) verify the lContext and rContext parts of the rule.

Author
Jim Graham

Definition at line 469 of file CLSFractal.java.

Constructor & Destructor Documentation

◆ CLSRule()

CLSRule.CLSRule ( String  p,
String  d,
String  l,
String  r 
)

Definition at line 476 of file CLSFractal.java.

References lContext, pred, rContext, and succ.

Member Function Documentation

◆ matches()

boolean CLSRule.matches ( StringBuffer  sb,
int  pos 
)

Definition at line 483 of file CLSFractal.java.

References pred.

Referenced by ContextLSystem.findRule().

Here is the caller graph for this function:

Member Data Documentation

◆ lContext

String CLSRule.lContext
package

Definition at line 473 of file CLSFractal.java.

Referenced by CLSRule().

◆ pred

String CLSRule.pred
package

Definition at line 471 of file CLSFractal.java.

Referenced by CLSRule(), ContextLSystem.generate(), and matches().

◆ rContext

String CLSRule.rContext
package

Definition at line 474 of file CLSFractal.java.

Referenced by CLSRule().

◆ succ

String CLSRule.succ
package

Definition at line 472 of file CLSFractal.java.

Referenced by CLSRule(), and ContextLSystem.generate().


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