public abstract class MTree.Visitor extends Object
MTree m
, execute
m.new Visitor(){...}.visit();
The code at "..." must override action(MTree)
.Modifier and Type | Field and Description |
---|---|
(package private) Rational |
currentProportion
The factor to apply (at the currently visited node) to the printed duration symbols.
|
(package private) @Opt MTree.EssentialBracket |
lowestBracket
The most recently recognizes bracket when descending.
|
Constructor and Description |
---|
Visitor() |
Modifier and Type | Method and Description |
---|---|
abstract void |
action(MTree mt)
Payload method to be overridden by user.
|
protected void |
testCloseBrackets(Rational when)
Called for each node to close essential n-plet-brackets, iff their
end-of-duration is reached.
|
void |
visit()
Entry point for applyint the visitor to the node it is an inner instance of.
|
Rational currentProportion
@Opt @Opt MTree.EssentialBracket lowestBracket
protected void testCloseBrackets(Rational when)
lowestBracket
and writes currentProportion
.
ATTENTION ASSUME that for each bracket holds: "vanishing implies singleton"public void visit()
public abstract void action(MTree mt)
currentProportion
and lowestBracket
can be used in the code
additionally to the argument "mt".