Package PamController
Class PamSettingsGroup
java.lang.Object
PamController.PamSettingsGroup
- All Implemented Interfaces:
 Comparable<PamSettingsGroup>
Stores a group of PAMGUARD settings read back from the database
 or some other store (e.g. binary storage). 
 
The group of settings contains three things: 1) A time 2) A list of installed units 3) A list of settings (this is included as part of one of the unitSettings from Pam Controller)
- Author:
 - Doug Gillespie
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionPamSettingsGroup(long settingsTime) Create a new settings unit, which will contain all the settings of a configuration at a particular timePamSettingsGroup(long settingsTime, ArrayList<PamControlledUnitSettings> settings) Constructor to use when a whole list of settings is already available. - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddSettings(PamControlledUnitSettings pamControlledUnitSettings) Add settings to the list of different unit settingsintfindSettingsForName(String unitName) Get a list of all settings for specified unit name.findUnitSettings(String unitType, String unitName) find the unit settings for a module of a given name and type.longgetUnitSettings(int settingsNo) Get a particular set of settings.Return the list of used modules.booleanReplace settings in the unitSettings array list.voidsetSettingsTime(long settingsTime)  
- 
Constructor Details
- 
PamSettingsGroup
public PamSettingsGroup(long settingsTime) Create a new settings unit, which will contain all the settings of a configuration at a particular time- Parameters:
 settingsTime- settings time in milliseconds.
 - 
PamSettingsGroup
Constructor to use when a whole list of settings is already available.- Parameters:
 settingsTime-settings-
 
 - 
 - 
Method Details
- 
compareTo
- Specified by:
 compareToin interfaceComparable<PamSettingsGroup>
 - 
getSettingsTime
public long getSettingsTime()- Returns:
 - the millisecond timestamp of the unit settings
 
 - 
setSettingsTime
public void setSettingsTime(long settingsTime) - Parameters:
 settingsTime- the settingsTime to set
 - 
addSettings
Add settings to the list of different unit settings- Parameters:
 pamControlledUnitSettings- new settings
 - 
getUnitSettings
- Returns:
 - the complete array list of different unit settings
 
 - 
getUnitSettings
Get a particular set of settings.- Parameters:
 settingsNo- Settings number- Returns:
 - unit settings
 
 - 
findUnitSettings
find the unit settings for a module of a given name and type.- Parameters:
 unitType- unit typeunitName- unit name- Returns:
 - unit settings, or null if none found
 
 - 
findSettingsForName
Get a list of all settings for specified unit name.- Parameters:
 unitName- unit name.- Returns:
 - List of associated settings. Can be several for a module.
 
 - 
getUsedModuleInfo
Return the list of used modules. These were / are settings returned by the PamController.- Returns:
 - list of used modules.
 
 - 
replaceSettings
Replace settings in the unitSettings array list.- Parameters:
 newSet-- Returns:
 
 
 -