ponderToolkit.compiler.codeGen.policyObjects
Class Obligation

java.lang.Object
  |
  +--ponderToolkit.compiler.codeGen.policyObjects.BasicPolicy
        |
        +--ponderToolkit.compiler.codeGen.policyObjects.Obligation
All Implemented Interfaces:
BasicPolicyI, ObligationI, java.io.Serializable

public class Obligation
extends BasicPolicy
implements ObligationI, java.io.Serializable

Function:Implements the ObligationI 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
Obligation(java.lang.String newName, java.lang.String newDomainPath)
          Constructor with the namea and domain path of the policy
Obligation(java.lang.String newName, java.lang.String newDomainPath, SubjectTargetI newSubject, SubjectTargetI newTarget, ConstraintI newConstraint)
          Constructor with all the elements of the policy
 
Method Summary
 ObligActionI getActions()
          return the actions of the policy
 EventI getEvent()
          return the event of the policy
 ExceptionI getException()
          return the exception of the policy
 int getType()
          return the type of the policy (an integer value)
 void setActions(ObligActionI newActions)
          Set the actions of the obligation policy
 void setEvent(EventI newEvent)
          Set the event of the obligation policy
 void setException(ExceptionI newException)
          Set the Exception of the obligation policy
 
Methods inherited from class ponderToolkit.compiler.codeGen.policyObjects.BasicPolicy
getActualParamAt, getConstraint, getDomainPath, getName, getSubject, getTarget, setActualParams, setConstraint, setSubject, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ponderToolkit.compiler.codeGen.interfaces.BasicPolicyI
getActualParamAt, getConstraint, getDomainPath, getName, getSubject, getTarget, setActualParams, setSubject, setTarget
 

Constructor Detail

Obligation

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

Obligation

public Obligation(java.lang.String newName,
                  java.lang.String newDomainPath)
Constructor with the namea and domain path of the policy
Method Detail

setActions

public void setActions(ObligActionI newActions)
Set the actions of the obligation policy

setEvent

public void setEvent(EventI newEvent)
Set the event of the obligation policy

setException

public void setException(ExceptionI newException)
Set the Exception of the obligation policy

getActions

public ObligActionI getActions()
return the actions of the policy
Specified by:
getActions in interface ObligationI

getEvent

public EventI getEvent()
return the event of the policy
Specified by:
getEvent in interface ObligationI

getException

public ExceptionI getException()
return the exception of the policy
Specified by:
getException in interface ObligationI

getType

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