summaryrefslogtreecommitdiff
path: root/dmc2012_task/ShopAgentInterface.java
blob: 2b37036e515d2ed432d4049bc682a4fb862ce70a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import java.util.List;

public interface ShopAgentInterface {
    
    /**
     * Get the price for the current period.
     * 
     * @return price
     * @throws Exception
     */
    public double getPrice() throws Exception;

    /**
     * Parses the number of sales for the current period.
     * 
     * @param sales
     *            number of sales
     * @throws Exception
     */
    public void parseSales(int sales) throws Exception;

    /**
     * Parses the prices of the competitors.
     * 
     * @param prices
     *            prices of competitors
     * @throws Exception
     */
    public void parsePrices(List<Double> prices) throws Exception;

}