Package PamguardMVC.uid
Class UIDViewerManager
java.lang.Object
PamguardMVC.uid.UIDViewerManager
- All Implemented Interfaces:
UIDManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<UIDRepairRequest> Make a list of all datablocks with a few extra bits of info about each.booleanCalled just before PAMGurd exits, at the same time that config data are written to the psf, etc.booleanThis 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.voidsynchUIDs(boolean onlyNewDataBlocks) Loop through the data blocks and try to find matching database and binary file UID information.
-
Constructor Details
-
UIDViewerManager
-
-
Method Details
-
runStartupChecks
public boolean runStartupChecks()Description copied from interface:UIDManagerThis 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:
runStartupChecksin interfaceUIDManager- Returns:
- true if all checks completed successfully.
-
runShutDownOps
public boolean runShutDownOps()Description copied from interface:UIDManagerCalled 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:
runShutDownOpsin interfaceUIDManager- Returns:
- true if all checks completed successfully.
-
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:UIDManagerLoop 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:
synchUIDsin interfaceUIDManager- Parameters:
onlyNewDataBlocks- true if the operation is only to be performed on new data blocks
-