public abstract class MidiModel
extends java.lang.Object
MidiModel
is a generic interface which defines any model which takes
a series of MidiNotes as input through the handleIncoming(List)
method,
and generates some sort of hypotheses, which can be obtained through the
getHypotheses()
method.Constructor and Description |
---|
MidiModel() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
This method is called to tell the given model that the input has finished and to flush out all
of its states.
|
abstract java.util.TreeSet<? extends MidiModelState> |
getHypotheses()
This method returns a TreeSet of the current hypothesis states of this MidiModel.
|
abstract void |
handleIncoming(java.util.List<MidiNote> notes)
This method takes as input some List of MidiNotes, and then does some work on
the notes, updating its list of hypotheses in the process.
|
java.lang.String |
toString() |
public abstract void handleIncoming(java.util.List<MidiNote> notes)
notes
- A List of the MidiNotes which we want to handle next.public abstract void close()
public abstract java.util.TreeSet<? extends MidiModelState> getHypotheses()
public java.lang.String toString()
toString
in class java.lang.Object