Class CollectableNode

java.lang.Object
  extended byCollectableNode
Direct Known Subclasses:
SoundBranch, SoundNode

public abstract class CollectableNode
extends Object

Stuff that all nodes and branches in the sound tree know.


Field Summary
 CollectableNode next
          The next branch/node/whatever to process
 
Constructor Summary
CollectableNode()
          Constructor for CollectableNode just sets next to null
 
Method Summary
 void add(CollectableNode node)
          Add the input node after the last node in this list.
abstract  Sound collect()
          Collect all the sounds from me on
abstract  Sound collectAfter()
          Collect all the sounds from me on, but if there's processing, do it after.
 CollectableNode getNext()
           
 void insertAfter(CollectableNode node)
          Insert the input node after this node.
 CollectableNode last()
          Return the last element in the list
 void playFromMeOn()
          Play the list of sound elements after me
 void remove(CollectableNode node)
          Method to remove node from list, fixing links appropriately.
 void setNext(CollectableNode nextOne)
          Methods to set and get next elements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public CollectableNode next
The next branch/node/whatever to process

Constructor Detail

CollectableNode

public CollectableNode()
Constructor for CollectableNode just sets next to null

Method Detail

setNext

public void setNext(CollectableNode nextOne)
Methods to set and get next elements

Parameters:
nextOne - next element in list

getNext

public CollectableNode getNext()

playFromMeOn

public void playFromMeOn()
Play the list of sound elements after me


collect

public abstract Sound collect()
Collect all the sounds from me on


collectAfter

public abstract Sound collectAfter()
Collect all the sounds from me on, but if there's processing, do it after.


remove

public void remove(CollectableNode node)
Method to remove node from list, fixing links appropriately.

Parameters:
node - element to remove from list.

insertAfter

public void insertAfter(CollectableNode node)
Insert the input node after this node.

Parameters:
node - element to insert after this.

last

public CollectableNode last()
Return the last element in the list


add

public void add(CollectableNode node)
Add the input node after the last node in this list.

Parameters:
node - element to insert after this.