PamController
Class PamViewParameters

java.lang.Object
  extended by PamController.PamViewParameters
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PamViewParameters
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
 long analEndTime
          Analysis offline may have gone through the data multiple times.
 long analStartTime
          Analysis offline may have gone through the data multiple times.
(package private) static long serialVersionUID
           
 boolean useAnalysisTime
          Analysis offline may have gone through the data multiple times.
 boolean[] useModules
          List of modules to use.
 long viewEndTime
          start and end times for Pamguard viewer These are the times of the data (UTC in most database tables)
 long viewStartTime
          start and end times for Pamguard viewer These are the times of the data (UTC in most database tables)
 
Constructor Summary
PamViewParameters()
           
 
Method Summary
 PamViewParameters clone()
           
 boolean equals(PamViewParameters otherParameters)
           
 long getRoundedAnalEndTime()
           
 long getRoundedAnalStartTime()
           
 long getRoundedViewEndTime()
           
 long getRoundedViewStartTime()
           
 boolean isUseAnalysisTime()
           
 long roundDown(long time)
          Round a time down to nearest second
 long roundUp(long time)
          Round a time down up nearest second
 void setAnalEndTime(long analEndTime)
           
 void setAnalStartTime(long analStartTime)
           
 void setUseAnalysisTime(boolean useAnalysisTime)
           
 void setViewEndTime(long viewEndTime)
           
 void setViewStartTime(long viewStartTime)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

viewStartTime

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


viewEndTime

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


useAnalysisTime

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

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

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

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

Constructor Detail

PamViewParameters

public PamViewParameters()
Method Detail

clone

public PamViewParameters clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(PamViewParameters otherParameters)

getRoundedViewStartTime

public long getRoundedViewStartTime()
Returns:
the viewStartTime

setViewStartTime

public void setViewStartTime(long viewStartTime)
Parameters:
viewStartTime - the viewStartTime to set

getRoundedViewEndTime

public long getRoundedViewEndTime()
Returns:
the viewEndTime

setViewEndTime

public void setViewEndTime(long viewEndTime)
Parameters:
viewEndTime - the viewEndTime to set

isUseAnalysisTime

public boolean isUseAnalysisTime()
Returns:
the useAnalysisTime

setUseAnalysisTime

public void setUseAnalysisTime(boolean useAnalysisTime)
Parameters:
useAnalysisTime - the useAnalysisTime to set

getRoundedAnalStartTime

public long getRoundedAnalStartTime()
Returns:
the analStartTime

setAnalStartTime

public void setAnalStartTime(long analStartTime)
Parameters:
analStartTime - the analStartTime to set

getRoundedAnalEndTime

public long getRoundedAnalEndTime()
Returns:
the analEndTime

setAnalEndTime

public void setAnalEndTime(long analEndTime)
Parameters:
analEndTime - the analEndTime to set

roundDown

public long roundDown(long time)
Round a time down to nearest second

Parameters:
time -
Returns:
time rounded down to nearest second

roundUp

public long roundUp(long time)
Round a time down up nearest second

Parameters:
time -
Returns:
time rounded down to nearest second