public class AccessGrantedVisitor extends java.lang.Object implements Visitor<java.lang.Boolean>
AccessStructure fulfills the threshold requirement needed
to allow access.| Constructor and Description |
|---|
AccessGrantedVisitor(java.util.Set<java.lang.Integer> setOfShareIdentifiers) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getResultOfCurrentNode()
Returns whether the node visited by this visitor fulfills the threshold requirement.
|
Visitor<java.lang.Boolean> |
getVisitorForNextChild()
Returns a visitor for the next child.
|
void |
putResultOfChild(java.lang.Boolean isChildFulfilled)
Takes information about whether a child is fulfilled and updates fulfillment information of the current
node accordingly.
|
void |
visit(TreeNode currentNode)
Visits given node and stores its threshold information.
|
public AccessGrantedVisitor(java.util.Set<java.lang.Integer> setOfShareIdentifiers)
setOfShareIdentifiers - set of share identifiers used to check fulfillment of the node to visitpublic java.lang.Boolean getResultOfCurrentNode()
getResultOfCurrentNode in interface Visitor<java.lang.Boolean>public Visitor<java.lang.Boolean> getVisitorForNextChild()
VisitorgetVisitorForNextChild in interface Visitor<java.lang.Boolean>public void putResultOfChild(java.lang.Boolean isChildFulfilled)
fulfilled is set to true.putResultOfChild in interface Visitor<java.lang.Boolean>isChildFulfilled - whether child is fulfilledpublic void visit(TreeNode currentNode)
fulfilled accordingly.