net.cscott.sdr.calls
Class FormationMatch
java.lang.Object
net.cscott.sdr.calls.FormationMatch
public class FormationMatch
- extends Object
A successful attempt to match one or more instances of a given formation
against the current setup yields a FormationMatch
objects. The FormationMatch
contains a list of
TaggedFormation
; for example, matching a diamond against a
twin diamond setup will result in two TaggedFormation
s,
one for each diamond.
Field Summary |
Map<Dancer,TaggedFormation> |
matches
The matches field is a map from phantom dancers
in the meta formation to real dancers in a tagged subformation. |
Formation |
meta
The meta formation contains one dancer for each matched
sub-formation in the setup. |
meta
public final Formation meta
- The meta formation contains one dancer for each matched
sub-formation in the setup. Unmatched dancers (if allowed by the match)
result in phantom dancers in the meta formation mapped to the
FormationList.SINGLE_DANCER
sub-formation.
matches
public final Map<Dancer,TaggedFormation> matches
- The
matches
field is a map from phantom dancers
in the meta formation to real dancers in a tagged subformation. The
meta formation says how these subformations could be rotated, shifted,
and recombined into the original setup.
FormationMatch
public FormationMatch(Formation meta,
Map<Dancer,TaggedFormation> matches)
toString
public String toString()
- Pretty-print a
FormationMatch
.
- Overrides:
toString
in class Object
Copyright © 2006-2009 C. Scott Ananian