Package clipgenerator
Class StandardClipBudgetMaker
java.lang.Object
clipgenerator.StandardClipBudgetMaker
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondoublegetStorageProbability(PamDataUnit dataUnit) Calculate a probability for storing the next unit.voidinitialise(long timeMillis) Initialise the budget maker.booleanshouldStore(PamDataUnit dataUnit) Should store a data unit. 
- 
Constructor Details
- 
StandardClipBudgetMaker
- Parameters:
 clipBlockProcess-
 
 - 
 - 
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
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
Calculate a probability for storing the next unit.- Parameters:
 dataUnit-- Returns:
 - a probability between 0 (don't store) and 1 (definitely store).
 
 
 -