sdr 0.5

net.cscott.sdr.calls
Class FormationList

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

public abstract class FormationList
extends Object

A list of common formations, specified with phantoms.

Tests:
Almost all standard formations are maximally "breathed in". Diamonds are a special case. There should be "expanded" diamonds and "compressed" diamonds. (Also the case for quarter tags?)
js> for (f in Iterator(FormationList.all)) {
  >   if (!Breather.breathe(f).equals(f)) {
  >     print("Unbreathed formation: "+f.getName());
  >   }
  > }
Unbreathed formation: RH DIAMOND
Unbreathed formation: RH FACING DIAMOND
Unbreathed formation: LH DIAMOND
Unbreathed formation: LH FACING DIAMOND
Unbreathed formation: RH TWIN DIAMONDS
Unbreathed formation: LH TWIN DIAMONDS
Unbreathed formation: RH POINT-TO-POINT DIAMONDS
Unbreathed formation: RH POINT-TO-POINT FACING DIAMONDS
Unbreathed formation: LH POINT-TO-POINT DIAMONDS
Unbreathed formation: LH POINT-TO-POINT FACING DIAMONDS
Unbreathed formation: RH TWIN FACING DIAMONDS
Unbreathed formation: LH TWIN FACING DIAMONDS
Canonical formations should be centered.
js> for (f in Iterator(FormationList.all)) {
  >   if (!f.isCentered()) {
  >     print("Uncentered formation: "+f.getName());
  >   }
  > } ; undefined
js> // note no output from the above.
Canonical formations should be oriented so that "most" dancers are facing north or south. This seems to match standard diagrams best.
js> ns = Rotation.fromAbsoluteString("|");
0 mod 1/2
js> for (f in Iterator(FormationList.all)) {
  >   l=[ns.includes(f.location(d).facing) for (d in Iterator(f.dancers()))]
  >   if ([b for each (b in l) if (b)].length <
  >       [b for each (b in l) if (!b)].length) {
  >     print("Unexpected orientation: "+f.getName());
  >   }
  > } ; undefined
js> // note no output from the above.

Field Summary
static TaggedFormation _2x2
           
static List<Formation> all
          List of all formations defined in this class.
static TaggedFormation BACK_TO_BACK_COUPLES
           
static TaggedFormation BACK_TO_BACK_DANCERS
           
static TaggedFormation COMPLETED_DOUBLE_PASS_THRU
           
static TaggedFormation COMPLETED_SINGLE_DOUBLE_PASS_THRU
           
static TaggedFormation COUPLE
           
static TaggedFormation DOUBLE_PASS_THRU
           
static TaggedFormation EIGHT_CHAIN_THRU
           
static TaggedFormation ENDS_IN_INVERTED_LINES
           
static TaggedFormation ENDS_OUT_INVERTED_LINES
           
static TaggedFormation FACING_COUPLES
           
static TaggedFormation FACING_DANCERS
           
static TaggedFormation FACING_LINES
           
static TaggedFormation GENERAL_LINE
           
static TaggedFormation LH_BOX
           
static TaggedFormation LH_COLUMN
           
static TaggedFormation LH_DIAMOND
           
static TaggedFormation LH_FACING_DIAMOND
           
static TaggedFormation LH_MINIWAVE
           
static TaggedFormation LH_OCEAN_WAVE
           
static TaggedFormation LH_POINT_TO_POINT_DIAMONDS
           
static TaggedFormation LH_POINT_TO_POINT_FACING_DIAMONDS
           
static TaggedFormation LH_QUARTER_LINE
           
static TaggedFormation LH_QUARTER_TAG
           
static TaggedFormation LH_SINGLE_PROMENADE
           
static TaggedFormation LH_SINGLE_QUARTER_TAG
           
static TaggedFormation LH_SINGLE_THREE_QUARTER_TAG
           
static TaggedFormation LH_THREE_QUARTER_LINE
           
static TaggedFormation LH_THREE_QUARTER_TAG
           
static TaggedFormation LH_TIDAL_LINE
           
static TaggedFormation LH_TIDAL_TWO_FACED_LINE
           
static TaggedFormation LH_TIDAL_WAVE
           
static TaggedFormation LH_TWIN_DIAMONDS
           
static TaggedFormation LH_TWIN_FACING_DIAMONDS
           
static TaggedFormation LH_TWO_FACED_LINE
           
static TaggedFormation LINES_FACING_OUT
           
static TaggedFormation PARALLEL_LH_TWO_FACED_LINES
           
static TaggedFormation PARALLEL_LH_WAVES
           
static TaggedFormation PARALLEL_RH_TWO_FACED_LINES
           
static TaggedFormation PARALLEL_RH_WAVES
           
