kaos.policy.history
Class ActionHistoryBuilder

java.lang.Object
  extended by kaos.ontology.util.KAoSClassBuilderImpl
      extended by kaos.policy.history.ActionHistoryBuilder

public class ActionHistoryBuilder
extends KAoSClassBuilderImpl

This is used to create an action history class, so that the created class could be used in a policy which would be applicable based on the action history at that guard.


Field Summary
 
Fields inherited from class kaos.ontology.util.KAoSClassBuilderImpl
_classLable, _classNameSpace, _compClass, _counter, _currentClass, _currentClassModel, _immediateBaseClassName, _instBaseClass, _prevCompClass, _propertyNames, _restrictions
 
Constructor Summary
ActionHistoryBuilder(java.lang.String classURI)
           
 
Method Summary
 int getMinCardinality()
          to get the min cardinality
 OntologyActionHistoryContainer getOntologyActionHistoryContainer()
           
 KAoSClassBuilderImpl getRegisteredActionClass()
          to get the KAoSClassBuilder object representing the registered action of this history builder
 SerializableOntModelImpl getRegisteredActionClassModel()
          to get the supporting ont model of of the action class object
 java.lang.String getRegisteredActionClassName()
          to get the name of the action of this history bulider
 KAoSRoleValueMapContainer getRegisteredActionRVMContainer()
           
 void readFromActionHistoryContainer(OntologyActionHistoryContainer oac)
           
 void setMinCardinality(int count)
          to set the minimum # for which an action, belonging to the registered action class, has to occur in order to make a policy applicable.
 void setRegisteredAction(KAoSClassBuilderImpl action)
          method to set the action for whom the history would be searched
 void setRegisteredActionRVMContainer(KAoSRoleValueMapContainer actionContainer)
           
 
Methods inherited from class kaos.ontology.util.KAoSClassBuilderImpl
addBaseClass, addBaseClassComplement, addClassInstance, addImmediateBaseClass, addPropertyRangeInstance, addPropertyRangeInstance, addRequiredValueOnProperty, copyPropertyRangeFromOtherPolicy, getBaseClasses, getBasePropertyRangeClass, getClassName, getCurrentPropertyRangeClass, getImmediateBaseClass, getOntClass, getOntClassAsText, getParentPropertyRangeClass, getPropertyNames, getPropertyRangeInstance, getRangeComplementParentClass, getRestrictionTypeName, isPropertyRangeBasedOnClass, isRangeComplement, makeRangeComplement, printDebugString, readFromModel, removeBaseClass, removeClassInstance, removePropertyRangeInstance, removeRequiredValueOnProperty, resetClassBuilding, setInstanceEnumeration, setPropertyRangeClass, setPropertyRangeClass, setPropertyRangeClassDifference, setPropertyRangeClassIntersection, showClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionHistoryBuilder

public ActionHistoryBuilder(java.lang.String classURI)
Method Detail

setRegisteredAction

public void setRegisteredAction(KAoSClassBuilderImpl action)
                         throws ClassNameNotSet
method to set the action for whom the history would be searched

Throws:
ClassNameNotSet

getRegisteredActionClassName

public java.lang.String getRegisteredActionClassName()
                                              throws ClassNameNotSet
to get the name of the action of this history bulider

Throws:
ClassNameNotSet

getRegisteredActionClass

public KAoSClassBuilderImpl getRegisteredActionClass()
                                              throws ValueNotSet
to get the KAoSClassBuilder object representing the registered action of this history builder

Throws:
ValueNotSet

getRegisteredActionClassModel

public SerializableOntModelImpl getRegisteredActionClassModel()
                                                       throws ValueNotSet
to get the supporting ont model of of the action class object

Throws:
ValueNotSet

setMinCardinality

public void setMinCardinality(int count)
                       throws ClassNameNotSet
to set the minimum # for which an action, belonging to the registered action class, has to occur in order to make a policy applicable.

Throws:
ClassNameNotSet

getMinCardinality

public int getMinCardinality()
                      throws ValueNotSet
to get the min cardinality

Throws:
ValueNotSet

getOntologyActionHistoryContainer

public OntologyActionHistoryContainer getOntologyActionHistoryContainer()

setRegisteredActionRVMContainer

public void setRegisteredActionRVMContainer(KAoSRoleValueMapContainer actionContainer)

getRegisteredActionRVMContainer

public KAoSRoleValueMapContainer getRegisteredActionRVMContainer()

readFromActionHistoryContainer

public void readFromActionHistoryContainer(OntologyActionHistoryContainer oac)