Class AbstractNeighborhoodCalculator<T>
java.lang.Object
tools.refinery.store.statecoding.neighborhood.AbstractNeighborhoodCalculator<T>
- All Implemented Interfaces:
StateCodeCalculator
- Direct Known Subclasses:
NeighborhoodCalculator
public abstract class AbstractNeighborhoodCalculator<T>
extends Object
implements StateCodeCalculator
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractNeighborhoodCalculator
(Model model, IndividualsSet individuals, int depth) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addHash
(ObjectCodeImpl objectCodeImpl, int o, long impact, long tupleHash) protected abstract int
protected Model
getModel()
protected abstract Object
getNullValue
(T interpretation) protected long
getTupleHash1
(Tuple tuple, Object value, ObjectCode objectCodeImpl) protected long
getTupleHash2
(Tuple tuple, Object value, ObjectCode objectCodeImpl) protected long
getTupleHashN
(Tuple tuple, Object value, ObjectCode objectCodeImpl) protected void
impactCalculation
(ObjectCodeImpl previous, ObjectCodeImpl next, long[] impactValue, Cursor<Tuple, ?> cursor, int arity) protected void
initializeWithIndividuals
(ObjectCodeImpl previous)
-
Field Details
-
PRIME
protected static final long PRIME- See Also:
-
-
Constructor Details
-
AbstractNeighborhoodCalculator
-
-
Method Details
-
getModel
-
getInterpretations
-
getArity
-
getNullValue
-
getCursor
-
calculateCodes
- Specified by:
calculateCodes
in interfaceStateCodeCalculator
-
impactCalculation
protected void impactCalculation(ObjectCodeImpl previous, ObjectCodeImpl next, long[] impactValue, Cursor<Tuple, ?> cursor, int arity) -
initializeWithIndividuals
-
getTupleHash1
-
getTupleHash2
-
getTupleHashN
-
addHash
-