sdr 0.7

net.cscott.sdr.calls
Class MatcherList

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

public class MatcherList
extends Object

The MatcherList contains matchers for various formations. It mostly parallels FormationList, although there are matchers for general formations which are a combination of several formations in the formation list.

Tests:
Apply STATIC_SQUARE matcher to a SQUARED_SET:
js> MatcherList.STATIC_SQUARE.match(Formation.SQUARED_SET)
AA^
AA:
        3Gv  3Bv
   
   4B>            2G<
   
   4G>            2B<
   
        1B^  1G^
 [3G: BELLE; 3B: BEAU; 4B: BEAU; 2G: BELLE; 4G: BELLE; 2B: BEAU; 1B: BEAU; 1G: BELLE]
Apply COUPLE matcher to a SQUARED_SET:
js> fm = MatcherList.COUPLE.match(Formation.SQUARED_SET)
     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> fm.matches.size()
4
js> fm.meta.dancers().size()
4
Apply COUPLE matcher to FOUR_SQUARE:
js> fm = MatcherList.COUPLE.match(Formation.FOUR_SQUARE)
AAv

BB^
AA:
   3B^  3G^
 [3B: BEAU; 3G: BELLE]
BB:
   1B^  1G^
 [1B: BEAU; 1G: BELLE]
Apply FACING_DANCERS matcher to FOUR_SQUARE:
js> fm = MatcherList.FACING_DANCERS.match(Formation.FOUR_SQUARE)
AAv  BB^
AA:
   1Bv
   
   3G^
 [1B: TRAILER; 3G: TRAILER]
BB:
   3Bv
   
   1G^
 [3B: TRAILER; 1G: TRAILER]
Apply FACING_COUPLES matcher to FOUR_SQUARE:
js> fm = MatcherList.FACING_COUPLES.match(Formation.FOUR_SQUARE)
AA^
AA:
   3Gv  3Bv
   
   1B^  1G^
 [3G: BELLE,TRAILER; 3B: BEAU,TRAILER; 1B: BEAU,TRAILER; 1G: BELLE,TRAILER]
Apply RH_MINIWAVE matcher to PARALLEL_RH_WAVES:
js> FormationList = FormationList.js(this); undefined;
js> fm = MatcherList.RH_MINIWAVE.match(FormationList.PARALLEL_RH_WAVES)
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]

Field Summary
static Matcher _1_X2
           
static Matcher _1_X4
           
static Matcher _1_X8
           
static Matcher _2_X2
           
static Matcher _2_X4
           
static ExprFunc<Matcher> _ALLOW_UNMATCHED
           
static ExprFunc<Matcher> _CENTER
           
static ExprFunc<Matcher> _MIXED
           
static ExprFunc<Matcher> _NOT_GRAND
          "Not grand" matcher means means don't allow matches whose bounds include the origin unless total # of dancers is 4 or less.
static ExprFunc<Matcher> _OR
           
static Matcher ANY
           
static Matcher BACK_TO_BACK_COUPLES
           
static Matcher BACK_TO_BACK_DANCERS
           
static Matcher BOX
           
static Matcher BUTTERFLY_DOUBLE_PASS_THRU
           
static Matcher CENTER_2
           
static Matcher CENTER_4
           
static Matcher CENTER_6
           
static Matcher CENTER_HALF
           
static Matcher COLUMN
           
static Matcher COMPLETED_DOUBLE_PASS_THRU
           
static Matcher COMPLETED_SINGLE_DOUBLE_PASS_THRU
           
static Matcher COUPLE
           
static Matcher DIAMOND
           
static Matcher DOUBLE_PASS_THRU
           
static Matcher EIGHT_CHAIN_THRU
           
static Matcher ENDS_IN_INVERTED_LINES
           
static Matcher ENDS_OUT_INVERTED_LINES
           
static Matcher FACING_COUPLES
           
static Matcher FACING_DANCERS
           
static Matcher FACING_DIAMOND
           
