| Constructor and Description |
|---|
MonotoneSpanProgramGetMatrixVisitor(org.cryptimeleon.math.structures.rings.zn.Zp field,
java.util.ArrayList<org.cryptimeleon.math.structures.rings.zn.Zp.ZpElement> prefix,
java.util.ArrayList<java.util.ArrayList<org.cryptimeleon.math.structures.rings.zn.Zp.ZpElement>> matrix) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getResultOfCurrentNode()
Returns the value that was calculated during
Visitor.visit(TreeNode). |
MonotoneSpanProgramGetMatrixVisitor |
getVisitorForNextChild()
Returns a visitor for the next child.
|
void |
putResultOfChild(java.lang.Integer input)
Inserts the result of the child of current node, so that the current
visitor can calculate its own value from it.
|
void |
visit(TreeNode currentNode)
Performs some kind of computation on the given
currentNode. |
public MonotoneSpanProgramGetMatrixVisitor(org.cryptimeleon.math.structures.rings.zn.Zp field,
java.util.ArrayList<org.cryptimeleon.math.structures.rings.zn.Zp.ZpElement> prefix,
java.util.ArrayList<java.util.ArrayList<org.cryptimeleon.math.structures.rings.zn.Zp.ZpElement>> matrix)
field - field over which the monotone span program is calculatedprefix - the values for the columns belong to higher hierarchiesmatrix - matrix containing all rows calculated so far and the new rows
will be stored in this instancepublic java.lang.Integer getResultOfCurrentNode()
VisitorVisitor.visit(TreeNode).getResultOfCurrentNode in interface Visitor<java.lang.Integer>public MonotoneSpanProgramGetMatrixVisitor getVisitorForNextChild() throws WrongAccessStructureException
VisitorgetVisitorForNextChild in interface Visitor<java.lang.Integer>WrongAccessStructureException - if something is wrong with the access structure being traversedpublic void putResultOfChild(java.lang.Integer input)
VisitorputResultOfChild in interface Visitor<java.lang.Integer>input - the result of visiting the child of the node currently being visited