net.cscott.sdr.calls.transform
Class Evaluator.EvaluatorChain
java.lang.Object
net.cscott.sdr.calls.transform.Evaluator
net.cscott.sdr.calls.transform.Evaluator.EvaluatorChain
- Enclosing class:
- Evaluator
public static class Evaluator.EvaluatorChain
- extends Evaluator
Chains multiple evaluators together. Used to implement Seq
.
Method Summary |
Evaluator |
evaluate(DanceState ds)
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Evaluator.EvaluatorChain
public Evaluator.EvaluatorChain(Evaluator head,
Evaluator next)
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.
Copyright © 2006-2009 C. Scott Ananian