|
sdr 0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cscott.sdr.calls.GeneralFormationMatcher
public abstract class GeneralFormationMatcher
GeneralFormationMatcher
produces a FormationMatch
given an input Formation
and a goal TaggedFormation
.
This can be used to make Selector
s out of TaggedFormation
s,
via the makeSelector(net.cscott.sdr.calls.TaggedFormation)
method.
Constructor Summary | |
---|---|
GeneralFormationMatcher()
|
Method Summary | |
---|---|
static FormationMatch |
doMatch(Formation input,
TaggedFormation goal,
boolean allowUnmatchedDancers,
boolean usePhantoms)
Attempt to match the input formation against the goal formation; you can have multiple rotated copies of the goal formation in the input. |
static Selector |
makeSelector(TaggedFormation goal)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneralFormationMatcher()
Method Detail |
---|
public static Selector makeSelector(TaggedFormation goal)
public static FormationMatch doMatch(Formation input, TaggedFormation goal, boolean allowUnmatchedDancers, boolean usePhantoms) throws NoMatchException
input
- An untagged formation to match against.goal
- A tagged goal formationallowUnmatchedDancers
- allow dancers in the input formation not to
match dancers in (copies of) the goalusePhantoms
- allow dancers in the goal formation not to match
dancers in the input
NoMatchException
- if there is no way to match the goal formation
with the given inputjs> GeneralFormationMatcher.doMatch(Formation.SQUARED_SET, > FormationList.COUPLE, > false, false) AAv BB> CC< DD^ AA: 3B^ 3G^ [3B: BEAU; 3G: BELLE] BB: 4B^ 4G^ [4B: BEAU; 4G: BELLE] CC: 2B^ 2G^ [2B: BEAU; 2G: BELLE] DD: 1B^ 1G^ [1B: BEAU; 1G: BELLE]
js> GeneralFormationMatcher.doMatch(FormationList.RH_TWIN_DIAMONDS, > FormationList.RH_MINIWAVE, > true, false) AA> BB> CC^ DDv EE< FF< AA: ^ BB: ^ CC: ^ v [ph: BEAU; ph: BEAU] DD: ^ v [ph: BEAU; ph: BEAU] EE: ^ FF: ^
js> GeneralFormationMatcher.doMatch(FormationList.PARALLEL_RH_WAVES, > FormationList.RH_MINIWAVE, > false, false) AA^ BBv CC^ DDv AA: ^ v [ph: BEAU; ph: BEAU] BB: ^ v [ph: BEAU; ph: BEAU] CC: ^ v [ph: BEAU; ph: BEAU] DD: ^ v [ph: BEAU; ph: BEAU]
|
sdr 0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |