cl::utfsm::acs::acg::core::AlarmSystemManager Class Reference

Inheritance diagram for cl::utfsm::acs::acg::core::AlarmSystemManager:
Inheritance graph
[legend]
Collaboration diagram for cl::utfsm::acs::acg::core::AlarmSystemManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void connectToManager () throws Exception
void connectToDAL () throws AcsJContainerServicesEx
void loadFromCDB ()
void saveToCDB ()
void disconnectFromManager ()
AlarmManager getAlarmManager ()
SourceManager getSourceManager ()
CategoryManager getCategoryManager () throws IllegalStateException
ReductionManager getReductionManager ()
UserAuthenticator.Role getRole ()
void setConfigurationProperty (String ct, String val)
String getConfigurationPrperty (String ct)

Static Public Member Functions

static AlarmSystemManager getInstance (UserAuthenticator.Role role)
static AlarmSystemManager getInstance ()
static void destroy ()

Private Member Functions

 AlarmSystemManager (UserAuthenticator.Role role)

Private Attributes

UserAuthenticator.Role _role
AcsInformation _acsInfo
DAOManager _daoManager
AlarmManager _alarmManager
SourceManager _sourceManager
CategoryManager _categoryManager
ReductionManager _reductionManager
ACSAlarmSystemDAOImpl _alarmSystemDAO
Hashtable< String, String > _configurationProperty

Static Private Attributes

static AlarmSystemManager _instance

Detailed Description

Class representing the whole instance of the Alarm System configuration. It includes the other entities managers of this package.

See also:
cl.utfsm.acs.acg.core
Author:
rtobar

Constructor & Destructor Documentation

cl::utfsm::acs::acg::core::AlarmSystemManager::AlarmSystemManager ( UserAuthenticator.Role  role  )  [inline, private]

References _alarmSystemDAO, _configurationProperty, and _role.

Referenced by getInstance().


Member Function Documentation

void cl::utfsm::acs::acg::core::AlarmSystemManager::connectToDAL (  )  throws AcsJContainerServicesEx [inline]
void cl::utfsm::acs::acg::core::AlarmSystemManager::connectToManager (  )  throws Exception [inline]
static void cl::utfsm::acs::acg::core::AlarmSystemManager::destroy (  )  [inline, static]

Destroys the singleton instance of this class. This is needed to renew the internal references to the DAOs if a new connection to the DAL and the ACS Manager has been performed

References _instance.

void cl::utfsm::acs::acg::core::AlarmSystemManager::disconnectFromManager (  )  [inline]
AlarmManager cl::utfsm::acs::acg::core::AlarmSystemManager::getAlarmManager (  )  [inline]
CategoryManager cl::utfsm::acs::acg::core::AlarmSystemManager::getCategoryManager (  )  throws IllegalStateException [inline]
String cl::utfsm::acs::acg::core::AlarmSystemManager::getConfigurationPrperty ( String  ct  )  [inline]

This method retrieves the current value of a given configuration-property.

Parameters:
ct The configuration-property type that will be queried.
Returns:

References _configurationProperty.

Referenced by cl::utfsm::acs::acg::gui::AlarmSystemView::refreshContents().

static AlarmSystemManager cl::utfsm::acs::acg::core::AlarmSystemManager::getInstance (  )  [inline, static]

References _instance.

static AlarmSystemManager cl::utfsm::acs::acg::core::AlarmSystemManager::getInstance ( UserAuthenticator.Role  role  )  [inline, static]
ReductionManager cl::utfsm::acs::acg::core::AlarmSystemManager::getReductionManager (  )  [inline]
UserAuthenticator.Role cl::utfsm::acs::acg::core::AlarmSystemManager::getRole (  )  [inline]

References _role.

SourceManager cl::utfsm::acs::acg::core::AlarmSystemManager::getSourceManager (  )  [inline]
void cl::utfsm::acs::acg::core::AlarmSystemManager::loadFromCDB (  )  [inline]
void cl::utfsm::acs::acg::core::AlarmSystemManager::saveToCDB (  )  [inline]
void cl::utfsm::acs::acg::core::AlarmSystemManager::setConfigurationProperty ( String  ct,
String  val 
) [inline]

This method modifies the current value of a given configuration-property. As this 'value' is stored in a Hashtable it first checks if a previous 'value' existed (most likely) and removes it (if it existed) to prevent more than one 'value' for the same 'key'.

Parameters:
ct The configuration-property type that will be modified.
at The new value for the given configuration-property type.

References _configurationProperty.

Referenced by cl::utfsm::acs::acg::gui::AlarmSystemView::createPartControl().


Member Data Documentation

Referenced by destroy(), and getInstance().

In the CDB there can be several kinds of configuration-property types for the Alarm System. Currently only the "Implementation" type is used to choose between the ACS Alarm System and the CERN Alarm System, but more of them could be added. To represent this, an enum (ConfigurationPropertyType) was defined, which has each type available. For each of the values of this enum, a new enum is used to contain the different values this configuration-property can have. For the "Implementation" type the enum is AlarmSystemType. To store the values of the system a Hashtable is used where the 'key' is the ConfigurationPropertyType and the 'value' is an Object of the corresponding type. For example if the ConfigurationPropertyType was "Implementation" then the Object type would be AlarmSystemType.

Note that this schema could be also subsituted by a <String,String> Hashtable, since in a future there could be more configuration-property types for the Alarm System tuning.

Referenced by AlarmSystemManager(), and getRole().

Referenced by getSourceManager(), and loadFromCDB().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2