Package dynheurset.update.remove
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
-
Constructor Summary
Constructors Constructor Description Remove() -
Method Summary
Modifier and Type Method Description abstract booleancanRemove()Specifies the removal condition.abstract voidremove()Specifies the removal criterion.voidsetHeurList(java.util.List<java.lang.Integer> heurList)Sets the universal set for this removal strategy.voidsetup(RunStat runStat, Measure measure)
-
Field Details
-
runStat
-
measure
The performance measure that measures the value of low-level heuristics. -
heurList
public java.util.List<java.lang.Integer> heurListUniversal set. -
removedHeurSet
public java.util.Set<java.lang.Integer> removedHeurSetThe set of permanently removed heuristics.
-
-
Constructor Details
-
Remove
public Remove()
-
-
Method Details
-
setup
-
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 andfalseotherwise.
-
remove
public abstract void remove()Specifies the removal criterion.The removal criterion determines which heuristics to remove permanently.
-