de.grogra.xl.impl.base
N - node typepublic class Neighbors<N> extends java.lang.Object implements Operator<N>
| Modifier and Type | Field and Description |
|---|---|
protected int |
add |
protected int |
addOrCopy |
protected int |
addWhenMatching |
protected int |
copy |
protected boolean |
excludeRefinement |
protected int |
mask |
protected RuntimeModel |
model |
protected boolean |
outgoing |
ONLY_CT_EDGES_MATCH| Constructor and Description |
|---|
Neighbors(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) |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(ObjectConsumer<? super NodeEdgePair<N>> cons,
NodeEdgePair<N> p) |
void |
evaluateObject(ObjectConsumer<? super NodeEdgePair<N>> cons,
N x)
Generates the sequence of values for parameter
x. |
int |
getUnilateralEdgeBits(N node,
NodeEdgePair<N> opResult) |
int |
match(N node,
Operator<N> op,
NodeEdgePair<N> opResult) |
protected final int add
protected final int addOrCopy
protected final int addWhenMatching
protected final int copy
protected boolean excludeRefinement
protected final int mask
protected final RuntimeModel model
protected final boolean outgoing
public Neighbors(RuntimeModel model, int mask, int copy, int add, int addWhenMatching, boolean outgoing)
public Neighbors(RuntimeModel model, int mask, int copy, int add, int addWhenMatching, boolean outgoing, boolean excludeRefinement)
public void evaluate(ObjectConsumer<? super NodeEdgePair<N>> cons, NodeEdgePair<N> p)
public void evaluateObject(ObjectConsumer<? super NodeEdgePair<N>> cons, N x)
ObjectToObjectGeneratorx.evaluateObject in interface ObjectToObjectGenerator<N,NodeEdgePair<N>>cons - each value is yielded to this consumerx - where the generator function is to be evaluatedpublic int getUnilateralEdgeBits(N node, NodeEdgePair<N> opResult)
getUnilateralEdgeBits in interface Operator<N>