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
Modifier and TypeFieldDescriptionprotected final int
protected final int
protected final int
protected final int
protected boolean
protected final int
protected final RuntimeModel
protected final boolean
Fields inherited from interface de.grogra.xl.impl.base.Operator
ONLY_CT_EDGES_MATCH
-
Constructor Summary
ConstructorDescriptionNeighbors
(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 TypeMethodDescriptionvoid
evaluate
(ObjectConsumer<? super NodeEdgePair<N>> cons, NodeEdgePair<N> p) void
evaluateObject
(ObjectConsumer<? super NodeEdgePair<N>> cons, N x) Generates the sequence of values for parameterx
.int
getUnilateralEdgeBits
(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:
getUnilateralEdgeBits
in interfaceOperator<N>
-
evaluateObject
Description copied from interface:ObjectToObjectGenerator
Generates the sequence of values for parameterx
.- Specified by:
evaluateObject
in interfaceObjectToObjectGenerator<N,
NodeEdgePair<N>> - Parameters:
cons
- each value is yielded to this consumerx
- where the generator function is to be evaluated
-
evaluate
-