cl::utfsm::samplingSystemUI::core::ComponentsManager Class Reference

Collaboration diagram for cl::utfsm::samplingSystemUI::core::ComponentsManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

String[] getComponentsName ()
 ComponentsManager (ContainerServices cServices) throws IllegalStateException
boolean componentExists (String componentName)
List< String > getComponentProperties (String componentName)
boolean propertyExists (String componentName, String propertyName)

Static Public Attributes

static final String CORBALOC = System.getProperty("ACS.repository")
static final String IDL_PROPERTY = "IDL:alma/ACS/Property:1.0"

Private Attributes

Repository rep = null
ORB orb = null
ContainerServices cServices = null

Detailed Description

Class to manage the Components within a Container, checks for properties, existance of a given Component and existance of a given Porperty within a managed Component.


Constructor & Destructor Documentation

cl::utfsm::samplingSystemUI::core::ComponentsManager::ComponentsManager ( ContainerServices  cServices  )  throws IllegalStateException [inline]

Gets a list of Container Services and connects to the ACS repository.

Parameters:
cServices List of Container services

References CORBALOC, cServices, orb, and rep.


Member Function Documentation

boolean cl::utfsm::samplingSystemUI::core::ComponentsManager::componentExists ( String  componentName  )  [inline]

Verifies if a component exists by name in the container.

Parameters:
componentName string with the component name.
Returns:
boolean, true if the component exists or false otherwise.

References getComponentsName().

Referenced by cl::utfsm::samplingSystemUI::core::AcsInformation::componentExists(), getComponentProperties(), and cl::utfsm::samplingSystemUITestCase::ComponentsManagerTest::testComponent().

List<String> cl::utfsm::samplingSystemUI::core::ComponentsManager::getComponentProperties ( String  componentName  )  [inline]

Gets a list of properties name from a given component.

Parameters:
componentName string with the component name.
Returns:
array of strings. FIXME: does it have to be case sensitive?? FIXME: Must handle the exception.

References componentExists(), cServices, alma::acs::container::ContainerServices::getComponentDescriptor(), alma::acs::component::ComponentDescriptor::getType(), IDL_PROPERTY, and rep.

Referenced by propertyExists().

String [] cl::utfsm::samplingSystemUI::core::ComponentsManager::getComponentsName (  )  [inline]

Retrieves an array of strings containing the components names in a container.

Returns:
array of strings.

References cServices, and alma::acs::container::ContainerServices::findComponents().

Referenced by componentExists().

boolean cl::utfsm::samplingSystemUI::core::ComponentsManager::propertyExists ( String  componentName,
String  propertyName 
) [inline]

Verify if a property exists by name for a given component name.

Parameters:
componentName string with the component name
propertName string with the property name
Returns:
boolean true if the component have the property

References getComponentProperties().

Referenced by cl::utfsm::samplingSystemUI::core::AcsInformation::propertyExists(), and cl::utfsm::samplingSystemUITestCase::ComponentsManagerTest::testProperty().


Member Data Documentation

final String cl::utfsm::samplingSystemUI::core::ComponentsManager::CORBALOC = System.getProperty("ACS.repository") [static]

Referenced by ComponentsManager().

final String cl::utfsm::samplingSystemUI::core::ComponentsManager::IDL_PROPERTY = "IDL:alma/ACS/Property:1.0" [static]

Referenced by getComponentProperties().

Referenced by ComponentsManager().


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

Generated by  doxygen 1.6.2