Class Remove

java.lang.Object
dynheurset.update.remove.Remove
Direct Known Subclasses:
FreqWorstRemoval, GroupRemoval, NoRemove, PatientWorstRemoval

public abstract class Remove
extends java.lang.Object
This class defines the removal strategy that is used by the update strategy.

The removal strategy determines:

  • The removal condition: when to trigger the removal operation
  • The removal criterion: which heuristics to remove permanently
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.util.List<java.lang.Integer> heurList
    Universal set.
    Measure measure
    The performance measure that measures the value of low-level heuristics.
    java.util.Set<java.lang.Integer> removedHeurSet
    The set of permanently removed heuristics.
    RunStat runStat  
  • Constructor Summary

    Constructors 
    Constructor Description
    Remove()  
  • Method Summary

    Modifier and Type Method Description
    abstract boolean canRemove()
    Specifies the removal condition.
    abstract void remove()
    Specifies the removal criterion.
    void setHeurList​(java.util.List<java.lang.Integer> heurList)
    Sets the universal set for this removal strategy.
    void setup​(RunStat runStat, Measure measure)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • runStat

      public RunStat runStat
    • measure

      public Measure measure
      The performance measure that measures the value of low-level heuristics.
    • heurList

      public java.util.List<java.lang.Integer> heurList
      Universal set.
    • removedHeurSet

      public java.util.Set<java.lang.Integer> removedHeurSet
      The set of permanently removed heuristics.
  • Constructor Details

  • Method Details

    • setup

      public void setup​(RunStat runStat, Measure measure)
    • setHeurList

      public void setHeurList​(java.util.List<java.lang.Integer> heurList)
      Sets the universal set for this removal strategy.

      The universal set should contain all heuristics represented as an array of integers where each integer identifies a unique heuristic.

      Parameters:
      heurList - an array list of integers uniquely identifying the heuristics
    • canRemove

      public abstract boolean canRemove()
      Specifies the removal condition.

      The removal condition determines when to remove some heuristics permanently.

      Returns:
      trueif a removal operation can be performed and false otherwise.
    • remove

      public abstract void remove()
      Specifies the removal criterion.

      The removal criterion determines which heuristics to remove permanently.