Package effortmonitor

Class EffortDataUnit

java.lang.Object
PamguardMVC.PamDataUnit
effortmonitor.EffortDataUnit
All Implemented Interfaces:
Comparable

public class EffortDataUnit extends PamDataUnit
  • Constructor Details Link icon

    • EffortDataUnit Link icon

      public EffortDataUnit(AbstractPamScroller scroller, String observer, String objective)
      Constructor for new scroll effort data
      Parameters:
      scroller -
      observer -
      objective -
    • EffortDataUnit Link icon

      public EffortDataUnit(int databaseIndex, AbstractPamScroller scroller, String displayName, long timeMilliseconds, long endTime, String observer, String objective, long sessStart, long sessEnd, String runMode)
      Constructor to use when reloading from database.
      Parameters:
      databaseIndex -
      scroller -
      displayName -
      timeMilliseconds -
      endTime -
      observer -
      objective -
      sessStart -
      sessEnd -
  • Method Details Link icon

    • isContinuous Link icon

      public boolean isContinuous()
      Say if the current scroll position is continuous with the existing recorded time or if there is a gap of any sort.
      Returns:
      true if no gap or an overlap, false if a gap
    • extendRecordedRange Link icon

      public boolean extendRecordedRange()
      Extend the recorded range of this scroller.
      Returns:
      true if the range has changed
    • getScroller Link icon

      public AbstractPamScroller getScroller()
      Returns:
      the scroller
    • getObserver Link icon

      public String getObserver()
      Returns:
      the observer
    • isActive Link icon

      public boolean isActive()
      Is the data active, i.e. is being scrolled and no gaps have been made in the data
      Returns:
      the isActive
    • setActive Link icon

      public void setActive(boolean isActive)
      Set to false once there has been a gap in scrolling and this data unit is closed but held in memory. There should only be one active unit for each scroller.
      Parameters:
      isActive - the isActive to set
    • getSessionStartTime Link icon

      public long getSessionStartTime()
      The time the observer did the actual viewing, i.e. the System.currenttime()
      Returns:
      the startTime
    • getSessionEndTime Link icon

      public long getSessionEndTime()
      The time the observer did the actual viewing, i.e. the System.currenttime()
      Returns:
      the endTime
    • getDisplayName Link icon

      public String getDisplayName()
      Get the scroller (display) name
      Returns:
      display name
    • getObjective Link icon

      public String getObjective()
      Returns:
      the objective
    • setObjective Link icon

      public void setObjective(String objective)
      Parameters:
      objective - the objective to set
    • setObserver Link icon

      public void setObserver(String observer)
      Parameters:
      observer - the observer to set
    • getSummaryString Link icon

      public String getSummaryString()
      Description copied from class: PamDataUnit
      Return an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.
      Overrides:
      getSummaryString in class PamDataUnit
      Returns:
      summary string
    • getRunMode Link icon

      public String getRunMode()
      Returns:
      the runMode
    • setOuterLimits Link icon

      public void setOuterLimits()
      Set the limits as the outer limits of the scroller.