sdr 0.21

net.cscott.sdr.calls
Class Selector

java.lang.Object
  extended by net.cscott.sdr.calls.Selector

public abstract class Selector
extends Object

A selector takes a formation and pulls out all instances of a selected sub-formation, numbering the dancers in each in a canonical order. (We've given names to common numberings.) For example, given facing lines, the FACING_COUPLES selector would extract the two instances of facing couples, and number the dancers in each facing couple 0-3. Each instance of a facing couple could then be decomposed into two FACING_DANCERS (numbered 0-1).


Constructor Summary
Selector()
           
 
Method Summary
abstract  FormationMatch match(Formation f)
          Select sub-formations from a formation using this selector.
static Selector valueOf(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selector

public Selector()
Method Detail

match

public abstract FormationMatch match(Formation f)
                              throws NoMatchException
Select sub-formations from a formation using this selector. (The subformation may be as large as the original formation -- or even larger, if phantoms are generated; it may also be as small as a single dancer.) If the given formation can't be selected from the current dancer configuration, throws NoMatchException.

Throws:
NoMatchException

valueOf

public static Selector valueOf(String s)

sdr 0.21

Copyright (c) 2006 C. Scott Ananian