kaos.core.csi.extension
Class KAoSExtensionComponentImpl

java.lang.Object
  extended by kaos.core.csi.extension.KAoSExtensionComponentImpl
All Implemented Interfaces:
KAoSExtensionComponent
Direct Known Subclasses:
EnforcerImpl, EventHistoryComponentImpl, ObligationMonitorImpl, OntInstanceClassifier, StateMonitorImpl, XMLSchemaClassifier

public class KAoSExtensionComponentImpl
extends java.lang.Object
implements KAoSExtensionComponent

Default implementation of the KAoSExtensionComponent interface $Revision: 1.8 $


Field Summary
protected  java.util.List<java.lang.String> _associatedOntTypes
           
protected  java.lang.String _componentName
           
 
Constructor Summary
KAoSExtensionComponentImpl()
           
KAoSExtensionComponentImpl(java.lang.String name, java.util.List<java.lang.String> ontTypes)
          Basic Constructor
KAoSExtensionComponentImpl(java.lang.String name, java.lang.String ontType)
          Simplified Constructor
 
Method Summary
 void addOntologicalAttribute(java.lang.String ontAttribute)
          Add an ontological attribute the component is associated with.
 boolean getEnabledStatus()
          Return 'true/false', indicating the 'enabled/disabled' status of the component.
 java.lang.String getName()
          Return the (unique) name of this KAoSExtensionComponent object.
 java.util.List<java.lang.String> getOntologicalAttributes()
          Returns the associated ontological concepts for the KAoSExtensionComponent object.
 void setEnabledStatus(boolean status)
          Set 'true/false', indicating the 'enabled/disabled' status of the component.
 void setName(java.lang.String componentName)
          Set the name of this component.
 void setProperties(ServiceProperties props)
          Set the properties of this component, if there are any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_associatedOntTypes

protected java.util.List<java.lang.String> _associatedOntTypes

_componentName

protected java.lang.String _componentName
Constructor Detail

KAoSExtensionComponentImpl

public KAoSExtensionComponentImpl()

KAoSExtensionComponentImpl

public KAoSExtensionComponentImpl(java.lang.String name,
                                  java.util.List<java.lang.String> ontTypes)
Basic Constructor

Parameters:
name - - name of the component
ontTypes - - list of ontology concept names characterizing the component functionality

KAoSExtensionComponentImpl

public KAoSExtensionComponentImpl(java.lang.String name,
                                  java.lang.String ontType)
Simplified Constructor

Parameters:
name - - name of the component
ontType - - single ontology concept name characterizing the component functionality
Method Detail

getOntologicalAttributes

public java.util.List<java.lang.String> getOntologicalAttributes()
Returns the associated ontological concepts for the KAoSExtensionComponent object.

Specified by:
getOntologicalAttributes in interface KAoSExtensionComponent
Returns:
List containing names of the concepts the KAoSExtensionComponent is associated with.

getName

public java.lang.String getName()
Return the (unique) name of this KAoSExtensionComponent object.

Specified by:
getName in interface KAoSExtensionComponent
Returns:
name of this component.

setEnabledStatus

public void setEnabledStatus(boolean status)
Set 'true/false', indicating the 'enabled/disabled' status of the component.

Specified by:
setEnabledStatus in interface KAoSExtensionComponent
Parameters:
status - boolean parameter to set the 'enabled/disabled' status to

getEnabledStatus

public boolean getEnabledStatus()
Return 'true/false', indicating the 'enabled/disabled' status of the component.

Specified by:
getEnabledStatus in interface KAoSExtensionComponent
Returns:
a boolean parameter indicating the 'enabled/disabled' status of this component.

addOntologicalAttribute

public void addOntologicalAttribute(java.lang.String ontAttribute)
Add an ontological attribute the component is associated with.

Specified by:
addOntologicalAttribute in interface KAoSExtensionComponent
Parameters:
ontAttribute - String containing the name of the ontological attribute.

setName

public void setName(java.lang.String componentName)
Set the name of this component.

Specified by:
setName in interface KAoSExtensionComponent
Parameters:
componentName - String containing the name of this component.

setProperties

public void setProperties(ServiceProperties props)
Set the properties of this component, if there are any. This method should be implemented by subclasses, since the properties are very component-specific.

Specified by:
setProperties in interface KAoSExtensionComponent
Parameters:
props - ServiceProperties containing the properties of this component.