Class UIDViewerManager

java.lang.Object
PamguardMVC.uid.UIDViewerManager
All Implemented Interfaces:
UIDManager

public class UIDViewerManager extends Object implements UIDManager
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Make a list of all datablocks with a few extra bits of info about each.
    boolean
    Called just before PAMGurd exits, at the same time that config data are written to the psf, etc.
    boolean
    This gets called just after PAMGuard has loaded all of it's modules and is a time for the UID manager to perform checks on the UID system, either retrieving the latest values for real time ops, or checking ordering in viewer mode.
    void
    synchUIDs(boolean onlyNewDataBlocks)
    Loop through the data blocks and try to find matching database and binary file UID information.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UIDViewerManager

      public UIDViewerManager(PamController pamController)
  • Method Details

    • runStartupChecks

      public boolean runStartupChecks()
      Description copied from interface: UIDManager
      This gets called just after PAMGuard has loaded all of it's modules and is a time for the UID manager to perform checks on the UID system, either retrieving the latest values for real time ops, or checking ordering in viewer mode.
      Specified by:
      runStartupChecks in interface UIDManager
      Returns:
      true if all checks completed successfully.
    • runShutDownOps

      public boolean runShutDownOps()
      Description copied from interface: UIDManager
      Called just before PAMGurd exits, at the same time that config data are written to the psf, etc. A time to write UID's to a file / the database and do any other cleaning up of the system prior to PC running again.
      Specified by:
      runShutDownOps in interface UIDManager
      Returns:
      true if all checks completed successfully.
    • makeRepairRequests

      public static ArrayList<UIDRepairRequest> makeRepairRequests()
      Make a list of all datablocks with a few extra bits of info about each.
      Returns:
    • synchUIDs

      public void synchUIDs(boolean onlyNewDataBlocks)
      Description copied from interface: UIDManager
      Loop through the data blocks and try to find matching database and binary file UID information. Assign the highest UID value found to the data block. If the onlyNewDataBlocks flag is true, only perform this operation on data blocks which have a current UID of 0 (which will happen if the module has just been added).
      Specified by:
      synchUIDs in interface UIDManager
      Parameters:
      onlyNewDataBlocks - true if the operation is only to be performed on new data blocks