Package PamController

Class PamViewParameters

All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
FixedClause, UIDViewParameters

public class PamViewParameters extends PAMSelectClause implements Serializable, Cloneable
A set of variables for loading a section of data from the viewer mode database.
Author:
Doug Gillespie
See Also:
  • Field Details Link icon

    • viewStartTime Link icon

      public long viewStartTime
      start and end times for Pamguard viewer These are the times of the data (UTC in most database tables)
    • viewEndTime Link icon

      public long viewEndTime
      start and end times for Pamguard viewer These are the times of the data (UTC in most database tables)
    • useAnalysisTime Link icon

      public boolean useAnalysisTime
      Analysis offline may have gone through the data multiple times. IF this is the case, you may want to select by analysis time as well as the data time. (LocalTime in most database tables)
    • analStartTime Link icon

      public long analStartTime
      Analysis offline may have gone through the data multiple times. IF this is the case, you may want to select by analysis time as well as the data time. (LocalTime in most database tables)
    • analEndTime Link icon

      public long analEndTime
      Analysis offline may have gone through the data multiple times. IF this is the case, you may want to select by analysis time as well as the data time. (LocalTime in most database tables)
    • useModules Link icon

      public boolean[] useModules
      List of modules to use. This is sent directly into all modules from the view times dialog.
  • Constructor Details Link icon

    • PamViewParameters Link icon

      public PamViewParameters()
      Make an empty view parameters clause. This will generate an empty string when getSelectClause(...) is called.
    • PamViewParameters Link icon

      public PamViewParameters(long viewStartTime, long viewEndTime)
      Parameters:
      viewStartTime -
      viewEndTime -
  • Method Details Link icon

    • clone Link icon

      public PamViewParameters clone()
    • getSelectClause Link icon

      public String getSelectClause(SQLTypes sqlTypes)
      Get a clause to add to a query. The clause includes the word WHERE so that it's possible to return an empty string and still get a valid SQL statement.
      Care will be needed if two clauses are added (with AND) to remove one WHERE.
      Specified by:
      getSelectClause in class PAMSelectClause
      Parameters:
      sqlTypes - SQL types for any bespoke formatting
      Returns:
      results query.
    • equals Link icon

      public boolean equals(PamViewParameters otherParameters)
    • getRoundedViewStartTime Link icon

      public long getRoundedViewStartTime()
      Returns:
      the viewStartTime
    • setViewStartTime Link icon

      public void setViewStartTime(long viewStartTime)
      Parameters:
      viewStartTime - the viewStartTime to set
    • getRoundedViewEndTime Link icon

      public long getRoundedViewEndTime()
      Returns:
      the viewEndTime
    • setViewEndTime Link icon

      public void setViewEndTime(long viewEndTime)
      Parameters:
      viewEndTime - the viewEndTime to set
    • isUseAnalysisTime Link icon

      public boolean isUseAnalysisTime()
      Returns:
      the useAnalysisTime
    • setUseAnalysisTime Link icon

      public void setUseAnalysisTime(boolean useAnalysisTime)
      Parameters:
      useAnalysisTime - the useAnalysisTime to set
    • getRoundedAnalStartTime Link icon

      public long getRoundedAnalStartTime()
      Returns:
      the analStartTime
    • setAnalStartTime Link icon

      public void setAnalStartTime(long analStartTime)
      Parameters:
      analStartTime - the analStartTime to set
    • getRoundedAnalEndTime Link icon

      public long getRoundedAnalEndTime()
      Returns:
      the analEndTime
    • setAnalEndTime Link icon

      public void setAnalEndTime(long analEndTime)
      Parameters:
      analEndTime - the analEndTime to set
    • roundDown Link icon

      public long roundDown(long time)
      Round a time down to nearest second
      Parameters:
      time -
      Returns:
      time rounded down to nearest second
    • roundUp Link icon

      public long roundUp(long time)
      Round a time down up nearest second
      Parameters:
      time -
      Returns:
      time rounded down to nearest second
    • getViewStartTime Link icon

      public long getViewStartTime()
      Returns:
      the viewStartTime
    • getViewEndTime Link icon

      public long getViewEndTime()
      Returns:
      the viewEndTime
    • getAnalStartTime Link icon

      public long getAnalStartTime()
      Returns:
      the analStartTime
    • getAnalEndTime Link icon

      public long getAnalEndTime()
      Returns:
      the analEndTime
    • getUseModules Link icon

      public boolean[] getUseModules()
      Returns:
      the useModules
    • setUseModules Link icon

      public void setUseModules(boolean[] useModules)
      Parameters:
      useModules - the useModules to set