static Matcher FACING_LINES
           
static Matcher GENERAL_COLUMNS
           
static Matcher GENERAL_DIAMOND
           
static Matcher GENERAL_LINE
           
static Matcher GENERAL_PARTNERS
           
static Matcher GENERAL_QUARTER_TAG
           
static Matcher GENERAL_SINGLE_QUARTER_TAG
           
static Matcher GENERAL_TANDEM
           
static Matcher GENERAL_TIDAL_LINE
           
static Matcher INVERTED_BOX
           
static Matcher INVERTED_LINES
           
static Matcher LEFT_AND_RIGHT_GRAND
           
static Matcher LH_3_AND_1
           
static Matcher LH_ALAMO_RING
           
static Matcher LH_BOX
           
static Matcher LH_COLUMN
           
static Matcher LH_DIAMOND
           
static Matcher LH_FACING_DIAMOND
           
static Matcher LH_IN_PINWHEEL
           
static Matcher LH_MINIWAVE
           
static Matcher LH_OCEAN_WAVE
           
static Matcher LH_OUT_PINWHEEL
           
static Matcher LH_POINT_TO_POINT_DIAMONDS
           
static Matcher LH_POINT_TO_POINT_FACING_DIAMONDS
           
static Matcher LH_QUARTER_LINE
           
static Matcher LH_QUARTER_TAG
           
static Matcher LH_SINGLE_PROMENADE
           
static Matcher LH_SINGLE_QUARTER_TAG
           
static Matcher LH_SINGLE_QUARTER_ZEE
           
static Matcher LH_SINGLE_THREE_QUARTER_TAG
           
static Matcher LH_SINGLE_THREE_QUARTER_ZEE
           
static Matcher LH_SPLIT_3_AND_1
           
static Matcher LH_STAR
           
static Matcher LH_THREE_QUARTER_LINE
           
static Matcher LH_THREE_QUARTER_TAG
           
static Matcher LH_TIDAL_LINE
           
static Matcher LH_TIDAL_TWO_FACED_LINE
           
static Matcher LH_TIDAL_WAVE
           
static Matcher LH_TWIN_DIAMONDS
           
static Matcher LH_TWIN_FACING_DIAMONDS
           
static Matcher LH_TWO_FACED_LINE
           
static Matcher LINES_FACING_OUT
           
static Matcher MINIWAVE
           
static Matcher MIXED_DIAMOND
           
static Matcher MIXED_FACING_DIAMOND
           
static Matcher NONE
           
static Matcher O_DOUBLE_PASS_THRU
           
static Matcher O_SPOTS
           
static Matcher OCEAN_WAVE
           
static Matcher PARALLEL_GENERAL_LINES
           
static Matcher PARALLEL_LH_TWO_FACED_LINES
           
static Matcher PARALLEL_LH_WAVES
           
static Matcher PARALLEL_RH_TWO_FACED_LINES
           
static Matcher PARALLEL_RH_WAVES
           
static Matcher PARALLEL_TWO_FACED_LINES
           
static Matcher PARALLEL_WAVES
           
static Matcher POINT_TO_POINT_DIAMONDS
           
static Matcher POINT_TO_POINT_FACING_DIAMONDS
           
static Matcher POINT_TO_POINT_GENERAL_DIAMONDS
           
static Matcher PROMENADE
           
static Matcher QUARTER_LINE
           
static Matcher QUARTER_TAG
           
static Matcher REVERSE_SINGLE_FILE_PROMENADE
           
static Matcher RH_3_AND_1
           
static Matcher RH_ALAMO_RING
           
static Matcher RH_BOX
           
static Matcher RH_COLUMN
           
static Matcher RH_DIAMOND
           
static Matcher RH_FACING_DIAMOND
           
static Matcher RH_IN_PINWHEEL
           
static Matcher RH_MINIWAVE
           
static Matcher RH_OCEAN_WAVE
           
static Matcher RH_OUT_PINWHEEL
           
static Matcher RH_POINT_TO_POINT_DIAMONDS
           
static Matcher RH_POINT_TO_POINT_FACING_DIAMONDS
           
static Matcher RH_QUARTER_LINE
           
static Matcher RH_QUARTER_TAG
           
static Matcher RH_SINGLE_PROMENADE
           
static Matcher RH_SINGLE_QUARTER_TAG
           
static Matcher RH_SINGLE_QUARTER_ZEE
           
static Matcher RH_SINGLE_THREE_QUARTER_TAG
           
static Matcher RH_SINGLE_THREE_QUARTER_ZEE
           
static Matcher RH_SPLIT_3_AND_1
           
static Matcher RH_STAR
           
static Matcher RH_THREE_QUARTER_LINE
           
static Matcher RH_THREE_QUARTER_TAG
           
static Matcher RH_TIDAL_LINE
           
static Matcher RH_TIDAL_TWO_FACED_LINE
           
static Matcher RH_TIDAL_WAVE
           
static Matcher RH_TWIN_DIAMONDS
           
static Matcher RH_TWIN_FACING_DIAMONDS
           
static Matcher RH_TWO_FACED_LINE
           
static Matcher RIGHT_AND_LEFT_GRAND
           
static Matcher RIGHT_AND_LEFT_GRAND_DIAMOND
           
static Matcher SIAMESE
          Siamese matcher.
static Matcher SINGLE_DANCER
           
static Matcher SINGLE_DOUBLE_PASS_THRU
           
static Matcher SINGLE_FILE_PROMENADE
           
static Matcher SINGLE_INVERTED_LINE
           
static Matcher SINGLE_QUARTER_TAG
           
static Matcher SINGLE_QUARTER_ZEE
           
static Matcher SINGLE_STATIC_SQUARE
           
static Matcher SINGLE_THREE_QUARTER_TAG
           
static Matcher SINGLE_THREE_QUARTER_ZEE
           
static Matcher STAR_PROMENADE
           
static Matcher STATIC_SQUARE
           
static Matcher STATIC_SQUARE_FACING_OUT
           
static Matcher TANDEM
           
static Matcher TANDEM_COUPLES
           
static Matcher THAR
           
static Matcher THREE_QUARTER_LINE
           
static Matcher THREE_QUARTER_TAG
           
static Matcher TIDAL_LINE
           
static Matcher TIDAL_TWO_FACED_LINE
           
static Matcher TIDAL_WAVE
           
static Matcher TRADE_BY
           
static Matcher TWIN_DIAMONDS
           
static Matcher TWIN_FACING_DIAMONDS
           
static Matcher TWIN_GENERAL_DIAMONDS
           
static Matcher TWO_FACED_LINE
           
static Matcher WRONG_WAY_PROMENADE
           
static Matcher WRONG_WAY_STAR_PROMENADE
           
static Matcher WRONG_WAY_THAR
           
 
Method Summary
static Matcher mixed(String name, TaggedFormation... goals)
           
static Matcher OR(String name, List<Matcher> alternatives)
           
static Matcher OR(String name, Matcher... alternatives)
          The OR(java.lang.String, net.cscott.sdr.calls.Matcher...) function creates a Matcher which matches any one of the given alternatives.
static ExprFunc<Matcher> valueOf(String s)
          Parse names of Matcher combination functions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

public static final Matcher ANY

NONE

public static final Matcher NONE

SINGLE_DANCER

public static final Matcher SINGLE_DANCER

GENERAL_PARTNERS

public static final Matcher GENERAL_PARTNERS

GENERAL_TANDEM

public static final Matcher GENERAL_TANDEM

_1_X2

public static final Matcher _1_X2

COUPLE

public static final Matcher COUPLE

FACING_DANCERS

public static final Matcher FACING_DANCERS

BACK_TO_BACK_DANCERS

public static final Matcher BACK_TO_BACK_DANCERS

TANDEM

public static final Matcher TANDEM

RH_MINIWAVE

public static final Matcher RH_MINIWAVE

