Search in sources :

Example 1 with PropertyDesc

use of alma.ACS.PropertyDesc in project ACS by ACS-Community.

the class CharacteristicComponentImpl method descriptor.

/*********************** [ CharacteristicComponent ] ***********************/
/**
	 * NOTE: <code>characteristic_component_ref</code> member of <code>CharacteristicComponentDesc</code> is always set to <code>null</code>.
	 * @see alma.ACS.CharacteristicComponentOperations#descriptor()
	 */
public CharacteristicComponentDesc descriptor() {
    if (characteristicComponentDesc == null) {
        PropertyDesc[] propertyDescriptors = null;
        synchronized (properties) {
            int i = 0;
            propertyDescriptors = new PropertyDesc[properties.size()];
            Iterator<PropertyOperations> iter = properties.keySet().iterator();
            while (iter.hasNext()) propertyDescriptors[i++] = ((PropertyImpl) iter.next()).getPropertyDescriptor();
        }
        // TODO CORBA reference to this component to be set
        characteristicComponentDesc = new CharacteristicComponentDesc(null, m_instanceName, propertyDescriptors, get_all_characteristics());
    }
    return characteristicComponentDesc;
}
Also used : PropertyDesc(alma.ACS.PropertyDesc) PropertyOperations(alma.ACS.PropertyOperations) CharacteristicComponentDesc(alma.ACS.CharacteristicComponentDesc)

Aggregations

CharacteristicComponentDesc (alma.ACS.CharacteristicComponentDesc)1 PropertyDesc (alma.ACS.PropertyDesc)1 PropertyOperations (alma.ACS.PropertyOperations)1