Class Reset

java.lang.Object
dynheurset.update.reset.Reset
Direct Known Subclasses:
FreqReset, NoReset, PatientReset

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

The reset strategy determines the reset condition (when to reset the active set such that it includes all heuristics except for permanently removed heuristics). The reset operation is performed in updateActiveList method of the Update class since the update strategy have access to the set of permanently removed heuristics.

See Also:
Update.updateActiveList()
  • Field Summary

    Fields 
    Modifier and Type Field Description
    Measure measure  
    RunStat runStat  
  • Constructor Summary

    Constructors 
    Constructor Description
    Reset()  
  • Method Summary

    Modifier and Type Method Description
    abstract boolean canReset()
    Returns true if the active set should be reset and returns false otherwise.
    void setHeurList​(java.util.List<java.lang.Integer> heurList)  
    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

  • Constructor Details

  • Method Details

    • setup

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

      public void setHeurList​(java.util.List<java.lang.Integer> heurList)
    • canReset

      public abstract boolean canReset()
      Returns true if the active set should be reset and returns false otherwise.

      The reset forces the active set to include all heuristics except for permanently removed heuristics.

      Returns:
      true if the active set should be reset and returns false otherwise.