LH_MINIWAVE

public static final Matcher LH_MINIWAVE

MINIWAVE

public static final Matcher MINIWAVE

GENERAL_LINE

public static final Matcher GENERAL_LINE

_1_X4

public static final Matcher _1_X4

_2_X2

public static final Matcher _2_X2

SINGLE_STATIC_SQUARE

public static final Matcher SINGLE_STATIC_SQUARE

FACING_COUPLES

public static final Matcher FACING_COUPLES

BACK_TO_BACK_COUPLES

public static final Matcher BACK_TO_BACK_COUPLES

TANDEM_COUPLES

public static final Matcher TANDEM_COUPLES

RH_OCEAN_WAVE

public static final Matcher RH_OCEAN_WAVE

LH_OCEAN_WAVE

public static final Matcher LH_OCEAN_WAVE

OCEAN_WAVE

public static final Matcher OCEAN_WAVE

RH_BOX

public static final Matcher RH_BOX

LH_BOX

public static final Matcher LH_BOX

BOX

public static final Matcher BOX

INVERTED_BOX

public static final Matcher INVERTED_BOX

RH_IN_PINWHEEL

public static final Matcher RH_IN_PINWHEEL

LH_IN_PINWHEEL

public static final Matcher LH_IN_PINWHEEL

RH_OUT_PINWHEEL

public static final Matcher RH_OUT_PINWHEEL

LH_OUT_PINWHEEL

public static final Matcher LH_OUT_PINWHEEL

RH_SINGLE_QUARTER_ZEE

public static final Matcher RH_SINGLE_QUARTER_ZEE

LH_SINGLE_QUARTER_ZEE

public static final Matcher LH_SINGLE_QUARTER_ZEE

SINGLE_QUARTER_ZEE

public static final Matcher SINGLE_QUARTER_ZEE

RH_SINGLE_THREE_QUARTER_ZEE

public static final Matcher RH_SINGLE_THREE_QUARTER_ZEE

LH_SINGLE_THREE_QUARTER_ZEE

public static final Matcher LH_SINGLE_THREE_QUARTER_ZEE

SINGLE_THREE_QUARTER_ZEE

public static final Matcher SINGLE_THREE_QUARTER_ZEE

RH_TWO_FACED_LINE

public static final Matcher RH_TWO_FACED_LINE

LH_TWO_FACED_LINE

public static final Matcher LH_TWO_FACED_LINE

TWO_FACED_LINE

public static final Matcher TWO_FACED_LINE

SINGLE_INVERTED_LINE

public static final Matcher SINGLE_INVERTED_LINE

GENERAL_DIAMOND

public static final Matcher GENERAL_DIAMOND

RH_DIAMOND

public static final Matcher RH_DIAMOND

RH_FACING_DIAMOND

public static final Matcher RH_FACING_DIAMOND

LH_DIAMOND

public static final Matcher LH_DIAMOND

LH_FACING_DIAMOND

public static final Matcher LH_FACING_DIAMOND

FACING_DIAMOND

public static final Matcher FACING_DIAMOND

MIXED_FACING_DIAMOND

public static final Matcher MIXED_FACING_DIAMOND

DIAMOND

public static final Matcher DIAMOND

MIXED_DIAMOND

public static final Matcher MIXED_DIAMOND

RH_STAR

public static final Matcher RH_STAR

LH_STAR

public static final Matcher LH_STAR

RH_SINGLE_PROMENADE

public static final Matcher RH_SINGLE_PROMENADE

LH_SINGLE_PROMENADE

public static final Matcher LH_SINGLE_PROMENADE

GENERAL_SINGLE_QUARTER_TAG

public static final Matcher GENERAL_SINGLE_QUARTER_TAG

RH_SINGLE_QUARTER_TAG

public static final Matcher RH_SINGLE_QUARTER_TAG

LH_SINGLE_QUARTER_TAG

public static final Matcher LH_SINGLE_QUARTER_TAG

