kaos.ontology.repository
Class ActionInstanceDescription

java.lang.Object
  extended by kaos.policy.information.KAoSInstance
      extended by kaos.policy.information.BasicActionDescription
          extended by kaos.ontology.repository.ActionInstanceDescription
All Implemented Interfaces:
java.io.Serializable, KAoSInstanceDescription

public class ActionInstanceDescription
extends BasicActionDescription
implements java.io.Serializable

This class containes information describing an Action instance. It extends the BasicActionDescription class. Although it has an interface to access the actor, the action class and the targets seperately, it is really a hashtable storing KAoSProperties hashed on their names. See BasicActionDescription for more details. $Revision: 1.34 $

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class kaos.policy.information.KAoSInstance
KAoSInstance.PropertyNameWithPath
 
Field Summary
 
Fields inherited from class kaos.policy.information.KAoSInstance
_instanceNameURI, _instanceOfClassURI, _originalOWL, _properties, _propertyClasses
 
Constructor Summary
ActionInstanceDescription(KAoSInstance ki)
           
ActionInstanceDescription(java.lang.String actionClassName, java.lang.Object actor, java.util.Set targets)
           
ActionInstanceDescription(java.lang.String actionClassName, java.lang.Object actor, java.util.Set targets, java.lang.String mappingName)
           
ActionInstanceDescription(java.lang.String actionClassName, java.util.Set targets)
           
 
Method Summary
 void addTargetPropertyInstance(TargetInstanceDescription tid)
           
 java.lang.String getActionClassName()
          Get the name of the class of action.
 java.lang.Object getActor()
           
 java.lang.String getConceptMappingName()
          Get the name of the concept mapping.
 java.lang.String getPropertyPopulatorKey()
           
 java.util.Set getTargetInstances(java.lang.String targetName)
          Return a set of TargetInstanceDescriptiosn, whose target name matches the specified name.
 java.util.Set getTargets()
          Get TargetInstanceDescription(s) for this action.
 boolean isTargetPresent(java.lang.String targetName)
          Return true, if a target by the specifed name is present, otherwise return false.
 void removeAllTargetInstanceDescriptions(java.lang.String targetName)
           
 void removeTargetPropertyInstance(TargetInstanceDescription tid)
           
 ActionInstanceDescription returnCopyOfAID()
           
 void setPropertyPopulatorKey(java.lang.String aKey)
           
 java.lang.String toString()
          Return a string representation of this instance.
 
Methods inherited from class kaos.policy.information.BasicActionDescription
addActorInstance, addMultipleTargetInstances, addProperty, addTargetInstance, addTargetInstanceDescription, filterBAD, getActionSubclassesOfInterest, getActionTypes, getActorRangeClassName, getAllActorInstances, getBaseActionClassName, getClassRangesOfInterest, getInstanceDescriptionFor, getInstancesForTarget, getPropretiesOfInterest, getTargetClassName, getTargetRoleNames, isActorComplement, isActorInstancePresent, isTargetComplement, isTargetInstancePresent, removeActorInstance, removeAllActorInstances, removeAllTargetInstances, removeTargetInstance, removeTargetInstanceDescription, returnCopy, setActionProperty, setActionTypes, setActorComplement, setActorProperty, setActorRangeClassName, setBaseActionClassName, setMultipleTargetInstances, setTargetClassName, setTargetComplement, updateActionSubclasses
 
Methods inherited from class kaos.policy.information.KAoSInstance
addProperty, addProperty, compareProperty, comparePropertyOtherWay, getAllProperties, getAllPropertyNames, getAllPropertyValuesWithPaths, getClassNameURI, getInstanceNameURI, getNestedProperty, getNestedPropertyValue, getNestedPropertyValues, getOriginalOWL, getProperty, numberOfProperties, removeProperty, setOriginalOWL, setPropertyValue, setPropertyValues, updateInstancesForClass, updateSubpropertyNamesForProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionInstanceDescription

public ActionInstanceDescription(java.lang.String actionClassName,
                                 java.lang.Object actor,
                                 java.util.Set targets,
                                 java.lang.String mappingName)

ActionInstanceDescription

public ActionInstanceDescription(java.lang.String actionClassName,
                                 java.lang.Object actor,
                                 java.util.Set targets)

ActionInstanceDescription

public ActionInstanceDescription(java.lang.String actionClassName,
                                 java.util.Set targets)

ActionInstanceDescription

public ActionInstanceDescription(KAoSInstance ki)
                          throws ActorNotSet
Throws:
ActorNotSet
Method Detail

addTargetPropertyInstance

public void addTargetPropertyInstance(TargetInstanceDescription tid)

removeTargetPropertyInstance

public void removeTargetPropertyInstance(TargetInstanceDescription tid)

removeAllTargetInstanceDescriptions

public void removeAllTargetInstanceDescriptions(java.lang.String targetName)

getActor

public java.lang.Object getActor()

getActionClassName

public java.lang.String getActionClassName()
Get the name of the class of action.


getConceptMappingName

public java.lang.String getConceptMappingName()
Get the name of the concept mapping.


getTargets

public java.util.Set getTargets()
Get TargetInstanceDescription(s) for this action.


getTargetInstances

public java.util.Set getTargetInstances(java.lang.String targetName)
Return a set of TargetInstanceDescriptiosn, whose target name matches the specified name.


isTargetPresent

public boolean isTargetPresent(java.lang.String targetName)
Return true, if a target by the specifed name is present, otherwise return false.

Overrides:
isTargetPresent in class BasicActionDescription

setPropertyPopulatorKey

public void setPropertyPopulatorKey(java.lang.String aKey)

getPropertyPopulatorKey

public java.lang.String getPropertyPopulatorKey()

toString

public java.lang.String toString()
Description copied from class: KAoSInstance
Return a string representation of this instance.

Overrides:
toString in class BasicActionDescription

returnCopyOfAID

public ActionInstanceDescription returnCopyOfAID()