public abstract class MidiModelState
extends java.lang.Object
MidiModelState contains the state of any of our MidiModels.
Each state has a score, accessible by the getScore() method, and their
natural ordering is based on this score.| Constructor and Description |
|---|
MidiModelState() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.TreeSet<? extends MidiModelState> |
close()
Return a TreeSet of all of the possible MidiModelStates which we could tansition into
when the input closes.
|
abstract double |
getScore()
Get the score of this MidiModelState.
|
abstract java.util.TreeSet<? extends MidiModelState> |
handleIncoming(java.util.List<MidiNote> notes)
Return a TreeSet of all of the possible MidiModelStates which we could tansition into
given the List of MidiNotes.
|
public abstract double getScore()
public abstract java.util.TreeSet<? extends MidiModelState> handleIncoming(java.util.List<MidiNote> notes)
notes - A List of the MidiNotes on which we need to transition.public abstract java.util.TreeSet<? extends MidiModelState> close()