public class SimilarityGreedy extends java.lang.Object implements PrioritizationTechnique
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
SimilarityGreedy() |
| Modifier and Type | Method and Description |
|---|---|
double |
getFitnessSum()
Return the fitness sum associated to the products.
|
java.lang.String |
getName()
Return the name of this technique.
|
java.util.List<Product> |
prioritize(ModelPLEDGE model,
java.util.List<Product> products)
Returns the prioritized list of products.
|
public static final java.lang.String NAME
public java.util.List<Product> prioritize(ModelPLEDGE model, java.util.List<Product> products) throws java.lang.Exception
prioritize in interface PrioritizationTechniquemodel - the model of the application.products - the list of products to prioritize.java.lang.Exception - if an error occurs during the prioritization.public java.lang.String getName()
getName in interface PrioritizationTechniquepublic double getFitnessSum()
getFitnessSum in interface PrioritizationTechnique