static TaggedFormation PROMENADE
           
static TaggedFormation RH_BOX
           
static TaggedFormation RH_COLUMN
           
static TaggedFormation RH_DIAMOND
           
static TaggedFormation RH_FACING_DIAMOND
           
static TaggedFormation RH_MINIWAVE
           
static TaggedFormation RH_OCEAN_WAVE
           
static TaggedFormation RH_POINT_TO_POINT_DIAMONDS
           
static TaggedFormation RH_POINT_TO_POINT_FACING_DIAMONDS
           
static TaggedFormation RH_QUARTER_LINE
           
static TaggedFormation RH_QUARTER_TAG
           
static TaggedFormation RH_SINGLE_PROMENADE
           
static TaggedFormation RH_SINGLE_QUARTER_TAG
           
static TaggedFormation RH_SINGLE_THREE_QUARTER_TAG
           
static TaggedFormation RH_THREE_QUARTER_LINE
           
static TaggedFormation RH_THREE_QUARTER_TAG
           
static TaggedFormation RH_TIDAL_LINE
           
static TaggedFormation RH_TIDAL_TWO_FACED_LINE
           
static TaggedFormation RH_TIDAL_WAVE
           
static TaggedFormation RH_TWIN_DIAMONDS
           
static TaggedFormation RH_TWIN_FACING_DIAMONDS
           
static TaggedFormation RH_TWO_FACED_LINE
           
static TaggedFormation SINGLE_DANCER
           
static TaggedFormation SINGLE_DOUBLE_PASS_THRU
           
static TaggedFormation SINGLE_INVERTED_LINE
           
static TaggedFormation STATIC_SQUARE
           
static TaggedFormation TANDEM
           
static TaggedFormation TANDEM_COUPLES
           
static TaggedFormation THAR
           
static TaggedFormation TRADE_BY
           
static TaggedFormation WRONG_WAY_PROMENADE
           
static TaggedFormation WRONG_WAY_THAR
           
 
Constructor Summary
FormationList()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLE_DANCER

public static final TaggedFormation SINGLE_DANCER

COUPLE

public static final TaggedFormation COUPLE

FACING_DANCERS

public static final TaggedFormation FACING_DANCERS

BACK_TO_BACK_DANCERS

public static final TaggedFormation BACK_TO_BACK_DANCERS

TANDEM

public static final TaggedFormation TANDEM

RH_MINIWAVE

public static final TaggedFormation RH_MINIWAVE

LH_MINIWAVE

public static final TaggedFormation LH_MINIWAVE

GENERAL_LINE

public static final TaggedFormation GENERAL_LINE

_2x2

public static final TaggedFormation _2x2

FACING_COUPLES

public static final TaggedFormation FACING_COUPLES

BACK_TO_BACK_COUPLES

public static final TaggedFormation BACK_TO_BACK_COUPLES

TANDEM_COUPLES

public static final TaggedFormation TANDEM_COUPLES

RH_OCEAN_WAVE

public static final TaggedFormation RH_OCEAN_WAVE

LH_OCEAN_WAVE

public static final TaggedFormation LH_OCEAN_WAVE

RH_BOX

public static final TaggedFormation RH_BOX

LH_BOX

public static final TaggedFormation LH_BOX

RH_TWO_FACED_LINE

public static final TaggedFormation RH_TWO_FACED_LINE

LH_TWO_FACED_LINE

public static final TaggedFormation LH_TWO_FACED_LINE

SINGLE_INVERTED_LINE

public static final TaggedFormation SINGLE_INVERTED_LINE

RH_DIAMOND

public static final TaggedFormation RH_DIAMOND

RH_FACING_DIAMOND

public static final TaggedFormation RH_FACING_DIAMOND

LH_DIAMOND

public static final TaggedFormation LH_DIAMOND

LH_FACING_DIAMOND

public static final TaggedFormation LH_FACING_DIAMOND

RH_SINGLE_PROMENADE

public static final TaggedFormation RH_SINGLE_PROMENADE

LH_SINGLE_PROMENADE

public static final TaggedFormation LH_SINGLE_PROMENADE

RH_SINGLE_QUARTER_TAG

public static final TaggedFormation RH_SINGLE_QUARTER_TAG

LH_SINGLE_QUARTER_TAG

public static final TaggedFormation LH_SINGLE_QUARTER_TAG

RH_SINGLE_THREE_QUARTER_TAG

public static final TaggedFormation RH_SINGLE_THREE_QUARTER_TAG

LH_SINGLE_THREE_QUARTER_TAG

public static final TaggedFormation LH_SINGLE_THREE_QUARTER_TAG

STATIC_SQUARE

public static final TaggedFormation STATIC_SQUARE

