Class RecordingList

java.lang.Object
tethys.deployment.RecordingList
All Implemented Interfaces:
Serializable

public class RecordingList extends Object implements Serializable
Information about periods of effort that might come from either the raw data recordings or an analysis of binary data maps.
Author:
dg50
See Also:
  • Constructor Details Link icon

    • RecordingList Link icon

      public RecordingList(String sourceName)
      Parameters:
      sourceName -
    • RecordingList Link icon

      public RecordingList(String sourceName, ArrayList<RecordingPeriod> selectedDeployments)
  • Method Details Link icon

    • duration Link icon

      public long duration()
      Get the duration of the recording periods from start to end.
      Returns:
    • getStart Link icon

      public long getStart()
      Get the start of the first in the list.
      Returns:
    • getEnd Link icon

      public long getEnd()
      get the end of the last in the list.
    • sort Link icon

      public void sort()
      Sort the list in ascending order.
    • getCoverage Link icon

      public double getCoverage()
      Get the coverage as a fraction. This is the sum of the individual periods divided by the start to end times
      Returns:
    • mergeRecordingPeriods Link icon

      public int mergeRecordingPeriods(long maxGap)
      Merge recording periods, with a max gap between periods in milliseconds.
      Parameters:
      maxGap -
      Returns:
      the number of periods removed.
    • assessDutyCycle Link icon

      public DutyCycleInfo assessDutyCycle()
      Work out whether or not the data are evenly duty cycled by testing the distributions of on and off times.
      Parameters:
      tempPeriods -
      Returns:
    • getSourceName Link icon

      public String getSourceName()
      Returns:
      the sourceName
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • getSimilarity Link icon

      public double getSimilarity(RecordingList other)
      Get similarity to another recording list. 1 = identical, 0 means not even overlapping.
      Parameters:
      other - other recording list.
      Returns:
      measure of similarity.
    • add Link icon

      public void add(RecordingPeriod recordingPeriod)
      Add a recording period to the list.
      Parameters:
      recordingPeriod -
    • add Link icon

      public void add(long startTime, long endTime)
      Add a recording period to the list.
      Parameters:
      startTime -
      endTime -
    • size Link icon

      public int size()
    • getEffortPeriods Link icon

      public ArrayList<RecordingPeriod> getEffortPeriods()
      Returns:
      the effortPeriods