
package com.uwetrottmann.shopr.algorithm.model;

/**
 * Represents a item (e.g. clothing item), or one case in the case-base.
 */
public class Item {

    private int id;

    private Attributes attrs;

    private double querySimilarity;

    private double quality;

    public int id() {
        return id;
    }

    public Item id(int id) {
        this.id = id;
        return this;
    }

    public Attributes attributes() {
        return attrs;
    }

    public Item attributes(Attributes attrs) {
        this.attrs = attrs;
        return this;
    }

    public double querySimilarity() {
        return querySimilarity;
    }

    public Item querySimilarity(double querySimilarity) {
        this.querySimilarity = querySimilarity;
        return this;
    }

    public double quality() {
        return quality;
    }

    public Item quality(double quality) {
        this.quality = quality;
        return this;
    }

}

@@ -43,16 +43,46 @@
 model;%0A%0A
+import java.math.BigDecimal;%0A%0A
 /**%0A * R
@@ -196,16 +196,73 @@
 nt id;%0A%0A
+    private String name;%0A%0A    private BigDecimal price;%0A%0A
     priv
@@ -423,24 +423,24 @@
 d(int id) %7B%0A
-
         this
@@ -469,32 +469,336 @@
 rn this;%0A    %7D%0A%0A
+    public String name() %7B%0A        return name;%0A    %7D%0A%0A    public Item name(String name) %7B%0A        this.name = name;%0A        return this;%0A    %7D%0A%0A    public BigDecimal price() %7B%0A        return price;%0A    %7D%0A%0A    public Item price(BigDecimal price) %7B%0A        this.price = price;%0A        return this;%0A    %7D%0A%0A
     public Attri

Add price and name to algorithm model of Item.