Public Member Functions | Static Public Attributes

cl.utfsm.samplingSystemUI.core.ComponentsManager Class Reference

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"

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

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

Parameters:
cServices List of Container services

References cl.utfsm.samplingSystemUI.core.ComponentsManager.CORBALOC.


Member Function Documentation

boolean cl.utfsm.samplingSystemUI.core.ComponentsManager.componentExists ( String  componentName  ) 

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 cl.utfsm.samplingSystemUI.core.ComponentsManager.getComponentsName().

Referenced by cl.utfsm.samplingSystemUI.core.AcsInformation.componentExists(), and cl.utfsm.samplingSystemUI.core.ComponentsManager.getComponentProperties().

List<String> cl.utfsm.samplingSystemUI.core.ComponentsManager.getComponentProperties ( String  componentName  ) 

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 cl.utfsm.samplingSystemUI.core.ComponentsManager.componentExists(), alma.acs.container.ContainerServices.getComponentDescriptor(), and alma.acs.component.ComponentDescriptor.getType().

Referenced by cl.utfsm.samplingSystemUI.core.ComponentsManager.propertyExists().

String [] cl.utfsm.samplingSystemUI.core.ComponentsManager.getComponentsName (  ) 

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

Returns:
array of strings.

References alma.acs.container.ContainerServices.findComponents().

Referenced by cl.utfsm.samplingSystemUI.core.ComponentsManager.componentExists().

boolean cl.utfsm.samplingSystemUI.core.ComponentsManager.propertyExists ( String  componentName,
String  propertyName 
)

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 cl.utfsm.samplingSystemUI.core.ComponentsManager.getComponentProperties().

Referenced by cl.utfsm.samplingSystemUI.core.AcsInformation.propertyExists().


Member Data Documentation

final String cl.utfsm.samplingSystemUI.core.ComponentsManager.CORBALOC = System.getProperty("ACS.repository") [static]
final String cl.utfsm.samplingSystemUI.core.ComponentsManager.IDL_PROPERTY = "IDL:alma/ACS/Property:1.0" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties