summaryrefslogtreecommitdiff
path: root/dmc2012_task/ShopAgentInterface.java
diff options
context:
space:
mode:
Diffstat (limited to 'dmc2012_task/ShopAgentInterface.java')
-rw-r--r--dmc2012_task/ShopAgentInterface.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/dmc2012_task/ShopAgentInterface.java b/dmc2012_task/ShopAgentInterface.java
new file mode 100644
index 0000000..2b37036
--- /dev/null
+++ b/dmc2012_task/ShopAgentInterface.java
@@ -0,0 +1,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;
+
+}