|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ponderEnforcement.ponderMC.policyObjects.EnforcementObject
Function:Models an Enforcement Object, the superclass of all enforcement objects (i.e. obligation and refrain).
| Field Summary | |
protected ConstraintHandler |
constraintHandler
|
protected java.lang.String |
name
Fields |
protected int |
state
|
| Constructor Summary | |
EnforcementObject(java.lang.String newName,
BasicPolicyI newPolicyObj,
PonderMCimpl pmc)
Constructor |
|
| Method Summary | |
java.util.Vector |
checkConstraints(PonderEventI event)
The method to check the constraints of this policy. |
void |
disable()
Disable the policy |
void |
enable()
Enable the policy |
java.lang.String |
getName()
|
int |
getState()
Get State |
java.lang.String |
getStateStr()
Get State as a String |
boolean |
isEnabled()
Return true if enabled, false otherwise |
void |
setState(int newState)
Set State |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected int state
protected ConstraintHandler constraintHandler
| Constructor Detail |
public EnforcementObject(java.lang.String newName,
BasicPolicyI newPolicyObj,
PonderMCimpl pmc)
newName - The name of the policy objectpolicyObj - The policy object associated with this Enforcement
Object| Method Detail |
public java.lang.String getName()
public void enable()
public void disable()
public int getState()
public java.lang.String getStateStr()
public void setState(int newState)
public boolean isEnabled()
public java.util.Vector checkConstraints(PonderEventI event)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||