kaos.autonomy.repository
Class ActionUtilityImpl
java.lang.Object
kaos.core.csi.OntInstanceDescriptionImpl
kaos.autonomy.repository.ActionSituationCharacteristicImpl
kaos.autonomy.repository.ActionUtilityImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ActionSituationCharacteristic, ActionUtility, OntInstanceDescription
public class ActionUtilityImpl
- extends ActionSituationCharacteristicImpl
- implements ActionUtility
This interface containes methods allowing to create and investigate a description of an ActionUtility instance.
$Revision$
- See Also:
- Serialized Form
Method Summary |
void |
addMetric(java.lang.String metricId)
Add the metrics this utility depends on |
java.util.Vector |
getMetrics()
Get the list of metrics this utility depends on |
java.lang.String |
getUtilityExpression()
Get Utility Expression |
void |
setUtilityExpression(java.lang.String myUtilityExpression)
Set Utility Expression |
Methods inherited from class kaos.core.csi.OntInstanceDescriptionImpl |
addProperty, addProperty, addType, addValueForProperty, addValueForProperty, clone, createValueDescription, equals, getAllValueDescriptionsForProperty, getAllValuesForProperty, getDescriptionOfFirstValueForProperty, getFirstType, getFirstValueForProperty, getInstanceID, getInstanceOntModel, getName, getNestedProperty, getProperties, getPropertiesMap, getProperty, getTypes, hashCode, removeProperty, removeType, setProperty, setValueForProperty, setValueForProperty, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface kaos.core.csi.OntInstanceDescription |
addProperty, addProperty, addType, clone, getFirstType, getInstanceOntModel, getName, getNestedProperty, getProperties, getPropertiesMap, getProperty, getTypes, removeProperty, removeType |
ActionUtilityImpl
public ActionUtilityImpl(java.lang.String instanceName,
java.lang.String className)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
ActionUtilityImpl
public ActionUtilityImpl(SerializableOntModelImpl instanceModel,
OntologyService myOntologyService)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
getMetrics
public java.util.Vector getMetrics()
- Get the list of metrics this utility depends on
- Specified by:
getMetrics
in interface ActionUtility
getUtilityExpression
public java.lang.String getUtilityExpression()
- Get Utility Expression
- Specified by:
getUtilityExpression
in interface ActionUtility
addMetric
public void addMetric(java.lang.String metricId)
- Add the metrics this utility depends on
- Specified by:
addMetric
in interface ActionUtility
- Parameters:
metricId
- id of the added metric
setUtilityExpression
public void setUtilityExpression(java.lang.String myUtilityExpression)
- Set Utility Expression
- Specified by:
setUtilityExpression
in interface ActionUtility
- Parameters:
myUtilityExpression
- string representing the expression used to calculate the utility