ubiware.core.policies
Class PolicyAgentQueryingPolicyChecker

java.lang.Object
  extended by ubiware.core.policies.PolicyChecker
      extended by ubiware.core.policies.PolicyAgentQueryingPolicyChecker
Direct Known Subclasses:
AIAPolicyChecker, AWAPolicyChecker, PUAPolicychecker

public abstract class PolicyAgentQueryingPolicyChecker
extends PolicyChecker


Field Summary
static java.lang.String isAllowedToDo
           
 
Fields inherited from class ubiware.core.policies.PolicyChecker
optionsForPolicyCheckN3Generation
 
Constructor Summary
PolicyAgentQueryingPolicyChecker(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
 

Field Detail

isAllowedToDo

public static final java.lang.String isAllowedToDo
See Also:
Constant Field Values
Constructor Detail

PolicyAgentQueryingPolicyChecker

public PolicyAgentQueryingPolicyChecker(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.

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.