|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.policy.Policy
public abstract class Policy
This class implements policies within the SMC. It is the base class for more specialised policy classes and manages all the common work.
Field Summary | |
---|---|
static java.lang.String |
defaultDomain
|
Constructor Summary | |
---|---|
protected |
Policy()
initialises the base class for the underlying specific policy class |
Method Summary | |
---|---|
protected abstract void |
attach(P2Object aManagedObject)
attaches this policy to aManagedObject. |
static java.lang.String |
getDefaultDomain()
|
boolean |
isActive()
checks to see if this policy is active |
protected boolean |
isAttached()
|
protected P2Object |
operation_active(boolean aBoolean)
makes the policy active if aBoolean is true else makes the policy inactive. |
void |
setActive(boolean active)
makes the policy active if aBoolean is true, else makes it inactive. |
protected void |
setAttached(boolean attached)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String defaultDomain
Constructor Detail |
---|
protected Policy()
Method Detail |
---|
public void setActive(boolean active)
attach:
it will be attached to
the root domain.
active
- true if the policy should be activatedpublic boolean isActive()
public static java.lang.String getDefaultDomain()
protected P2Object operation_active(boolean aBoolean)
aBoolean
- true to make the policy active
protected abstract void attach(P2Object aManagedObject)
aManagedObject
- the managed object that the policy should be attached toprotected boolean isAttached()
protected void setAttached(boolean attached)
attached
- the attached to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |