Package ltsa

Class LtsaProcess

All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class LtsaProcess extends PamProcess
  • Constructor Details

    • LtsaProcess

      public LtsaProcess(LtsaControl ltsaControl)
  • Method Details

    • prepareProcess

      public void prepareProcess()
      Description copied from class: PamProcess
      Called for each process before any of them receive the PamStart command
      Overrides:
      prepareProcess in class PamProcess
    • pamStart

      public void pamStart()
      Description copied from class: PamProcess
      Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).
      Specified by:
      pamStart in class PamProcess
    • pamStop

      public void pamStop()
      Description copied from class: PamProcess
      Stops the process.
      Specified by:
      pamStop in class PamProcess
    • flushDataBlockBuffers

      public boolean flushDataBlockBuffers(long maxWait)
      Description copied from class: PamProcess
      Work through all the output datablocks and wait for their internal buffers to flush through.

      This is used when stopping PAMGUARD to ensure that all data complete processing before anything else happens.

      Overrides:
      flushDataBlockBuffers in class PamProcess
      Parameters:
      maxWait - maxWait time in milliseconds.
      Returns:
      true if successful, or false if there was a timeout.
    • setupProcess

      public void setupProcess()
      Description copied from class: PamProcess
      called for every process once the systemmodel has been created. this is a good time to check out and find input data blocks and similar tasks.
      Overrides:
      setupProcess in class PamProcess
    • newData

      public void newData(PamObservable o, PamDataUnit arg)
      Overrides:
      newData in class PamProcess
    • setLtsaDataBlock

      public void setLtsaDataBlock(LtsaDataBlock ltsaDataBlock)
      Parameters:
      ltsaDataBlock - the ltsaDataBlock to set
    • getLtsaDataBlock

      public LtsaDataBlock getLtsaDataBlock()
      Returns:
      the ltsaDataBlock
    • getOfflineData

      public int getOfflineData(OfflineDataLoadInfo offlineLoadInfo)
      Overrides:
      getOfflineData in class PamProcess