ubiware.core.policies
Class SafeActionsPolicyChecker

java.lang.Object
  extended by ubiware.core.policies.PolicyChecker
      extended by ubiware.core.policies.SafeActionsPolicyChecker

public class SafeActionsPolicyChecker
extends PolicyChecker

To be wrapped around an actual policyChecker to speed up when safe actions are executed.

Since:
10 Aug 2010
Author:
Michael Cochez for Ubiware project

Field Summary
 
Fields inherited from class ubiware.core.policies.PolicyChecker
optionsForPolicyCheckN3Generation
 
Constructor Summary
SafeActionsPolicyChecker(ubiware.util.saplbuilder.Resource agentName, PolicyChecker actual)
           
 
Method Summary
 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
 

Constructor Detail

SafeActionsPolicyChecker

public SafeActionsPolicyChecker(ubiware.util.saplbuilder.Resource agentName,
                                PolicyChecker actual)
Method Detail

performPolicyCheck

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

Specified by:
performPolicyCheck in class PolicyChecker
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.