sdr 0.7

net.cscott.sdr.calls
Class Tagger

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

public abstract class Tagger
extends Object

Helper class to add common TaggedFormation.Tags automatically to TaggedFormations.


Method Summary
static void addAutomatic(Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
           
static void addFrom(TaggedFormation template, Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
          Find all instance of the tagged template formation in the given given formation f, and add the tags from the template to the set of tags on f given in tags.
static Matcher autotag2(Matcher s)
          Return a new matcher which adds 1x2 tags (BEAU/BELLE/LEADER/TRAILER) to the generic formation matched by the given Matcher.
static Matcher autotag4(Matcher s)
          Return a new matcher which adds 1x2 and 1x4 tags (BEAU/BELLE/LEADER/TRAILER/NUMBER 1/2/3/4/CENTER/END) to the generic formation matched by the given Matcher.
static void tag2(Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
          Discover 1x2 tags (BEAU/BELLE/LEADER/TRAILER) in the given formation.
static void tag4(Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
          Discover 1x4 tags (NUMBER_1/2/3/4, CENTER/END) in the given formation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addAutomatic

public static void addAutomatic(Formation f,
                                MultiMap<Dancer,TaggedFormation.Tag> tags)

addFrom

public static void addFrom(TaggedFormation template,
                           Formation f,
                           MultiMap<Dancer,TaggedFormation.Tag> tags)
Find all instance of the tagged template formation in the given given formation f, and add the tags from the template to the set of tags on f given in tags.


autotag2

public static Matcher autotag2(Matcher s)
Return a new matcher which adds 1x2 tags (BEAU/BELLE/LEADER/TRAILER) to the generic formation matched by the given Matcher.


autotag4

public static Matcher autotag4(Matcher s)
Return a new matcher which adds 1x2 and 1x4 tags (BEAU/BELLE/LEADER/TRAILER/NUMBER 1/2/3/4/CENTER/END) to the generic formation matched by the given Matcher.


tag2

public static void tag2(Formation f,
                        MultiMap<Dancer,TaggedFormation.Tag> tags)
Discover 1x2 tags (BEAU/BELLE/LEADER/TRAILER) in the given formation.


tag4

public static void tag4(Formation f,
                        MultiMap<Dancer,TaggedFormation.Tag> tags)
Discover 1x4 tags (NUMBER_1/2/3/4, CENTER/END) in the given formation.


sdr 0.7

Copyright © 2006-2009 C. Scott Ananian