Package PamguardMVC.dataOffline
Class OfflineDataLoadInfo
java.lang.Object
PamguardMVC.dataOffline.OfflineDataLoadInfo
- All Implemented Interfaces:
Cloneable
Contains information required to load data from a file or other source into a datablock.
- Author:
- Jamie Macaulay
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Changed by threads to cancel an order.static int
If cancelled the thread will SIMPLY STOPstatic int
If cancelled the thread will automatically restart -
Constructor Summary
ConstructorDescriptionOfflineDataLoadInfo
(long currentStart, long currentEnd) Simple constructor forOfflineDataLoadInfo
(PamObserver dataObserver, LoadObserver loadObserver, long startMillis, long endMillis, int loadKeepLayers, int interrupt, boolean allowRepeats) OfflineDataLoadInfo
(PamObserver dataObserver, PamObserver endObserver, long startMillis, long endMillis, int loadKeepLayers, boolean allowRepeats) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
long
int
int
long
Get the original start of the data load request.int
long
Get the current start millis.void
reset()
Resets the load data for another data load.void
setCurrentObserver
(PamObserver dataObserver) void
setEndMillis
(long endMillis) void
setEndObserver
(PamObserver endObserver) void
setInterrupt
(int interrupt) void
setLastLoadInfo
(LoadPositionInfo lastLoadInfo) void
setLoadKeepLayers
(int loadKeepLayers) void
setLoadObserver
(LoadObserver loadObserver) void
setPriority
(int priority) void
setStartMillis
(long startMillis)
-
Field Details
-
PRIORITY_CANCEL_DESTROY
public static int PRIORITY_CANCEL_DESTROYIf cancelled the thread will SIMPLY STOP -
PRIORITY_CANCEL_RESTART
public static int PRIORITY_CANCEL_RESTARTIf cancelled the thread will automatically restart -
cancel
public volatile boolean cancelChanged 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 asgetStartMillis()
- 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
- Returns:
- the dataObserver
-
setCurrentObserver
- Parameters:
dataObserver
- the dataObserver to set
-
getEndObserver
- Returns:
- the endObserver
-
setEndObserver
- Parameters:
endObserver
- the endObserver to set
-
getLoadObserver
- Returns:
- the loadObserver
-
setLoadObserver
- 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
- Returns:
- the lastLoadInfo
-
setLastLoadInfo
- 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
-