PROMENADE

public static final TaggedFormation PROMENADE

WRONG_WAY_PROMENADE

public static final TaggedFormation WRONG_WAY_PROMENADE

THAR

public static final TaggedFormation THAR

WRONG_WAY_THAR

public static final TaggedFormation WRONG_WAY_THAR

FACING_LINES

public static final TaggedFormation FACING_LINES

EIGHT_CHAIN_THRU

public static final TaggedFormation EIGHT_CHAIN_THRU

TRADE_BY

public static final TaggedFormation TRADE_BY

DOUBLE_PASS_THRU

public static final TaggedFormation DOUBLE_PASS_THRU

SINGLE_DOUBLE_PASS_THRU

public static final TaggedFormation SINGLE_DOUBLE_PASS_THRU

COMPLETED_DOUBLE_PASS_THRU

public static final TaggedFormation COMPLETED_DOUBLE_PASS_THRU

COMPLETED_SINGLE_DOUBLE_PASS_THRU

public static final TaggedFormation COMPLETED_SINGLE_DOUBLE_PASS_THRU

LINES_FACING_OUT

public static final TaggedFormation LINES_FACING_OUT

PARALLEL_RH_WAVES

public static final TaggedFormation PARALLEL_RH_WAVES

PARALLEL_LH_WAVES

public static final TaggedFormation PARALLEL_LH_WAVES

PARALLEL_RH_TWO_FACED_LINES

public static final TaggedFormation PARALLEL_RH_TWO_FACED_LINES

PARALLEL_LH_TWO_FACED_LINES

public static final TaggedFormation PARALLEL_LH_TWO_FACED_LINES

RH_COLUMN

public static final TaggedFormation RH_COLUMN

LH_COLUMN

public static final TaggedFormation LH_COLUMN

ENDS_IN_INVERTED_LINES

public static final TaggedFormation ENDS_IN_INVERTED_LINES

ENDS_OUT_INVERTED_LINES

public static final TaggedFormation ENDS_OUT_INVERTED_LINES

RH_QUARTER_TAG

public static final TaggedFormation RH_QUARTER_TAG

LH_QUARTER_TAG

public static final TaggedFormation LH_QUARTER_TAG

RH_THREE_QUARTER_TAG

public static final TaggedFormation RH_THREE_QUARTER_TAG

LH_THREE_QUARTER_TAG

public static final TaggedFormation LH_THREE_QUARTER_TAG

RH_QUARTER_LINE

public static final TaggedFormation RH_QUARTER_LINE

LH_QUARTER_LINE

public static final TaggedFormation LH_QUARTER_LINE

RH_THREE_QUARTER_LINE

public static final TaggedFormation RH_THREE_QUARTER_LINE

LH_THREE_QUARTER_LINE

public static final TaggedFormation LH_THREE_QUARTER_LINE

RH_TWIN_DIAMONDS

public static final TaggedFormation RH_TWIN_DIAMONDS

LH_TWIN_DIAMONDS

public static final TaggedFormation LH_TWIN_DIAMONDS

RH_POINT_TO_POINT_DIAMONDS

public static final TaggedFormation RH_POINT_TO_POINT_DIAMONDS

RH_POINT_TO_POINT_FACING_DIAMONDS

public static final TaggedFormation RH_POINT_TO_POINT_FACING_DIAMONDS

LH_POINT_TO_POINT_DIAMONDS

public static final TaggedFormation LH_POINT_TO_POINT_DIAMONDS

LH_POINT_TO_POINT_FACING_DIAMONDS

public static final TaggedFormation LH_POINT_TO_POINT_FACING_DIAMONDS

RH_TWIN_FACING_DIAMONDS

public static final TaggedFormation RH_TWIN_FACING_DIAMONDS

LH_TWIN_FACING_DIAMONDS

public static final TaggedFormation LH_TWIN_FACING_DIAMONDS

RH_TIDAL_WAVE

public static final TaggedFormation RH_TIDAL_WAVE

LH_TIDAL_WAVE

public static final TaggedFormation LH_TIDAL_WAVE

RH_TIDAL_TWO_FACED_LINE

public static final TaggedFormation RH_TIDAL_TWO_FACED_LINE

LH_TIDAL_TWO_FACED_LINE

public static final TaggedFormation LH_TIDAL_TWO_FACED_LINE

RH_TIDAL_LINE

public static final TaggedFormation RH_TIDAL_LINE

LH_TIDAL_LINE

public static final TaggedFormation LH_TIDAL_LINE

all

public static final List<Formation> all
List of all formations defined in this class.

Constructor Detail

FormationList

public FormationList()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

sdr 0.5

Copyright © 2006-2009 C. Scott Ananian