kaos.policy.management
Interface PolicyModification

All Known Subinterfaces:
DirectoryService
All Known Implementing Classes:
CorbaAgentDirectoryServiceProxy, CougaarAgentDirectoryServiceProxy, DirectoryServiceProxy, GridAgentDirectoryServiceProxy, GridDirectoryServicePolicyCert, KAoSAgentDirectoryServiceProxy, KAoSDirectoryService, TCPAgentDirectoryServiceProxy, TunnelClient

public interface PolicyModification

Provides methods enabling analyzes of policies.

Author:
KAoS Team $Revision: 1.2 $

Method Summary
 void changedPriority(java.lang.String policyId, int newPriority)
          Method allowing to modify priority of a policy to either eliminate conflict or to alter policy precedence relation
 java.util.List<java.lang.String> harmonizePolicy(java.lang.String harmonizedPolicy, java.lang.String harmonizingPolicy)
          Method deconflicting the added policy with policies currently in the Policy Directory
 java.util.List<java.lang.String> splitPolicy(java.lang.String spliPolicy, java.lang.String secondPolicy)
          Method splitting the controlled action of the selected policy one part that overlaps with the second policy and the other part which does not.
 

Method Detail

changedPriority

void changedPriority(java.lang.String policyId,
                     int newPriority)
                     throws DirectoryFailure
Method allowing to modify priority of a policy to either eliminate conflict or to alter policy precedence relation

Parameters:
policyId - id of the policy
newPriority - new priority of the policy
Throws:
DirectoryFailure

harmonizePolicy

java.util.List<java.lang.String> harmonizePolicy(java.lang.String harmonizedPolicy,
                                                 java.lang.String harmonizingPolicy)
                                                 throws DirectoryFailure
Method deconflicting the added policy with policies currently in the Policy Directory

Parameters:
harmonizedPolicy - id of the policy to be harmonized.
harmonizingPolicy - id of the policy harmonizing the first policy
Returns:
List containing ids of policies representing the result of harmonization
Throws:
DirectoryFailure

splitPolicy

java.util.List<java.lang.String> splitPolicy(java.lang.String spliPolicy,
                                             java.lang.String secondPolicy)
                                             throws DirectoryFailure
Method splitting the controlled action of the selected policy one part that overlaps with the second policy and the other part which does not. Then the priorities of these parts can be modified independently

Parameters:
spliPolicy - id of the policy to be split.
secondPolicy - id of the policy splitting the first policy
Returns:
List containing ids of policies representing the result of process
Throws:
DirectoryFailure