kaos.autonomy.repository
Class MetricForResourceStatusImpl

java.lang.Object
  extended by kaos.core.csi.OntInstanceDescriptionImpl
      extended by kaos.autonomy.repository.MetricForResourceStatusImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, MetricForResourceStatus, OntInstanceDescription

public class MetricForResourceStatusImpl
extends OntInstanceDescriptionImpl
implements MetricForResourceStatus

This class containes methods allowing to create and investigate a description of an MetricForResourceStatus instance. $Revision$

See Also:
Serialized Form

Constructor Summary
MetricForResourceStatusImpl(SerializableOntModelImpl instanceModel, OntologyService myOntologyService)
           
MetricForResourceStatusImpl(java.lang.String instanceName, java.lang.String className)
           
 
Method Summary
 float getProbabilityForSuccessfulPerformance()
          Get the value of this probability for successful performance of the haction in this situation
 java.lang.String getResourceStatus()
          Get resource status
 void setProbabilityForSuccessfulPerformance(float myProbability)
          Set the value of this probability
 void setResourceStatus(java.lang.String myResourceStatus)
          Set resource status
 
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
 

Constructor Detail

MetricForResourceStatusImpl

public MetricForResourceStatusImpl(java.lang.String instanceName,
                                   java.lang.String className)
                            throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

MetricForResourceStatusImpl

public MetricForResourceStatusImpl(SerializableOntModelImpl instanceModel,
                                   OntologyService myOntologyService)
                            throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException
Method Detail

getResourceStatus

public java.lang.String getResourceStatus()
Get resource status

Specified by:
getResourceStatus in interface MetricForResourceStatus

getProbabilityForSuccessfulPerformance

public float getProbabilityForSuccessfulPerformance()
Get the value of this probability for successful performance of the haction in this situation

Specified by:
getProbabilityForSuccessfulPerformance in interface MetricForResourceStatus

setResourceStatus

public void setResourceStatus(java.lang.String myResourceStatus)
Set resource status

Specified by:
setResourceStatus in interface MetricForResourceStatus
Parameters:
myResourceStatus - string representing the resource status url

setProbabilityForSuccessfulPerformance

public void setProbabilityForSuccessfulPerformance(float myProbability)
Set the value of this probability

Specified by:
setProbabilityForSuccessfulPerformance in interface MetricForResourceStatus
Parameters:
myProbability - value of probability for successful performance of the haction in this situation