Package clipgenerator

Class StandardClipBudgetMaker

java.lang.Object
clipgenerator.StandardClipBudgetMaker

public class StandardClipBudgetMaker extends Object
  • Constructor Details

  • Method Details

    • initialise

      public void initialise(long timeMillis)
      Initialise the budget maker.
      This gets called before acquisition starts.
      It may involve a quick whiz through the existing data output folder to see how much data has been stored to date and what the size of currently stored files is.
    • shouldStore

      public boolean shouldStore(PamDataUnit dataUnit)
      Should store a data unit.
      Decision based on remaining budget, data rate, etc.
      Parameters:
      dataUnit - data unit to consider
      Returns:
      true if the data unit should be stored, false otherwise.
    • getStorageProbability

      public double getStorageProbability(PamDataUnit dataUnit)
      Calculate a probability for storing the next unit.
      Parameters:
      dataUnit -
      Returns:
      a probability between 0 (don't store) and 1 (definitely store).