Class OfflineDataLoadInfo

java.lang.Object
PamguardMVC.dataOffline.OfflineDataLoadInfo
All Implemented Interfaces:
Cloneable

public class OfflineDataLoadInfo extends Object implements Cloneable
Contains information required to load data from a file or other source into a datablock.
Author:
Jamie Macaulay
  • Field Details

    • PRIORITY_CANCEL_DESTROY

      public static int PRIORITY_CANCEL_DESTROY
      If cancelled the thread will SIMPLY STOP
    • PRIORITY_CANCEL_RESTART

      public static int PRIORITY_CANCEL_RESTART
      If cancelled the thread will automatically restart
    • cancel

      public volatile boolean cancel
      Changed by threads to cancel an order.
  • Constructor Details

    • OfflineDataLoadInfo

      public OfflineDataLoadInfo(long currentStart, long currentEnd)
      Simple constructor for
      Parameters:
      currentStart -
      currentEnd -
    • OfflineDataLoadInfo

      public OfflineDataLoadInfo(PamObserver dataObserver, PamObserver endObserver, long startMillis, long endMillis, int loadKeepLayers, boolean allowRepeats)
    • OfflineDataLoadInfo

      public OfflineDataLoadInfo(PamObserver dataObserver, LoadObserver loadObserver, long startMillis, long endMillis, int loadKeepLayers, int interrupt, boolean allowRepeats)
    • OfflineDataLoadInfo

      public OfflineDataLoadInfo()
  • Method Details

    • reset

      public void reset()
      Resets the load data for another data load.
    • getStartMillis

      public long getStartMillis()
      Get the current start millis. This is either the original requested start time or, if a data load has been partially completed and lastLoadInfo is not null this will return the latest load time
      Returns:
      the startMillis
    • getOriginalStartMillis

      public long getOriginalStartMillis()
      Get the original start of the data load request. This will be the same as getStartMillis()
      Returns:
      the start of the data load in millis datenum
    • setStartMillis

      public void setStartMillis(long startMillis)
      Parameters:
      startMillis - the startMillis to set
    • getEndMillis

      public long getEndMillis()
      Returns:
      the endMillis
    • setEndMillis

      public void setEndMillis(long endMillis)
      Parameters:
      endMillis - the endMillis to set
    • getCurrentObserver

      public PamObserver getCurrentObserver()
      Returns:
      the dataObserver
    • setCurrentObserver

      public void setCurrentObserver(PamObserver dataObserver)
      Parameters:
      dataObserver - the dataObserver to set
    • getEndObserver

      public PamObserver getEndObserver()
      Returns:
      the endObserver
    • setEndObserver

      public void setEndObserver(PamObserver endObserver)
      Parameters:
      endObserver - the endObserver to set
    • getLoadObserver

      public LoadObserver getLoadObserver()
      Returns:
      the loadObserver
    • setLoadObserver

      public void setLoadObserver(LoadObserver loadObserver)
      Parameters:
      loadObserver - the loadObserver to set
    • getLoadKeepLayers

      public int getLoadKeepLayers()
      Returns:
      the loadKeepLayers
    • setLoadKeepLayers

      public void setLoadKeepLayers(int loadKeepLayers)
      Parameters:
      loadKeepLayers - the loadKeepLayers to set
    • getLastLoadInfo

      public LoadPositionInfo getLastLoadInfo()
      Returns:
      the lastLoadInfo
    • setLastLoadInfo

      public void setLastLoadInfo(LoadPositionInfo lastLoadInfo)
      Parameters:
      lastLoadInfo - the lastLoadInfo to set
    • getAllowRepeats

      public boolean getAllowRepeats()
      Returns:
      alow repeats
    • getInterrupt

      public int getInterrupt()
      Returns:
      the interrupt
    • setInterrupt

      public void setInterrupt(int interrupt)
      Parameters:
      interrupt - the interrupt to set
    • getPriority

      public int getPriority()
      Returns:
      the priority
    • setPriority

      public void setPriority(int priority)
      Parameters:
      priority - the priority to set
    • clone

      public OfflineDataLoadInfo clone()