ponderToolkit.compiler.codeGen.interfaces
Interface BasicPolicyI

All Known Subinterfaces:
DelegationI, NegAuthorisationI, ObligationI, PosAuthorisationI, RefrainI
All Known Implementing Classes:
BasicPolicyICode, BasicPolicy

public interface BasicPolicyI

Function:This interface must be implemented by the classes needed to model a basic policy object. This acts as an interface between the semantic analyser the code generator, and the runtime represenation of the policy object.


Field Summary
static int AUTH_MINUS
           
static int AUTH_PLUS
           
static int DELEG_MINUS
           
static int DELEG_PLUS
           
static int OBLIG
           
static int REFRAIN
           
 
Method Summary
 java.lang.Object getActualParamAt(int pos)
          return the actual parameter at the given position
 ConstraintI getConstraint()
          return the constraint of the policy
 java.lang.String getDomainPath()
          return the domain-path of the policy
 java.lang.String getName()
          return the name of the policy
 SubjectTargetI getSubject()
          return the subject of the policy
 SubjectTargetI getTarget()
          return the target of the policy
 int getType()
          return the type of the policy (an integer value)
 void setActualParams(java.util.LinkedList newActualParams)
          set the list of actual parameters
 void setSubject(SubjectTargetI newSubject)
          set the subject of the policy
 void setTarget(SubjectTargetI newTarget)
          set the target of the policy
 

Field Detail

AUTH_PLUS

public static final int AUTH_PLUS

AUTH_MINUS

public static final int AUTH_MINUS

OBLIG

public static final int OBLIG

REFRAIN

public static final int REFRAIN

DELEG_PLUS

public static final int DELEG_PLUS

DELEG_MINUS

public static final int DELEG_MINUS
Method Detail

getName

public java.lang.String getName()
return the name of the policy

getDomainPath

public java.lang.String getDomainPath()
return the domain-path of the policy

getSubject

public SubjectTargetI getSubject()
return the subject of the policy

setSubject

public void setSubject(SubjectTargetI newSubject)
set the subject of the policy

getTarget

public SubjectTargetI getTarget()
return the target of the policy

setTarget

public void setTarget(SubjectTargetI newTarget)
set the target of the policy

getConstraint

public ConstraintI getConstraint()
return the constraint of the policy

getType

public int getType()
return the type of the policy (an integer value)

setActualParams

public void setActualParams(java.util.LinkedList newActualParams)
set the list of actual parameters
Parameters:
newActualParams - The new list of actual parameters

getActualParamAt

public java.lang.Object getActualParamAt(int pos)
return the actual parameter at the given position
Parameters:
pos - The position within the list of actual parameters