ubiware.core.policies
Class PUAPolicychecker

java.lang.Object
  extended by ubiware.core.policies.PolicyChecker
      extended by ubiware.core.policies.PolicyAgentQueryingPolicyChecker
          extended by ubiware.core.policies.PUAPolicychecker

public class PUAPolicychecker
extends PolicyAgentQueryingPolicyChecker


Field Summary
 
Fields inherited from class ubiware.core.policies.PolicyAgentQueryingPolicyChecker
isAllowedToDo
 
Fields inherited from class ubiware.core.policies.PolicyChecker
optionsForPolicyCheckN3Generation
 
Constructor Summary
PUAPolicychecker(ubiware.util.saplbuilder.Resource agentName)
           
 
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

PUAPolicychecker

public PUAPolicychecker(ubiware.util.saplbuilder.Resource agentName)
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.

Overrides:
performPolicyCheck in class PolicyAgentQueryingPolicyChecker
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.