| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.grinvin.engine.apengine.TreeGeneratororg.grinvin.engine.apengine.LimitedTreeGeneratorpublic class LimitedTreeGeneratorextends TreeGeneratorNested Class Summary |
Nested classes/interfaces inherited from class org.grinvin.engine.apengine.TreeGenerator | |
TreeGenerator.TreeGeneratorStateStack | |
Field Summary |
Fields inherited from class org.grinvin.engine.apengine.TreeGenerator | |
completeWorkingTree, currentBinaryOperators, currentUnaryOperators, stateStack, workingTree | |
Constructor Summary | |
| |
Method Summary | |
LabeledBinaryTree |
|
protected void |
|
Methods inherited from class org.grinvin.engine.apengine.TreeGenerator | |
complete, correct, extend, nextTree, pushNextOperatorCount | |
public LabeledBinaryTree nextTree()
Return the nextLabeledBinaryTreeornullwhen no more tree is available.
- Overrides:
- nextTree in interface TreeGenerator
protected void pushNextOperatorCount()
Push a new depthstate on the stack with the next number of unary and binary operators. The operators are added as follows:
unary 0 0 1 0 0 1 2 0 1 1 3 0 0 2
- Overrides:
- pushNextOperatorCount in interface TreeGenerator