diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-06-03 23:59:30 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-06-04 00:01:28 -0300 |
| commit | 5c416488ef63b5004ca424de56894eb17712f116 (patch) | |
| tree | b16cb41e704f8046ce75d094bfe5968116d93dfe /src/main/java/bjc/rgens/parser/RuleCase.java | |
| parent | 63aaf20560a2c4037cab8a7ef5fd6251d6036a2d (diff) | |
Add recurrance limit
This controls the number of times a rule can be entered into during a
single generations, and is set to 5 by default
Diffstat (limited to 'src/main/java/bjc/rgens/parser/RuleCase.java')
| -rwxr-xr-x | src/main/java/bjc/rgens/parser/RuleCase.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/bjc/rgens/parser/RuleCase.java b/src/main/java/bjc/rgens/parser/RuleCase.java index bb82ff2..21a7ed6 100755 --- a/src/main/java/bjc/rgens/parser/RuleCase.java +++ b/src/main/java/bjc/rgens/parser/RuleCase.java @@ -31,6 +31,8 @@ public abstract class RuleCase { /** The type of this case. */ public final CaseType type; + public String belongsTo; + /** * The list of element values for this case. * @@ -87,4 +89,9 @@ public abstract class RuleCase { public IList<CaseElement> getElements() { return elementList; } + + public String toString() { + return String.format("Case %d of %s", hashCode(), belongsTo); + } + } |