SINGLE_QUARTER_TAG

public static final Matcher SINGLE_QUARTER_TAG

RH_SINGLE_THREE_QUARTER_TAG

public static final Matcher RH_SINGLE_THREE_QUARTER_TAG

LH_SINGLE_THREE_QUARTER_TAG

public static final Matcher LH_SINGLE_THREE_QUARTER_TAG

SINGLE_THREE_QUARTER_TAG

public static final Matcher SINGLE_THREE_QUARTER_TAG

_1_X8

public static final Matcher _1_X8

_2_X4

public static final Matcher _2_X4

PARALLEL_GENERAL_LINES

public static final Matcher PARALLEL_GENERAL_LINES

GENERAL_COLUMNS

public static final Matcher GENERAL_COLUMNS

STATIC_SQUARE

public static final Matcher STATIC_SQUARE

STATIC_SQUARE_FACING_OUT

public static final Matcher STATIC_SQUARE_FACING_OUT

SINGLE_FILE_PROMENADE

public static final Matcher SINGLE_FILE_PROMENADE

REVERSE_SINGLE_FILE_PROMENADE

public static final Matcher REVERSE_SINGLE_FILE_PROMENADE

RH_ALAMO_RING

public static final Matcher RH_ALAMO_RING

LH_ALAMO_RING

public static final Matcher LH_ALAMO_RING

O_SPOTS

public static final Matcher O_SPOTS

PROMENADE

public static final Matcher PROMENADE

WRONG_WAY_PROMENADE

public static final Matcher WRONG_WAY_PROMENADE

STAR_PROMENADE

public static final Matcher STAR_PROMENADE

WRONG_WAY_STAR_PROMENADE

public static final Matcher WRONG_WAY_STAR_PROMENADE

THAR

public static final Matcher THAR

WRONG_WAY_THAR

public static final Matcher WRONG_WAY_THAR

RIGHT_AND_LEFT_GRAND

public static final Matcher RIGHT_AND_LEFT_GRAND

RIGHT_AND_LEFT_GRAND_DIAMOND

public static final Matcher RIGHT_AND_LEFT_GRAND_DIAMOND

LEFT_AND_RIGHT_GRAND

public static final Matcher LEFT_AND_RIGHT_GRAND

FACING_LINES

public static final Matcher FACING_LINES

EIGHT_CHAIN_THRU

public static final Matcher EIGHT_CHAIN_THRU

TRADE_BY

public static final Matcher TRADE_BY

DOUBLE_PASS_THRU

public static final Matcher DOUBLE_PASS_THRU

SINGLE_DOUBLE_PASS_THRU

public static final Matcher SINGLE_DOUBLE_PASS_THRU

COMPLETED_DOUBLE_PASS_THRU

public static final Matcher COMPLETED_DOUBLE_PASS_THRU

COMPLETED_SINGLE_DOUBLE_PASS_THRU

public static final Matcher COMPLETED_SINGLE_DOUBLE_PASS_THRU

LINES_FACING_OUT

public static final Matcher LINES_FACING_OUT

PARALLEL_RH_WAVES

public static final Matcher PARALLEL_RH_WAVES

PARALLEL_LH_WAVES

public static final Matcher PARALLEL_LH_WAVES

PARALLEL_WAVES

public static final Matcher PARALLEL_WAVES

PARALLEL_RH_TWO_FACED_LINES

public static final Matcher PARALLEL_RH_TWO_FACED_LINES

PARALLEL_LH_TWO_FACED_LINES

public static final Matcher PARALLEL_LH_TWO_FACED_LINES

PARALLEL_TWO_FACED_LINES

public static final Matcher PARALLEL_TWO_FACED_LINES

RH_COLUMN

public static final Matcher RH_COLUMN

LH_COLUMN

public static final Matcher LH_COLUMN

COLUMN

public static final Matcher COLUMN

ENDS_IN_INVERTED_LINES

public static final Matcher ENDS_IN_INVERTED_LINES

