|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.core.csi.extension.KAoSExtensionComponentImpl
kaos.core.csi.extension.state.StateMonitorImpl
public class StateMonitorImpl
Field Summary |
---|
Fields inherited from class kaos.core.csi.extension.KAoSExtensionComponentImpl |
---|
_associatedOntTypes, _componentName |
Constructor Summary | |
---|---|
StateMonitorImpl(java.lang.String name,
java.lang.String ontType)
|
Method Summary | |
---|---|
void |
addOntologicalAttribute(java.lang.String ontAttribute)
Add an ontological attribute the component is associated with. |
OntInstanceDescription |
getCurrentState()
Returns an OntInstanceDescription containing the name of the state class and a collection of OntPropertyDescriptions of properties currently monitored. |
ActionClassDescription |
getStateDescription()
Returns the state ClassDescription containing the name of the state class and a collection of names of properties as defined in the ontology. |
boolean |
isStateConformantWithMonitoredState(java.lang.String stateName)
Check if the given state conforms with the monitored state. |
void |
removeProperty(java.lang.String propertyName)
Remove the property with the given name from the collection of monitored properties. |
void |
setName(java.lang.String componentName)
Set the name of this component. |
void |
updateProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.Object valueDescription)
kaos.core.csi.extension.state.StateMonitor interface implementation - begin |
Methods inherited from class kaos.core.csi.extension.KAoSExtensionComponentImpl |
---|
getEnabledStatus, getName, getOntologicalAttributes, setEnabledStatus, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface kaos.core.csi.extension.KAoSExtensionComponent |
---|
getEnabledStatus, getName, getOntologicalAttributes, setEnabledStatus, setProperties |
Constructor Detail |
---|
public StateMonitorImpl(java.lang.String name, java.lang.String ontType)
Method Detail |
---|
public void setName(java.lang.String componentName)
setName
in interface KAoSExtensionComponent
setName
in class KAoSExtensionComponentImpl
componentName
- String containing the name of this component.public void addOntologicalAttribute(java.lang.String ontAttribute)
addOntologicalAttribute
in interface KAoSExtensionComponent
addOntologicalAttribute
in class KAoSExtensionComponentImpl
ontAttribute
- String containing the name of the ontological attribute.public void updateProperty(java.lang.String propertyName, java.lang.String value, java.lang.Object valueDescription) throws InvalidPropertyForMonitoredStateException
updateProperty
in interface StateMonitor
propertyName
- String, specifying the ontological name of the property.value
- String, specifying the value of the property.valueDescription
- Object containing the description of the value. Often it will be kaos.core.csi.OntInstanceDescription
InvalidPropertyForMonitoredStateException
- if the specified property is not a property of the monitored state (has no been defined in the ontology as the state
property).public void removeProperty(java.lang.String propertyName) throws InvalidPropertyForMonitoredStateException
StateMonitor
removeProperty
in interface StateMonitor
propertyName
- String, specifying the name of property no longer to be monitored.
InvalidPropertyForMonitoredStateException
- if the specified property is not a property of the monitored state (has no been defined in the ontology as the state
property).public OntInstanceDescription getCurrentState()
StateMonitor
getCurrentState
in interface StateMonitor
public ActionClassDescription getStateDescription()
StateMonitor
getStateDescription
in interface StateMonitor
public boolean isStateConformantWithMonitoredState(java.lang.String stateName)
StateMonitor
isStateConformantWithMonitoredState
in interface StateMonitor
stateName
- String containing the name of the state to be checked.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |