kaos.policy.deconfliction
Class PolicyConflictHandler

java.lang.Object
  extended by kaos.policy.deconfliction.PolicyConflictHandler

public class PolicyConflictHandler
extends java.lang.Object

This class responsible for finding conflict in policies.


Constructor Summary
PolicyConflictHandler()
           
PolicyConflictHandler(OntologyRepository _context)
           
 
Method Summary
 java.util.Collection deconflictPolicies(java.lang.String policySet)
           
protected  boolean modalityPolicyConflict(java.lang.String p1Type, java.lang.String p2Type)
           
 boolean pairOfPoliciesConflicted(PolicyEntry _policy1, PolicyEntry _policy2)
           
 boolean pairOfPoliciesConflictedDoubleCheck(KAoSPolicyBuilder _policy1, KAoSPolicyBuilder _policy2)
           
 void unloadPolicyKB()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyConflictHandler

public PolicyConflictHandler()
                      throws java.lang.Exception
Throws:
java.lang.Exception

PolicyConflictHandler

public PolicyConflictHandler(OntologyRepository _context)
                      throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

deconflictPolicies

public java.util.Collection deconflictPolicies(java.lang.String policySet)
                                        throws ReasoningException,
                                               java.io.IOException
Throws:
ReasoningException
java.io.IOException

pairOfPoliciesConflicted

public boolean pairOfPoliciesConflicted(PolicyEntry _policy1,
                                        PolicyEntry _policy2)
                                 throws ReasoningException,
                                        java.io.IOException
Throws:
ReasoningException
java.io.IOException

pairOfPoliciesConflictedDoubleCheck

public boolean pairOfPoliciesConflictedDoubleCheck(KAoSPolicyBuilder _policy1,
                                                   KAoSPolicyBuilder _policy2)
                                            throws ReasoningException,
                                                   java.io.IOException
Throws:
ReasoningException
java.io.IOException

unloadPolicyKB

public void unloadPolicyKB()

modalityPolicyConflict

protected boolean modalityPolicyConflict(java.lang.String p1Type,
                                         java.lang.String p2Type)