ENDS_OUT_INVERTED_LINES

public static final Matcher ENDS_OUT_INVERTED_LINES

INVERTED_LINES

public static final Matcher INVERTED_LINES

GENERAL_QUARTER_TAG

public static final Matcher GENERAL_QUARTER_TAG

RH_QUARTER_TAG

public static final Matcher RH_QUARTER_TAG

LH_QUARTER_TAG

public static final Matcher LH_QUARTER_TAG

QUARTER_TAG

public static final Matcher QUARTER_TAG

RH_THREE_QUARTER_TAG

public static final Matcher RH_THREE_QUARTER_TAG

LH_THREE_QUARTER_TAG

public static final Matcher LH_THREE_QUARTER_TAG

THREE_QUARTER_TAG

public static final Matcher THREE_QUARTER_TAG

RH_QUARTER_LINE

public static final Matcher RH_QUARTER_LINE

LH_QUARTER_LINE

public static final Matcher LH_QUARTER_LINE

QUARTER_LINE

public static final Matcher QUARTER_LINE

RH_THREE_QUARTER_LINE

public static final Matcher RH_THREE_QUARTER_LINE

LH_THREE_QUARTER_LINE

public static final Matcher LH_THREE_QUARTER_LINE

THREE_QUARTER_LINE

public static final Matcher THREE_QUARTER_LINE

RH_TWIN_DIAMONDS

public static final Matcher RH_TWIN_DIAMONDS

LH_TWIN_DIAMONDS

public static final Matcher LH_TWIN_DIAMONDS

TWIN_DIAMONDS

public static final Matcher TWIN_DIAMONDS

RH_POINT_TO_POINT_DIAMONDS

public static final Matcher RH_POINT_TO_POINT_DIAMONDS

LH_POINT_TO_POINT_DIAMONDS

public static final Matcher LH_POINT_TO_POINT_DIAMONDS

POINT_TO_POINT_DIAMONDS

public static final Matcher POINT_TO_POINT_DIAMONDS

RH_POINT_TO_POINT_FACING_DIAMONDS

public static final Matcher RH_POINT_TO_POINT_FACING_DIAMONDS

LH_POINT_TO_POINT_FACING_DIAMONDS

public static final Matcher LH_POINT_TO_POINT_FACING_DIAMONDS

POINT_TO_POINT_FACING_DIAMONDS

public static final Matcher POINT_TO_POINT_FACING_DIAMONDS

RH_TWIN_FACING_DIAMONDS

public static final Matcher RH_TWIN_FACING_DIAMONDS

LH_TWIN_FACING_DIAMONDS

public static final Matcher LH_TWIN_FACING_DIAMONDS

TWIN_FACING_DIAMONDS

public static final Matcher TWIN_FACING_DIAMONDS

TWIN_GENERAL_DIAMONDS

public static final Matcher TWIN_GENERAL_DIAMONDS

POINT_TO_POINT_GENERAL_DIAMONDS

public static final Matcher POINT_TO_POINT_GENERAL_DIAMONDS

RH_TIDAL_WAVE

public static final Matcher RH_TIDAL_WAVE

LH_TIDAL_WAVE

public static final Matcher LH_TIDAL_WAVE

TIDAL_WAVE

public static final Matcher TIDAL_WAVE

RH_TIDAL_TWO_FACED_LINE

public static final Matcher RH_TIDAL_TWO_FACED_LINE

LH_TIDAL_TWO_FACED_LINE

public static final Matcher LH_TIDAL_TWO_FACED_LINE

TIDAL_TWO_FACED_LINE

public static final Matcher TIDAL_TWO_FACED_LINE

RH_TIDAL_LINE

public static final Matcher RH_TIDAL_LINE

LH_TIDAL_LINE

public static final Matcher LH_TIDAL_LINE

TIDAL_LINE

public static final Matcher TIDAL_LINE

GENERAL_TIDAL_LINE

public static final Matcher GENERAL_TIDAL_LINE

O_DOUBLE_PASS_THRU

public static final Matcher O_DOUBLE_PASS_THRU

BUTTERFLY_DOUBLE_PASS_THRU

public static final Matcher BUTTERFLY_DOUBLE_PASS_THRU

CENTER_2

public static final Matcher CENTER_2

CENTER_4

public static final Matcher CENTER_4

CENTER_6

public static final Matcher CENTER_6

CENTER_HALF

public static final Matcher CENTER_HALF

SIAMESE

public static final Matcher SIAMESE
Siamese matcher. Used in Siamese concept (C1).


_MIXED

public static ExprFunc<Matcher> _MIXED

_OR

public static ExprFunc<Matcher> _OR

_CENTER

public static ExprFunc<Matcher> _CENTER

_ALLOW_UNMATCHED

public static ExprFunc<Matcher> _ALLOW_UNMATCHED

_NOT_GRAND

public static ExprFunc<Matcher> _NOT_GRAND
"Not grand" matcher means means don't allow matches whose bounds include the origin unless total # of dancers is 4 or less. This is used in definition of 'remake', etc.

Tests:
LH miniwaves in RH tidal wave:
js> FormationList = FormationList.js(this); undefined;
js> e = net.cscott.sdr.calls.ast.AstNode.valueOf("(Expr not grand (Expr allow unmatched 'LH MINIWAVE))")
(Expr not grand (Expr allow unmatched 'LH MINIWAVE))
js> sel = e.evaluate(java.lang.Class.forName("net.cscott.sdr.calls.Matcher"), null)
not grand(allow unmatched(LH MINIWAVE))
js> SD = StandardDancer.values(); undefined
js> f = FormationList.RH_TIDAL_WAVE.mapStd([SD[0],SD[1],SD[2],SD[3]]) ; f.toStringDiagram()
1B^  1Gv  2B^  2Gv  4G^  4Bv  3G^  3Bv
js> sel.match(f)
AA^  BB^  CCv  DD^  EEv  FFv
AA: (unmatched)
   1B^
BB:
   1Gv  2B^
 [1G: BELLE; 2B: BELLE]
CC: (unmatched)
   2G^
DD: (unmatched)
   4G^
EE:
   3Gv  4B^
 [3G: BELLE; 4B: BELLE]
FF: (unmatched)
   3B^

LH_3_AND_1

public static final Matcher LH_3_AND_1

LH_SPLIT_3_AND_1

public static final Matcher LH_SPLIT_3_AND_1

RH_3_AND_1

public static final Matcher RH_3_AND_1

RH_SPLIT_3_AND_1

public static final Matcher RH_SPLIT_3_AND_1
Method Detail

OR

public static Matcher OR(String name,
                         Matcher... alternatives)
The OR(java.lang.String, net.cscott.sdr.calls.Matcher...) function creates a Matcher which matches any one of the given alternatives.

Tests:
Diamonds or quarter tag:
js> FormationList = FormationList.js(this); undefined;
js> sel = MatcherList.OR("OR(RH BOX,RH DIAMOND)", MatcherList.RH_BOX, MatcherList.RH_DIAMOND)
OR(RH BOX,RH DIAMOND)
js> sel.match(FormationList.RH_BOX)                                    
AA^
AA:
   ^    v
   
   ^    v
 [ph: BEAU,LEADER; ph: BEAU,TRAILER; ph: BEAU,TRAILER; ph: BEAU,LEADER]
js> sel.match(FormationList.RH_DIAMOND)
AA^
AA:
     >
   
   ^    v
   
     <
 [ph: POINT; ph: BEAU,CENTER; ph: BEAU,CENTER; ph: POINT]

OR

public static Matcher OR(String name,
                         List<Matcher> alternatives)

mixed

public static Matcher mixed(String name,
                            TaggedFormation... goals)

valueOf

public static ExprFunc<Matcher> valueOf(String s)
Parse names of Matcher combination functions.


sdr 0.7

Copyright © 2006-2009 C. Scott Ananian