net.cscott.sdr
Class ChoreoEngine
java.lang.Object
net.cscott.sdr.ChoreoEngine
public class ChoreoEngine
- extends Object
ChoreoEngine specifies the interface through which the choreography
engine communicates with the rest of the SDR application.
- Version:
- $Id: ChoreoEngine.java,v 1.2 2006-11-10 00:56:07 cananian Exp $
- Author:
- C. Scott Ananian
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChoreoEngine
public ChoreoEngine(DanceProgram dp,
Formation f)
execute
public MultiMap<Dancer,DancerPath> execute(String unparsedCall,
ScoreAccumulator score)
throws BadCallException
- Given a
TimedFormation representing the "current" dancer
formation, perform the given call. The result will be a list of
future formations, sorted by the time at which they occur (with the
earliest first). No dancer will turn more than 1 wall (90 degrees)
between formations. All times in the TimedFormations will be
absolute.
- Parameters:
unparsedCall - The (sequence of) call(s) to perform.
- Returns:
- a time-stamped list of result formations, with absolute times.
- Throws:
BadCallException - if (some part of) the given call is impossible
from the given start formation.
lastCall
public Apply lastCall()
Copyright © 2006-2009 C. Scott Ananian