generalDatabase
Class DBSettingsStore

java.lang.Object
  extended by generalDatabase.DBSettingsStore

public class DBSettingsStore
extends java.lang.Object

Load all of the settings from a database and store in a single class.

Each database will possibly hold lots of different settings, the only way of grouping them together is by time.

Settings are stored in a somewhat dubious way in that any part of Pamguard, be it a PamControlledUnit or not can store settings, so some of the settings read back are associated with modules, others are not.

The actual list of modules is an ArrayList with unitNType and unitName set to PamController and Pam Controller respectively.

Author:
Doug
See Also:
UsedModuleInfo, PamSettingManager, PamControlledUnitSettings

Field Summary
private  java.util.ArrayList<PamSettingsGroup> settingsGroups
           
 
Constructor Summary
DBSettingsStore()
           
 
Method Summary
 void addSettingsGroup(PamSettingsGroup dbSettingsGroup)
           
 PamSettingsGroup getLastSettingsGroup()
           
 int getNumGroups()
           
 PamSettingsGroup getSettingsGroup(int groupNumber)
           
 java.util.ArrayList<PamSettingsGroup> getSettingsGroups()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settingsGroups

private java.util.ArrayList<PamSettingsGroup> settingsGroups
Constructor Detail

DBSettingsStore

public DBSettingsStore()
Method Detail

getSettingsGroups

public java.util.ArrayList<PamSettingsGroup> getSettingsGroups()

getSettingsGroup

public PamSettingsGroup getSettingsGroup(int groupNumber)

addSettingsGroup

public void addSettingsGroup(PamSettingsGroup dbSettingsGroup)

getNumGroups

public int getNumGroups()

getLastSettingsGroup

public PamSettingsGroup getLastSettingsGroup()