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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNeighborhoodCalculator(Model model, IndividualsSet individuals, int depth) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddHash(ObjectCodeImpl objectCodeImpl, int o, long impact, long tupleHash) protected abstract intprotected ModelgetModel()protected abstract ObjectgetNullValue(T interpretation) protected longgetTupleHash1(Tuple tuple, Object value, ObjectCode objectCodeImpl) protected longgetTupleHash2(Tuple tuple, Object value, ObjectCode objectCodeImpl) protected longgetTupleHashN(Tuple tuple, Object value, ObjectCode objectCodeImpl) protected voidimpactCalculation(ObjectCodeImpl previous, ObjectCodeImpl next, long[] impactValue, Cursor<Tuple, ?> cursor, int arity) protected voidinitializeWithIndividuals(ObjectCodeImpl previous)
-
Constructor Details
-
AbstractNeighborhoodCalculator
-
-
Method Details
-
getModel
-
getInterpretations
-
getArity
-
getNullValue
-
getCursor
-
calculateCodes
- Specified by:
calculateCodesin interfaceStateCodeCalculator
-
impactCalculation
protected void impactCalculation(ObjectCodeImpl previous, ObjectCodeImpl next, long[] impactValue, Cursor<Tuple, ?> cursor, int arity) -
initializeWithIndividuals
-
getTupleHash1
-
getTupleHash2
-
getTupleHashN
-
addHash
-