kaos.autonomy.repository
Class ActionPrerequisiteImpl

java.lang.Object
  extended by kaos.core.csi.OntInstanceDescriptionImpl
      extended by kaos.autonomy.repository.ActionSituationCharacteristicImpl
          extended by kaos.autonomy.repository.ActionPrerequisiteImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ActionPrerequisite, ActionSituationCharacteristic, OntInstanceDescription

public class ActionPrerequisiteImpl
extends ActionSituationCharacteristicImpl
implements ActionPrerequisite

This interface contains methods allowing to create and investigate a description of an ActionPrerequisite instance. $Revision$

See Also:
Serialized Form

Constructor Summary
ActionPrerequisiteImpl(SerializableOntModelImpl instanceModel, OntologyService myOntologyService)
           
ActionPrerequisiteImpl(java.lang.String instanceName, java.lang.String className)
           
 
Method Summary
 void addMetricForResourceStatus(MetricForResourceStatus myMetric)
          Add the metrics for a specific resource status
 OntInstanceDescription createValueDescription(java.lang.String propertyURI, SerializableOntModelImpl model, OntologyService ontService)
           
 java.util.Vector getMetricForResourceStatuses()
          Get the list of metrics for different resource statuses
 java.lang.String getResourceName()
          Get the name of the related resource
 void setResourceName(java.lang.String myResourceName)
          Set the name of related resource
 
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

ActionPrerequisiteImpl

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

ActionPrerequisiteImpl

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

createValueDescription

public OntInstanceDescription createValueDescription(java.lang.String propertyURI,
                                                     SerializableOntModelImpl model,
                                                     OntologyService ontService)
                                              throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

getResourceName

public java.lang.String getResourceName()
Get the name of the related resource

Specified by:
getResourceName in interface ActionPrerequisite

setResourceName

public void setResourceName(java.lang.String myResourceName)
Set the name of related resource

Specified by:
setResourceName in interface ActionPrerequisite
Parameters:
myResourceName - the name of the related resource

getMetricForResourceStatuses

public java.util.Vector getMetricForResourceStatuses()
Get the list of metrics for different resource statuses

Specified by:
getMetricForResourceStatuses in interface ActionPrerequisite

addMetricForResourceStatus

public void addMetricForResourceStatus(MetricForResourceStatus myMetric)
Add the metrics for a specific resource status

Specified by:
addMetricForResourceStatus in interface ActionPrerequisite
Parameters:
myMetric - id of the added metric