|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aselect.agent.authorization.parsing.EvaluationTree
public class EvaluationTree
A binary tree that is constructed during evaluating rule parsing.
Description:
Represents a recursive tree data structure in which each node has at most two children.
The node contains data as an Object and can have children left and right.
This binary tree is created by the AuthorizationRuleParser
and used by the AuthorizationRuleEvaluator
to evaluate authorization rules.
Note: To improve performance the node and the child trees variables can be accessed directly.
Concurrency issues:
Use one EvaluationTree per authorization rule.
| Field Summary | |
|---|---|
java.lang.Object |
_oNode
The tree node its value (data). |
EvaluationTree |
_tLeft
The tree node its left children. |
EvaluationTree |
_tRight
The tree node its right children. |
| Constructor Summary | |
|---|---|
EvaluationTree(EvaluationTree tLeft,
EvaluationTree tRight,
java.lang.Object oNode)
Creates a simple recursive binary tree. |
|
| Method Summary | |
|---|---|
boolean |
isEmpty()
Determine if this tree node is empty. |
boolean |
isLeaf()
Determine if this tree node is a leaf. |
java.lang.String |
toString()
Retrieve a String representation of this EvaluationTree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public EvaluationTree _tLeft
public EvaluationTree _tRight
public java.lang.Object _oNode
| Constructor Detail |
|---|
public EvaluationTree(EvaluationTree tLeft,
EvaluationTree tRight,
java.lang.Object oNode)
tLeft - The left children of this tree.tRight - The right children of this tree.oNode - The node its value (data).| Method Detail |
|---|
public boolean isEmpty()
public boolean isLeaf()
true if this node of the tree is a leaf, otherwise false.public java.lang.String toString()
EvaluationTree.
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||