net.cscott.sdr.calls
Class Evaluator.Standard
java.lang.Object
net.cscott.sdr.calls.Evaluator
net.cscott.sdr.calls.Evaluator.Standard
- Enclosing class:
- Evaluator
public static class Evaluator.Standard
- extends Evaluator
This is the standard top level evaluator. It contains a number
of convenience methods for adding elements dynamically to the
continuation and accessing the current top-level formation.
Constructor Summary |
Evaluator.Standard(Comp continuation)
Create a standard evaluator which wll dance the specified calls. |
Evaluator.Standard
public Evaluator.Standard(Comp continuation)
- Create a standard evaluator which wll dance the specified calls.
hasSimpleExpansion
public boolean hasSimpleExpansion()
- Description copied from class:
Evaluator
- Return true iff this Evaluator simply evaluates an Ast tree.
That is, if we can "look inside" the definition of this call or concept
by treating it as equivalent to its expansion.
- Overrides:
hasSimpleExpansion
in class Evaluator
simpleExpansion
public Comp simpleExpansion()
- Description copied from class:
Evaluator
- Returns the equivalent simple expansion of the call, if it has one.
- Overrides:
simpleExpansion
in class Evaluator
evaluate
public Evaluator evaluate(DanceState ds)
- Description copied from class:
Evaluator
- Do "one part" of the continuation, and return an
Evaluator
which will do the remaining parts, or null if there are no
additional parts to evaluate.
- Specified by:
evaluate
in class Evaluator
- Parameters:
ds
- The dynamic dance state. Accumulates dancer actions and
movements and tracks static dance information like the level of the
dance.
- Returns:
- An
Evaluator
for the remaining parts, or null.
toString
public String toString()
- Overrides:
toString
in class Evaluator
Copyright © 2006-2009 C. Scott Ananian