|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectevent.Metronome
event.UDPDrivenMetronome
public class UDPDrivenMetronome
A Metronome that is driven by UDP messages. Notmally, a UDPDrivenMetronome receives its time information from a UDPMetronomeBroadcaster.
Field Summary |
---|
Fields inherited from class event.Metronome |
---|
delay, multiplier, time, timerThread |
Constructor Summary | |
---|---|
UDPDrivenMetronome(int port)
Explicit Value Constructor |
Method Summary | |
---|---|
void |
reset()
Reset the time Note: This method should only be called when the Metronome is not running |
void |
run()
The code that is executed in the timer thread (required by Runnable) |
void |
setMultiplier(int multiplier)
Set the multiplier (i.e., the apparent speed-up factor) Note: This method should only be called when the Metronome is not running |
void |
setTime(int time)
Set the current time Note: This method should only be called when the Metronome is not running |
Methods inherited from class event.Metronome |
---|
addListener, getDelay, getNumberOfListeners, notifyListeners, removeListener, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UDPDrivenMetronome(int port) throws java.io.IOException
port
- The port to receive ticks on
java.io.IOException
Method Detail |
---|
public void reset()
reset
in class Metronome
public void setMultiplier(int multiplier)
setMultiplier
in class Metronome
multiplier
- The multiplierpublic void setTime(int time)
setTime
in class Metronome
time
- The current timepublic void run()
run
in interface java.lang.Runnable
run
in class Metronome
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |