kaos.autonomy.repository
Class ActionUtilityImpl

java.lang.Object
  extended by kaos.core.csi.OntInstanceDescriptionImpl
      extended by kaos.autonomy.repository.ActionSituationCharacteristicImpl
          extended by 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

Constructor Summary
ActionUtilityImpl(SerializableOntModelImpl instanceModel, OntologyService myOntologyService)
           
ActionUtilityImpl(java.lang.String instanceName, java.lang.String className)
           
 
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.autonomy.repository.ActionSituationCharacteristicImpl
getDescribedActionClassName, setDescribedActionClassName
 
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.autonomy.repository.ActionSituationCharacteristic
getDescribedActionClassName, setDescribedActionClassName
 
Methods inherited from interface kaos.core.csi.OntInstanceDescription
addProperty, addProperty, addType, clone, getFirstType, getInstanceOntModel, getName, getNestedProperty, getProperties, getPropertiesMap, getProperty, getTypes, removeProperty, removeType
 

Constructor Detail

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
Method Detail

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