public class BinPackingPartition1 extends Object implements PartitionFunction
ITEMS_KEY
Constructor and Description |
---|
BinPackingPartition1() |
BinPackingPartition1(List<Item> items) |
Modifier and Type | Method and Description |
---|---|
List<? extends Item> |
getItems() |
Long |
getMaxBinItems() |
Double |
getNewBinPercentage() |
Integer |
getNumberOfBins() |
List<Partition> |
partition()
partition the items based on the partitioning function used
|
void |
setItems(List<? extends Item> items)
the items to partition
|
void |
setMaxBinItems(Long maxBinItems) |
void |
setNewBinPercentage(Double newBinPercentage) |
void |
setNumberOfBins(Integer numberOfBins)
Explicitly set the number of bins to use
|
public void setItems(List<? extends Item> items)
PartitionFunction
setItems
in interface PartitionFunction
items
- - the items to partitionpublic List<Partition> partition()
PartitionFunction
partition
in interface PartitionFunction
public void setNumberOfBins(Integer numberOfBins)
PartitionFunction
setNumberOfBins
in interface PartitionFunction
numberOfBins
- the numberOfBins to setpublic void setMaxBinItems(Long maxBinItems)
maxBinItems
- the maxBinItems to setpublic void setNewBinPercentage(Double newBinPercentage)
newBinPercentage
- the newBinPercentage to setpublic Long getMaxBinItems()
public Double getNewBinPercentage()
public Integer getNumberOfBins()
Copyright © 2016 iNetria. All rights reserved.