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
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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