|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateMonitor
Defines the operations for a class monitoring the state of an action. Properties of the monitored action are being updated with their current values and inquiries about the current state are being made. There is one instance of the StateMonitor for a given state class.
Method Summary | |
---|---|
OntInstanceDescription |
getCurrentState()
Returns an OntInstanceDescription containing the name of the state class and a collection of OntPropertyDescriptions of properties currently monitored. |
kaos.ontology.repository.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 |
updateProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.Object valueDescription)
Update property described by the given name, value, and value description (if any). |
Methods inherited from interface kaos.core.csi.extension.KAoSExtensionComponent |
---|
addOntologicalAttribute, getEnabledStatus, getName, getOntologicalAttributes, setEnabledStatus, setName, setProperties |
Method Detail |
---|
void updateProperty(java.lang.String propertyName, java.lang.String value, java.lang.Object valueDescription) throws InvalidPropertyForMonitoredStateException
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).void removeProperty(java.lang.String propertyName) throws InvalidPropertyForMonitoredStateException
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).OntInstanceDescription getCurrentState()
kaos.ontology.repository.ActionClassDescription getStateDescription()
boolean isStateConformantWithMonitoredState(java.lang.String stateName)
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 |