Free Touch Pricker
    Preparing search index...

    Class AbstractSchemeAbstract

    Base for music matching schemes.

    A scheme is a MatcherSet that is able to populate its child matches automatically based on the Stage.

    Derived classes should implement createMatchers in order to set up an array of matchers for use when checking row strings.

    class MyScheme extends AbstractScheme {
    public readonly name: string = 'My music scheme';

    protected createMatchers(rounds: string): AbstractMatcher[] {
    return [
    new Pattern(
    rounds.split('').reverse().join(''), // reverses rounds
    'Backrounds',
    MatchType.Row,
    ),
    // more patterns or pattern groups
    ];
    }
    }

    Once constructed, the base class manages:

    • passing test row strings to all provided matchers
    • aggregating match counts from matchers
    • printing the music report

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    _matchers: AbstractMatcher[]

    Matchers in the set.

    _stage: Stage
    print: Print

    Accessors

    Methods