|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprovided.music.DecoratorSeqList
public class DecoratorSeqList
An ISeqList that transparently routes the visitor execution to its decoree. This class is primarily used to provide a placeholder when a the music should flow to a specific point in the sequence but that point has not yet been calculated, as occurs for instance, during the processing of repeats. When that target point is finally calculated, the decoree can be set and the decorated target will behave identically to the target. This decorator can also be used to dynamically change the flow of the music by changing the target.
Field Summary | |
---|---|
private ISeqList |
decoree
The decoree/target ISeqList list. |
Constructor Summary | |
---|---|
DecoratorSeqList()
Constructor that is used when the decoree is not known at construction time. |
|
DecoratorSeqList(ISeqList decoree)
Constructor used to set the decoree to a known value at construction time. |
Method Summary | |
---|---|
java.lang.Object |
execute(IPhraseVisitor algo,
java.lang.Object... params)
Simply delegates the call to the decoree. |
void |
setDecoree(ISeqList decoree)
Setter methods used to set the decoree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ISeqList decoree
Constructor Detail |
---|
public DecoratorSeqList(ISeqList decoree)
decoree
- public DecoratorSeqList()
Method Detail |
---|
public void setDecoree(ISeqList decoree)
decoree
- The new decoree ISeqList.public java.lang.Object execute(IPhraseVisitor algo, java.lang.Object... params)
execute
in interface IPhrase
algo
- The visitor to executeparams
- The input parameters supplied to the algo when its appropriate case is called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |