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
ConstructorDescriptionPamSettingsGroup
(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 TypeMethodDescriptionvoid
addSettings
(PamControlledUnitSettings pamControlledUnitSettings) Add settings to the list of different unit settingsint
findUnitSettings
(String unitType, String unitName) find the unit settings for a module of a given name and type.long
getUnitSettings
(int settingsNo) Get a particular set of settings.Return the list of used modules.void
setSettingsTime
(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:
compareTo
in 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
-
getUsedModuleInfo
Return the list of used modules. These were / are settings returned by the PamController.- Returns:
- list of used modules.
-