hmi.elckerlyc.anticipator
Class SpaceBarTempoAnticipator
java.lang.Object
hmi.elckerlyc.anticipator.Anticipator
hmi.elckerlyc.anticipator.SpaceBarTempoAnticipator
- All Implemented Interfaces:
- KeyInfo, KeyListener, EventListener
public class SpaceBarTempoAnticipator
- extends Anticipator
- implements KeyListener, KeyInfo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
orderedSynchs
private List<TimePeg> orderedSynchs
physicsClock
private SystemClock physicsClock
pressed
private boolean pressed
observable
private SpaceBarTempoAnticipator.SBAObservable observable
PREDICTION_SIZE
private static final int PREDICTION_SIZE
- See Also:
- Constant Field Values
tempoBuffer
private CircularBuffer<Double> tempoBuffer
logger
private org.slf4j.Logger logger
SpaceBarTempoAnticipator
public SpaceBarTempoAnticipator()
getTimePegs
public List<TimePeg> getTimePegs()
- Description copied from class:
Anticipator
- Get an unmodifiable view of the time pegs handled by this anticipator
- Overrides:
getTimePegs in class Anticipator
- Returns:
- a read-only view of the time pegs handled by this anticipator
setPhysicsClock
public void setPhysicsClock(SystemClock phClock)
addSynchronisationPoint
public void addSynchronisationPoint(String syncRef,
TimePeg sp)
- Overrides:
addSynchronisationPoint in class Anticipator
updateTempo
public void updateTempo(double tempo,
double startTime)
addObserver
public void addObserver(Observer o)
getTempo
private double getTempo()
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed in interface KeyListener
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased in interface KeyListener
keyTyped
public void keyTyped(KeyEvent arg0)
- Specified by:
keyTyped in interface KeyListener
isPressed
public boolean isPressed()
- Specified by:
isPressed in interface KeyInfo