public interface PamObserver
PamObserver is similar to the Java Observer interface but with additional functionality to that the Observered class (generally a PamDataBlock) can query the PamObserver as to which of the PamDataUnits may be deleted.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getObserverName() |
PamObserver |
getObserverObject() |
long |
getRequiredDataHistory(PamObservable o,
java.lang.Object arg) |
void |
masterClockUpdate(long milliSeconds,
long sampleNumber) |
void |
noteNewSettings() |
void |
removeObservable(PamObservable o)
called when an Observable (PamDataBlock) is removed from the system
|
void |
setSampleRate(float sampleRate,
boolean notify)
New sample rate
|
void |
update(PamObservable o,
PamDataUnit arg)
Informs the PamObserver that new data have been added to the Observable
class
|
long getRequiredDataHistory(PamObservable o, java.lang.Object arg)
o
- PamObservable class requiring the dataarg
- optional argument from PamObservablevoid update(PamObservable o, PamDataUnit arg)
o
- Reference to the Observable (a PamDataBlock)arg
- Reference to the new PamDataUnitvoid removeObservable(PamObservable o)
void setSampleRate(float sampleRate, boolean notify)
sampleRate
- notify
- Notify other PamObservers and PamObservables in the chain.void noteNewSettings()
java.lang.String getObserverName()
void masterClockUpdate(long milliSeconds, long sampleNumber)
PamObserver getObserverObject()