public class UDPDrivenMetronome extends Metronome
Notmally, a UDPDrivenMetronome receives its time information from a UDPMetronomeBroadcaster.
| Constructor and Description |
|---|
UDPDrivenMetronome(int port)
Explicit Value Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Reset the time.
|
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).
|
void |
setTime(int time)
Set the current time.
|
addListener, getDelay, getNumberOfListeners, removeListener, start, stoppublic UDPDrivenMetronome(int port)
throws java.io.IOException
port - The port to receive ticks onjava.io.IOExceptionpublic void reset()
Note: This method should only be called when the Metronome is not running
public void setMultiplier(int multiplier)
Note: This method should only be called when the Metronome is not running
setMultiplier in class Metronomemultiplier - The multiplierpublic void setTime(int time)
Note: This method should only be called when the Metronome is not running