Class ItemSelection

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Item>, Collection<Item>, Set<Item>

public class ItemSelection extends HashSet<Item>
The set of selected items.
See Also:
  • Constructor Details

  • Method Details

    • isFeasible

      public boolean isFeasible()
      The ItemSelection is feasible if no knapsack is overloaded.
      Returns:
      true if the selection is feasible
    • setFeasible

      public void setFeasible(boolean feasible)
      Sets the feasibility of the ItemSelection.
      Parameters:
      feasible - true if the selection is feasible, false otherwise