public class

KnapsackAssignment

extends Object
java.lang.Object
   ↳ org.apache.helix.controller.strategy.knapsack.KnapsackAssignment

Class Overview

The assignment of a knapsack item to a knapsack

Based on the C++ knapsack solver in Google's or-tools package.

Summary

Fields
public boolean isIn
public int itemId
Public Constructors
KnapsackAssignment(int itemId, boolean isIn)
Create the assignment
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public boolean isIn

public int itemId

Public Constructors

public KnapsackAssignment (int itemId, boolean isIn)

Create the assignment

Parameters
itemId the item id
isIn true if the item is in the knapsack, false otherwise