ProductionRule class
A class representing an L-System's production rule.
A ProductionRule consists of a predecessor and a successor. If predecessor is found when we are rewriting an L-System's string, we replace it by its successor.
An example follows:
Assume we have an axiom "AAB" and a production rule that states that predecessor "A" turns into successor "AB". By following this logic, axiom "AAB" will turn into "ABABB" on the first iteration of the L-System's output generation.
Constructors
- ProductionRule({required String predecessor, required String successor})
- A class representing an L-System's production rule.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- predecessor → String
-
The production rule's predecessor. This represents a symbol we will
try to find when generating an L-System's output.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- successor → String
-
The production rule's successor. This represents a sequence of symbols
that will replace predecessor if the latter is found when generating
an L-System's output.
final
Methods
-
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