ubiware.core.policies
Class PolicyChecker

java.lang.Object
  extended by ubiware.core.policies.PolicyChecker
Direct Known Subclasses:
AllowAllPolicyChecker, DenyAllPolicyChecker, PolicyAgentQueryingPolicyChecker, SafeActionsPolicyChecker

public abstract class PolicyChecker
extends java.lang.Object

a PolicyChecker allows its user to check what the policies are saying about executing the specified action.

Since:
29 Jul 2010
Author:
Michael Cochez for Ubiware project

Field Summary
static ProduceN3Options optionsForPolicyCheckN3Generation
          Options to produce N3 for the Policy checkers.
 
Constructor Summary
PolicyChecker()
           
 
Method Summary
abstract  Status performPolicyCheck(UbiwareAgent agent, java.lang.String actionName, BehaviorStartParameters parameters, ParameterGenerator paramsgenerator)
          Perform a policy check; check whether the given agent is allowed to execute the action specified in actionName with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optionsForPolicyCheckN3Generation

public static final ProduceN3Options optionsForPolicyCheckN3Generation
Options to produce N3 for the Policy checkers. Usage of this instance is optional but prevents creating objects.

Constructor Detail

PolicyChecker

public PolicyChecker()
Method Detail

performPolicyCheck

public abstract Status performPolicyCheck(UbiwareAgent agent,
                                          java.lang.String actionName,
                                          BehaviorStartParameters parameters,
                                          ParameterGenerator paramsgenerator)
Perform a policy check; check whether the given agent is allowed to execute the action specified in actionName with the given parameters.

Parameters:
agent - The agent which wants to perform the action.
actionName - The name of the ReusableAtomicBehavior class the agent wants to execute.
parameters - The parameters for execution.
paramsgenerator - A generator which is able to generate a S-APL object String representing the parameters.
Returns:
The Status of the policy check.