|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uiuc.cs397rhc.sound.ChannelGroupCondition
ChannelGroupCondition is a convenience
MidiCondition that is satisfied by a
MidiMessage whose channel is one of a given group of channels.
| Constructor Summary | |
|---|---|
ChannelGroupCondition(int[] channels)
Create a ChannelGroupCondition that is satisfied by
MidiMessage whose channel is one of the given group of
channels. |
|
| Method Summary | |
|---|---|
java.lang.String |
getPrettyString()
Returns a pretty, printable representation of this condition. |
boolean |
isSatisfiedBy(javax.sound.midi.MidiMessage msg,
long time)
Whether the condition is satisfied by the given MidiMessage
and timestamp. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelGroupCondition(int[] channels)
ChannelGroupCondition that is satisfied by
MidiMessage whose channel is one of the given group of
channels.
channels - the group of channels| Method Detail |
|---|
public boolean isSatisfiedBy(javax.sound.midi.MidiMessage msg,
long time)
MidiConditionMidiMessage
and timestamp.
isSatisfiedBy in interface MidiConditionmsg - the message being checkedtime - the timestamp of the message
true if satisfied, false otherwise.public java.lang.String getPrettyString()
MidiCondition
getPrettyString in interface MidiConditionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||