sdr 0.4

Uses of Class
net.cscott.sdr.calls.Formation

Packages that use Formation
net.cscott.sdr.calls This package contains the square dance choreography engine, and the basic types and interfaces required to communicate with it. 
net.cscott.sdr.calls.transform This package contains code to parse call lists and transform call abstract syntax in various ways. 
 

Uses of Formation in net.cscott.sdr.calls
 

Subclasses of Formation in net.cscott.sdr.calls
 class NamedTaggedFormation
          Helper class to associate a standard name with a canonical formation.
 class TaggedFormation
          A Formation is a set of dancers and positions for them.
 

Fields in net.cscott.sdr.calls declared as Formation
 Formation TimedFormation.formation
          The dancer formation called for at the given time.
static Formation Formation.FOUR_SQUARE
          Starting formation for 2-couple dancing.
 Formation Breather.FormationPiece.input
          Input formation piece.
 Formation FormationMatch.meta
          The meta formation contains one dancer for each matched sub-formation in the setup.
 Formation Breather.FormationPiece.output
          The formation which will correspond to Breather.FormationPiece.input in the output (meta) formation.
static Formation Formation.SQUARED_SET
          Starting formation for 8-couple dancing.
 

Fields in net.cscott.sdr.calls with type parameters of type Formation
static List<Formation> FormationList.all
          List of all formations defined in this class.
 

Methods in net.cscott.sdr.calls that return Formation
static Formation Breather.breathe(Formation f)
          Create a canonical formation by compressing the given one.
static Formation Breather.breathe(List<Breather.FormationPiece> pieces)
          Take a set of input formation pieces and substitute the given output formation pieces for them, breathing the result together so that the formation is compact.
static Formation Breather.insert(Formation meta, Map<Dancer,Formation> components)
          Insert formations into a meta-formation.
 Formation Formation.move(Dancer d, Position p)
          Return a formation like this one, except that the given dancer is moved to the specified position.
 Formation Formation.onlySelected()
          Create a new formation containing only the selected dancers from this formation.
 Formation Formation.recenter()
          Build a new formation, centered on 0,0.
 Formation Formation.rotate(ExactRotation rotation)
          Build a new formation, like this one except rotated around 0,0.
 Formation Formation.select(Collection<Dancer> d)
          Build a new formation with only the given dancers selected.
 Formation Formation.select(Dancer... d)
          Convenience method for select(Collection).
 

Methods in net.cscott.sdr.calls with parameters of type Formation
static void Tagger.addAutomatic(Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
           
static void Tagger.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 Formation Breather.breathe(Formation f)
          Create a canonical formation by compressing the given one.
static FormationMatch GeneralFormationMatcher.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.
abstract  boolean Predicate.evaluate(DanceState ds, Formation f, Condition c)
          Evaluates this predicate with the arguments given in the Condition node, returning a boolean.
static Formation Breather.insert(Formation meta, Map<Dancer,Formation> components)
          Insert formations into a meta-formation.
abstract  FormationMatch Selector.match(Formation f)
          Select sub-formations from a formation using this selector.
static void Tagger.tag2(Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
           
 

Method parameters in net.cscott.sdr.calls with type arguments of type Formation
static Formation Breather.insert(Formation meta, Map<Dancer,Formation> components)
          Insert formations into a meta-formation.
 

Constructors in net.cscott.sdr.calls with parameters of type Formation
Breather.FormationPiece(Formation input, Formation output)
           
Breather.FormationPiece(Formation input, Formation output, ExactRotation r)
          Prepare an argument to the Breather.breathe(net.cscott.sdr.calls.Formation) method.
Formation(Formation f, Map<Dancer,Dancer> map)
           
FormationMatch(Formation meta, Map<Dancer,TaggedFormation> matches)
           
NamedTaggedFormation(String name, Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
           
TaggedFormation(Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
           
TimedFormation(Formation formation, Fraction time, boolean isAbsolute)
           
 

Uses of Formation in net.cscott.sdr.calls.transform
 

Methods in net.cscott.sdr.calls.transform with parameters of type Formation
static DancerPath EvalPrim.apply(Dancer d, Formation f, Prim p)
          "Dance" the given primitive for the given dancer in the given formation to yield a DancerPath for that dancer.
 List<ParCall> Elaborate.doOptCall(OptCall oc, Formation f)
           
static Comp Elaborate.elaborate(DanceState ds, Formation f, Comp c, boolean doFully)
          Evaluate formations to eliminate Opt elements and identify the dancers in Pars.
 SeqCall Elaborate.visit(Apply a, Formation f)
          Expand any 'Apply' node we come to.
 Comp Elaborate.visit(If iff, Formation f)
           
 OptCall Elaborate.visit(OptCall oc, Formation f)
           
 Comp Elaborate.visit(Opt opt, Formation f)
          Go through list of possible formations, and pick the first one which works.
 ParCall Elaborate.visit(ParCall pc, Formation f)
          Select the given dancers in the formation, and evaluate the child.
 Comp Elaborate.visit(Par p, Formation _f)
          For each select clause, rephrase using 'primitive' tags.
 Comp Elaborate.visit(Warped w, Formation f)
          A little optimization: for pairs of Warps, compose them into one node.
 


sdr 0.4

Copyright © 2006-2009 C. Scott Ananian