java.lang.Object
org.deidentifier.arx.framework.check.history.History

public class History extends Object
The Class History.
  • Konstruktordetails

    • History

      public History(int rowCount, int size, double snapshotSizeDataset, double snapshotSizeSnapshot, ARXConfiguration.ARXConfigurationInternal config, IntArrayDictionary dictionarySensValue, IntArrayDictionary dictionarySensFreq, SolutionSpace<?> solutionSpace)
      Creates a new history.
      Parameter:
      rowCount - the row count
      size - the max size
      snapshotSizeDataset - the snapshotSizeDataset
      snapshotSizeSnapshot -
      config -
      dictionarySensValue -
      dictionarySensFreq -
      solutionSpace -
  • Methodendetails

    • get

      public int[] get(int[] transformation)
      Retrieves a snapshot.
      Parameter:
      transformation -
      Gibt zurück:
      snapshot
    • getDictionarySensFreq

      public IntArrayDictionary getDictionarySensFreq()
      Method needed for benchmarking.
      Gibt zurück:
    • getDictionarySensValue

      public IntArrayDictionary getDictionarySensValue()
      Method needed for benchmarking.
      Gibt zurück:
    • getStorageTrigger

      public DependentAction getStorageTrigger()
      Returns the current storage strategy.
      Gibt zurück:
    • getTransformation

      public int[] getTransformation()
      Returns the node backing the last returned snapshot.
      Gibt zurück:
    • reset

      public void reset()
      Clears the history.
    • setSize

      public void setSize(int size)
      Sets the size of this history.
      Parameter:
      size -
    • setStorageStrategy

      public void setStorageStrategy(History.StorageStrategy strategy)
      Sets the storage strategy
      Parameter:
      strategy -
    • store

      public boolean store(Transformation<?> transformation, HashGroupify groupify, int[] snapshot)
      Stores a snapshot in the buffer.
      Parameter:
      transformation - The transformation
      groupify - The groupify operator
      snapshot - The snapshot that was previously used, if any
      Gibt zurück: