|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.log4jfugue.Music
public class Music
This is the central repository of knowledge about the system. It contains the accumulators of located search string counts, which are used by both the message receiver and the sound builder classes
Field Summary | |
---|---|
protected java.lang.Integer |
buildIndex
|
protected int[][] |
counts
|
static int |
MAX_MIDI_VOICES
|
Constructor Summary | |
---|---|
Music()
|
Method Summary | |
---|---|
InstrumentVoice |
getInstrumentVoice(int voiceNumber)
Get a full instrument definition given the instrument number |
int |
getPlayCount(int voiceNumber)
get the count for a particular instrument out of the right accumulator |
void |
incrementInstrumentCount(java.lang.String instrumentName)
Used by the Message Receiver, this is the way to increment the count of an instrument when its associated search string is found |
void |
setProperties(java.util.Properties messages)
Used by Spring DI this accepts the set of properties that define the search strings and associated instruments |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_MIDI_VOICES
protected int[][] counts
protected java.lang.Integer buildIndex
Constructor Detail |
---|
public Music()
Method Detail |
---|
public void setProperties(java.util.Properties messages)
messages
- public InstrumentVoice getInstrumentVoice(int voiceNumber)
voiceNumber
-
public void incrementInstrumentCount(java.lang.String instrumentName)
instrumentName
- public int getPlayCount(int voiceNumber)
voiceNumber
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |