Package binaryFileStorage
Class BinarySettingsStorage
java.lang.Object
binaryFileStorage.BinarySettingsStorage
- All Implemented Interfaces:
 PamSettingsSource
Manage storage and retrieval of PAMGUARD serialised settings storage in 
 binary files.
- Author:
 - Doug
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintGet the number of different settings within the settings source.getSettings(int settingsIndex) Get a specific PamSettingsGroupGet a name for the settings sourcevoidbooleansaveEndSettings(long timeNow) Save settings when processing ends.booleansaveStartSettings(long timeStamp) Save the settings in some vaguely sensible format. 
- 
Constructor Details
- 
BinarySettingsStorage
 
 - 
 - 
Method Details
- 
saveStartSettings
public boolean saveStartSettings(long timeStamp) Save the settings in some vaguely sensible format. This will be different to the main settings stores since a) they are crap b) I want to include a list of modules in a format which can be read by anything, so that other software can at least work out which modules were present without having to decode the serialised java objects.- Specified by:
 saveStartSettingsin interfacePamSettingsSource- Parameters:
 timeStamp- current time in milliseconds- Returns:
 - true if saved correctly
 
 - 
saveEndSettings
public boolean saveEndSettings(long timeNow) Description copied from interface:PamSettingsSourceSave settings when processing ends. This may just be an update of the settings saves with saveStartSettings, e.g. an end time.- Specified by:
 saveEndSettingsin interfacePamSettingsSource- Parameters:
 timeNow-- Returns:
 - true if saved correctly.
 
 - 
getNumSettings
public int getNumSettings()Description copied from interface:PamSettingsSourceGet the number of different settings within the settings source.- Specified by:
 getNumSettingsin interfacePamSettingsSource- Returns:
 - the number of PamSettingsGroups.
 
 - 
getSettings
Description copied from interface:PamSettingsSourceGet a specific PamSettingsGroup- Specified by:
 getSettingsin interfacePamSettingsSource- Parameters:
 settingsIndex- index of group- Returns:
 - a settings group
 
 - 
makeSettingsMap
public void makeSettingsMap() - 
getSettingsSourceName
Description copied from interface:PamSettingsSourceGet a name for the settings source- Specified by:
 getSettingsSourceNamein interfacePamSettingsSource- Returns:
 - a name
 
 
 -