|
sdr 0.21 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cscott.sdr.calls.transform.TransformVisitor<Formation>
net.cscott.sdr.calls.transform.Elaborate
public class Elaborate
The Elaborate
class does formation evaluation to eliminate
Opt
elements in the call tree and identify the dancers in
Par
s. It inserts Warp
elements as needed.
The result is a 'simplified tree'.
Method Summary | |
---|---|
List<ParCall> |
doOptCall(OptCall oc,
Formation f)
|
static Comp |
elaborate(DanceState ds,
Formation f,
Comp c,
boolean doFully)
|
SeqCall |
visit(Apply a,
Formation f)
Expand any 'Apply' node we come to. |
Comp |
visit(If iff,
Formation f)
|
OptCall |
visit(OptCall oc,
Formation f)
|
Comp |
visit(Opt opt,
Formation f)
Go through list of possible formations, and pick the first one which works. |
ParCall |
visit(ParCall pc,
Formation f)
Select the given dancers in the formation, and evaluate the child. |
Comp |
visit(Par p,
Formation _f)
For each select clause, rephrase using 'primitive' tags. |
Comp |
visit(Warped w,
Formation f)
A little optimization: for pairs of Warps, compose them into one node. |
Methods inherited from class net.cscott.sdr.calls.transform.TransformVisitor |
---|
visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Comp elaborate(DanceState ds, Formation f, Comp c, boolean doFully)
public SeqCall visit(Apply a, Formation f)
visit
in class TransformVisitor<Formation>
public Comp visit(If iff, Formation f)
visit
in class TransformVisitor<Formation>
public Comp visit(Opt opt, Formation f)
visit
in class TransformVisitor<Formation>
public List<ParCall> doOptCall(OptCall oc, Formation f)
public OptCall visit(OptCall oc, Formation f)
visit
in class TransformVisitor<Formation>
public Comp visit(Par p, Formation _f)
visit
in class TransformVisitor<Formation>
public ParCall visit(ParCall pc, Formation f)
visit
in class TransformVisitor<Formation>
public Comp visit(Warped w, Formation f)
visit
in class TransformVisitor<Formation>
|
sdr 0.21 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |