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 Details

  • Constructor Details

    • AbstractNeighborhoodCalculator

      protected AbstractNeighborhoodCalculator(Model model, IndividualsSet individuals, int depth)
  • Method Details

    • getModel

      protected Model getModel()
    • getInterpretations

      protected abstract List<T> getInterpretations()
    • getArity

      protected abstract int getArity(T interpretation)
    • getNullValue

      protected abstract Object getNullValue(T interpretation)
    • getCursor

      protected abstract Cursor<Tuple,?> getCursor(T interpretation)
    • calculateCodes

      public StateCoderResult calculateCodes()
      Specified by:
      calculateCodes in interface StateCodeCalculator
    • impactCalculation

      protected void impactCalculation(ObjectCodeImpl previous, ObjectCodeImpl next, long[] impactValue, Cursor<Tuple,?> cursor, int arity)
    • initializeWithIndividuals

      protected void initializeWithIndividuals(ObjectCodeImpl previous)
    • getTupleHash1

      protected long getTupleHash1(Tuple tuple, Object value, ObjectCode objectCodeImpl)
    • getTupleHash2

      protected long getTupleHash2(Tuple tuple, Object value, ObjectCode objectCodeImpl)
    • getTupleHashN

      protected long getTupleHashN(Tuple tuple, Object value, ObjectCode objectCodeImpl)
    • addHash

      protected void addHash(ObjectCodeImpl objectCodeImpl, int o, long impact, long tupleHash)