java.lang.Object
de.grogra.xl.impl.base.Neighbors<N>
- Type Parameters:
N- node type
- All Implemented Interfaces:
Operator<N>,ObjectToObjectGenerator<N,NodeEdgePair<N>>
- Author:
- Ole Kniemeyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected final intprotected final intprotected booleanprotected final intprotected final RuntimeModelprotected final booleanFields inherited from interface de.grogra.xl.impl.base.Operator
ONLY_CT_EDGES_MATCH -
Constructor Summary
ConstructorsConstructorDescriptionNeighbors(RuntimeModel model, int mask, int copy, int add, int addWhenMatching, boolean outgoing) Neighbors(RuntimeModel model, int mask, int copy, int add, int addWhenMatching, boolean outgoing, boolean excludeRefinement) -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(ObjectConsumer<? super NodeEdgePair<N>> cons, NodeEdgePair<N> p) voidevaluateObject(ObjectConsumer<? super NodeEdgePair<N>> cons, N x) Generates the sequence of values for parameterx.intgetUnilateralEdgeBits(N node, NodeEdgePair<N> opResult) int
-
Field Details
-
model
-
mask
protected final int mask -
copy
protected final int copy -
add
protected final int add -
addWhenMatching
protected final int addWhenMatching -
addOrCopy
protected final int addOrCopy -
outgoing
protected final boolean outgoing -
excludeRefinement
protected boolean excludeRefinement
-
-
Constructor Details
-
Neighbors
public Neighbors(RuntimeModel model, int mask, int copy, int add, int addWhenMatching, boolean outgoing) -
Neighbors
public Neighbors(RuntimeModel model, int mask, int copy, int add, int addWhenMatching, boolean outgoing, boolean excludeRefinement)
-
-
Method Details
-
match
-
getUnilateralEdgeBits
- Specified by:
getUnilateralEdgeBitsin interfaceOperator<N>
-
evaluateObject
Description copied from interface:ObjectToObjectGeneratorGenerates the sequence of values for parameterx.- Specified by:
evaluateObjectin interfaceObjectToObjectGenerator<N,NodeEdgePair<N>> - Parameters:
cons- each value is yielded to this consumerx- where the generator function is to be evaluated
-
evaluate
-