public abstract class AbstractPolicyOperator extends java.lang.Object implements PolicyOperator
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<PolicyComponent> |
policyComponents |
| Constructor and Description |
|---|
AbstractPolicyOperator() |
AbstractPolicyOperator(PolicyOperator parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPolicyComponent(PolicyComponent component)
Add a PolicyComponent to the PolicyOperator.
|
void |
addPolicyComponents(java.util.List<? extends PolicyComponent> components) |
private static PolicyComponent |
computeResultantComponent(java.util.List<PolicyComponent> normalizedInnerComponets,
short componentType) |
boolean |
equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self.
|
private static ExactlyOne |
getCrossProduct(ExactlyOne exactlyOne1,
ExactlyOne exactlyOne2) |
PolicyComponent |
getFirstPolicyComponent() |
java.util.List<PolicyComponent> |
getPolicyComponents()
Returns a List of PolicyComponents which this PolicyOperator contains.
|
boolean |
isEmpty()
Returns true if the PolicyOperator doesn't contain any PolicyComponents.
|
protected static Policy |
normalize(Policy policy,
PolicyRegistry reg,
boolean deep) |
private static PolicyComponent |
normalizeOperator(Policy policy,
PolicyOperator operator,
PolicyRegistry reg,
boolean deep) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetType, serializeprotected java.util.List<PolicyComponent> policyComponents
public AbstractPolicyOperator()
public AbstractPolicyOperator(PolicyOperator parent)
public void addPolicyComponent(PolicyComponent component)
PolicyOperatoraddPolicyComponent in interface PolicyOperatorpublic void addPolicyComponents(java.util.List<? extends PolicyComponent> components)
public java.util.List<PolicyComponent> getPolicyComponents()
PolicyOperatorgetPolicyComponents in interface PolicyOperatorpublic PolicyComponent getFirstPolicyComponent()
public boolean isEmpty()
PolicyOperatorisEmpty in interface PolicyOperatorpublic boolean equal(PolicyComponent policyComponent)
PolicyComponentequal in interface PolicyComponentpolicyComponent - the PolicyComponent to check whether self is
logically equal or notprotected static Policy normalize(Policy policy, PolicyRegistry reg, boolean deep)
private static PolicyComponent normalizeOperator(Policy policy, PolicyOperator operator, PolicyRegistry reg, boolean deep)
private static PolicyComponent computeResultantComponent(java.util.List<PolicyComponent> normalizedInnerComponets, short componentType)
private static ExactlyOne getCrossProduct(ExactlyOne exactlyOne1, ExactlyOne exactlyOne2)