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(DanceState ds)
execute
public List<TimedFormation> execute(TimedFormation start,
Apply call,
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 TimedFormation
s will be
absolute.
- Parameters:
start
- The starting formation and time.call
- 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.
Copyright (c) 2006 C. Scott Ananian