Class TaskGroupParams

java.lang.Object
offlineProcessing.TaskGroupParams
All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters

public class TaskGroupParams extends Object implements Cloneable, Serializable, ManagedParameters
Parameter control for offline task groups.
Author:
Doug Gillespie
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The data to process flag e.g.
    boolean
    Delete old database entries.
    long
    used in PROCESS_SPECIFICPERIOD mode-will not affect PROCESS_NEW and lastDataTime boolean could be used to govern this in future
    long
    Time of the last section of data to be processed.
    boolean
    Each time processData is called we can either load ALL of the secondary data block data for that block or can only call loading secondary data for the times we're interested in.
    static final int
    Process all data in the datastore (binary, database, or wherever).
    static final int
    process only the data currently loaded in memory.
    static final int
    Process new data only - i.e.
    static final int
    Process a specific period of data
    static final int
    Process imported time chunks.
    static final long
     
    long
    used in PROCESS_SPECIFICPERIOD mode-will not affect PROCESS_NEW and lastDataTime boolean could be used to govern this in future
    Note which will get written to the database of completed tasks.
    ArrayList<long[]>
    An array of time chunks in millis.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a set of data that describes all of the parameters in a class
    boolean
    getTaskSelection(int iTask)
    Get the selection state of a task
    void
    setTaskSelection(int iTask, boolean selState)
    Set the selection state of a particular task.

    Methods inherited from class java.lang.Object

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

    • serialVersionUID

      public static final long serialVersionUID
      See Also:
    • PROCESS_LOADED

      public static final int PROCESS_LOADED
      process only the data currently loaded in memory.
      See Also:
    • PROCESS_ALL

      public static final int PROCESS_ALL
      Process all data in the datastore (binary, database, or wherever).
      See Also:
    • PROCESS_NEW

      public static final int PROCESS_NEW
      Process new data only - i.e. data which arrived after the lastDataTime field.
      See Also:
    • lastDataTime

      public long lastDataTime
      Time of the last section of data to be processed.
    • PROCESS_SPECIFICPERIOD

      public static final int PROCESS_SPECIFICPERIOD
      Process a specific period of data
      See Also:
    • PROCESS_TME_CHUNKS

      public static final int PROCESS_TME_CHUNKS
      Process imported time chunks.
      See Also:
    • startRedoDataTime

      public long startRedoDataTime
      used in PROCESS_SPECIFICPERIOD mode-will not affect PROCESS_NEW and lastDataTime boolean could be used to govern this in future

      Start time used for one off re-processing jobs

    • endRedoDataTime

      public long endRedoDataTime
      used in PROCESS_SPECIFICPERIOD mode-will not affect PROCESS_NEW and lastDataTime boolean could be used to govern this in future

      End time used for one off re-processing jobs

    • dataChoice

      public int dataChoice
      The data to process flag e.g. only data loaded in memory or the entire dataset.
    • deleteOld

      public boolean deleteOld
      Delete old database entries.
    • loadBlockedSecondaryData

      public boolean loadBlockedSecondaryData
      Each time processData is called we can either load ALL of the secondary data block data for that block or can only call loading secondary data for the times we're interested in. IF this is true, we'll load everything.
    • timeChunks

      public ArrayList<long[]> timeChunks
      An array of time chunks in millis.
    • taskNote

      public String taskNote
      Note which will get written to the database of completed tasks.
  • Constructor Details

    • TaskGroupParams

      public TaskGroupParams()
  • Method Details

    • setTaskSelection

      public void setTaskSelection(int iTask, boolean selState)
      Set the selection state of a particular task.
      Parameters:
      iTask - task number (counting from 0)
      selState - selection state
    • getTaskSelection

      public boolean getTaskSelection(int iTask)
      Get the selection state of a task
      Parameters:
      iTask - task number (counting from 0)
      Returns:
      state (default is false).
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.