hmi.elckerlyc.anticipator
Class Anticipator

java.lang.Object
  extended by hmi.elckerlyc.anticipator.Anticipator
Direct Known Subclasses:
MetronomeAnticipator, SpaceBarAnticipator, SpaceBarTempoAnticipator

@ThreadSafe
public class Anticipator
extends Object


Field Summary
private  Map<String,TimePeg> pegs
           
 
Constructor Summary
Anticipator()
           
 
Method Summary
 void addSynchronisationPoint(String syncRef, TimePeg sp)
           
 TimePeg getSynchronisationPoint(String syncRef)
           
 Collection<TimePeg> getTimePegs()
          Get an unmodifiable view of the time pegs handled by this anticipator
 void setSynchronisationPoint(String syncRef, double time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pegs

private Map<String,TimePeg> pegs
Constructor Detail

Anticipator

public Anticipator()
Method Detail

getTimePegs

public Collection<TimePeg> getTimePegs()
Get an unmodifiable view of the time pegs handled by this anticipator


getSynchronisationPoint

public TimePeg getSynchronisationPoint(String syncRef)

addSynchronisationPoint

public void addSynchronisationPoint(String syncRef,
                                    TimePeg sp)

setSynchronisationPoint

public void setSynchronisationPoint(String syncRef,
                                    double time)