|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.frinika.contrib.boblang.CommandList
public class CommandList
Implements a thread safe circular buffer of commands with appropriate notify and time out facilities.
Field Summary | |
---|---|
static int |
NOTE_OFF
|
static int |
NOTE_ON
|
Constructor Summary | |
---|---|
CommandList()
Constructor to create an empty buffer |
Method Summary | |
---|---|
int[] |
getCommand()
Get the next command type and note from the buffer. |
boolean |
isCommandWaiting(long waitMsecs)
Return true if a command is waiting in the command buffer |
void |
putCommand(int type,
int note)
Put a command in the buffer and then notify any waiting tasks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOTE_ON
public static final int NOTE_OFF
Constructor Detail |
---|
public CommandList()
Method Detail |
---|
public void putCommand(int type, int note)
public boolean isCommandWaiting(long waitMsecs)
public int[] getCommand()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |