DolSystem class
A class representing a Deterministic Context-free L-System, or DOL-System.
DOL-Systems can be considered the simplest Lindenmayer Systems because of their deterministic and context-free nature, meaning that the production rules of the system are applied as is, i.e., the output of the L-System will always be the same.
The rules found in productionRuleSet must have predecessors and succesors made up of symbols found in the DolSystem's alphabet. There cannot also be mutliple ProductionRule instances with the same predecessor.
- Inheritance
-
- Object
- LindenmayerSystem
- DolSystem
Constructors
Properties
-
alphabet
→ List<
String> -
The L-System's alphabet.
finalinherited
- axiom → String
-
The L-System's axiom. Has to be made up of symbols in alphabet.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
productionRuleSet
→ Set<
ProductionRule> -
The set of production rules for DolSystem.
These dictate how the system's output is generated at generate.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generate(
int iterations) → String -
How the L-System will generate its string output for a number of
iterations
.override -
generateAsStream(
int iterations) → Stream< (String, int)> -
How the L-System will generate its string output for a number of
iterations
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited