Package PamguardMVC
Class PamObserverAdapter
java.lang.Object
PamguardMVC.PamObserverAdapter
- All Implemented Interfaces:
 PamObserver
- Direct Known Subclasses:
 ClassifierHistoryWindow,ClickSidePanel,ClipProcess.ClipBlockProcess,DataCounter,DepthSidePanel,FormsAlertSidePanel,GPSDataSystem,IshDetSave,LevelMeterSidePanel,PamSimpleObserver,RoccaSidePanel,WhistleSidePanel
Adapter class for PamObserver so not necessary to implement
 absolutely everything.
- Author:
 - Doug Gillespie
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(PamObservable observable, PamDataUnit pamDataUnit) Informs the PamObserver that new data have been added to the Observable classlonggetRequiredDataHistory(PamObservable observable, Object arg) voidmasterClockUpdate(long milliSeconds, long sampleNumber) voidvoidreceiveSourceNotification(int type, Object object) Receive a notification from the data source - typically a change in DAQ status.voidremoveObservable(PamObservable observable) called when an Observable (PamDataBlock) is removed from the systemvoidsetSampleRate(float sampleRate, boolean notify) New sample ratevoidupdateData(PamObservable observable, PamDataUnit pamDataUnit) Informs the PamObserver that existing data have been updatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PamguardMVC.PamObserver
getObserverName 
- 
Constructor Details
- 
PamObserverAdapter
public PamObserverAdapter() 
 - 
 - 
Method Details
- 
getObserverObject
- Specified by:
 getObserverObjectin interfacePamObserver- Returns:
 - the actual observer. In most cases concrete classes will just return 'this' in response. The exception is the Threaded observer, which will return the single thread observer.
 
 - 
getRequiredDataHistory
- Specified by:
 getRequiredDataHistoryin interfacePamObserver- Parameters:
 arg- optional argument from PamObservable- Returns:
 - time in milliseconds required by data held in PamObservable
 
 - 
masterClockUpdate
public void masterClockUpdate(long milliSeconds, long sampleNumber) - Specified by:
 masterClockUpdatein interfacePamObserver
 - 
noteNewSettings
public void noteNewSettings()- Specified by:
 noteNewSettingsin interfacePamObserver
 - 
removeObservable
Description copied from interface:PamObservercalled when an Observable (PamDataBlock) is removed from the system- Specified by:
 removeObservablein interfacePamObserver
 - 
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserverNew sample rate- Specified by:
 setSampleRatein interfacePamObserver- Parameters:
 sampleRate-notify- Notify other PamObservers and PamObservables in the chain.
 - 
addData
Description copied from interface:PamObserverInforms the PamObserver that new data have been added to the Observable class- Specified by:
 addDatain interfacePamObserver
 - 
updateData
Description copied from interface:PamObserverInforms the PamObserver that existing data have been updated- Specified by:
 updateDatain interfacePamObserver
 - 
receiveSourceNotification
Description copied from interface:PamObserverReceive a notification from the data source - typically a change in DAQ status. See the constants listed in AcquisitionProcess for potential change types.- Specified by:
 receiveSourceNotificationin interfacePamObserver- Parameters:
 type- the type of changeobject- generic object added here so that we can include anything in the future
 
 -