ponderToolkit.compiler.codeGen.policyObjects
Class BasicPolicy

java.lang.Object
  |
  +--ponderToolkit.compiler.codeGen.policyObjects.BasicPolicy
All Implemented Interfaces:
BasicPolicyI, java.io.Serializable
Direct Known Subclasses:
NegAuthorisation, Obligation, PosAuthorisation, Refrain

public abstract class BasicPolicy
extends java.lang.Object
implements BasicPolicyI, java.io.Serializable

Function:Implements the BasicPolicyI interface.

See Also:
Serialized Form

Fields inherited from interface ponderToolkit.compiler.codeGen.interfaces.BasicPolicyI
AUTH_MINUS, AUTH_PLUS, DELEG_MINUS, DELEG_PLUS, OBLIG, REFRAIN
 
Constructor Summary
BasicPolicy(java.lang.String newName, java.lang.String newDomainPath)
          Constructor with only the name and domain-path of this BasicPolicy
BasicPolicy(java.lang.String newName, java.lang.String newDomainPath, SubjectTargetI newSubject, SubjectTargetI newTarget, ConstraintI newConstraint)
          Constructor with all the elements of this BasicPolicy
 
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
abstract  int getType()
          return the type of the policy (an integer value)
 void setActualParams(java.util.LinkedList newActualParams)
          set the list of actual parameters
 void setConstraint(Constraint newConstraint)
          Set the Constraint of the policy
 void setSubject(SubjectTargetI newSubject)
          Set the Subject of the policy
 void setTarget(SubjectTargetI newTarget)
          Set the Target of the policy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPolicy

public BasicPolicy(java.lang.String newName,
                   java.lang.String newDomainPath,
                   SubjectTargetI newSubject,
                   SubjectTargetI newTarget,
                   ConstraintI newConstraint)
Constructor with all the elements of this BasicPolicy

BasicPolicy

public BasicPolicy(java.lang.String newName,
                   java.lang.String newDomainPath)
Constructor with only the name and domain-path of this BasicPolicy
Method Detail

setSubject

public void setSubject(SubjectTargetI newSubject)
Set the Subject of the policy
Specified by:
setSubject in interface BasicPolicyI

setTarget

public void setTarget(SubjectTargetI newTarget)
Set the Target of the policy
Specified by:
setTarget in interface BasicPolicyI

setConstraint

public void setConstraint(Constraint newConstraint)
Set the Constraint of the policy

getName

public java.lang.String getName()
return the name of the policy
Specified by:
getName in interface BasicPolicyI

getDomainPath

public java.lang.String getDomainPath()
return the domain-path of the policy
Specified by:
getDomainPath in interface BasicPolicyI

getSubject

public SubjectTargetI getSubject()
return the subject of the policy
Specified by:
getSubject in interface BasicPolicyI

getTarget

public SubjectTargetI getTarget()
return the target of the policy
Specified by:
getTarget in interface BasicPolicyI

getConstraint

public ConstraintI getConstraint()
return the constraint of the policy
Specified by:
getConstraint in interface BasicPolicyI

getType

public abstract int getType()
return the type of the policy (an integer value)
Specified by:
getType in interface BasicPolicyI

setActualParams

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

getActualParamAt

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