Class ClickTrainProcess

java.lang.Object
PamguardMVC.PamProcess
clickTrainDetector.ClickTrainProcess
All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class ClickTrainProcess extends PamProcess
The core of the click train detector. Runs the click train detector on click detections.
Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • destroyProcess

      public void destroyProcess()
      Description copied from class: PamProcess
      Called from the PamControlled unit when a PamControlled unit is removed from the model. Offers an opportunity to disconnect individual processed from the rest of the model. May be necessary to override to clean up some processes.
      Overrides:
      destroyProcess in class PamProcess
    • 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
    • getProcessCheck

      public ProcessCheck getProcessCheck()
      Description copied from class: PamProcess
      Get a process check object. This indicates the current status of a process.
      Overrides:
      getProcessCheck in class PamProcess
      Returns:
      the process check object.
    • newClickData

      public void newClickData(PamDataUnit newClick)
      New click detection has arrived.
      Parameters:
      click - - the new click
    • 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
    • getClickTrainDataBlock

      public ClickTrainDataBlock<CTDataUnit> getClickTrainDataBlock()
      Get the main click train output data block
      Returns:
      - the click train output data block.
    • getUnconfirmedCTDataBlock

      public ClickTrainDataBlock<TempCTDataUnit> getUnconfirmedCTDataBlock()
      Get the temporary click train data block. This is used to store unconfirmed tracks for painting on displays.
      Returns:
      the temporary click train data block.
    • getClickTrainControl

      public ClickTrainControl getClickTrainControl()
      Get the clcik trian controller.
      Returns:
      the click train controlle.r
    • masterClockUpdate

      public void masterClockUpdate(long timeMilliseconds, long sampleNumber)
      Specified by:
      masterClockUpdate in interface PamObserver
      Overrides:
      masterClockUpdate in class PamProcess