summaryrefslogtreecommitdiff
path: root/dmc2012_task/ShopAgentInterface.java
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-12 10:55:08 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-12 11:00:24 +0200
commita8eb5eb83fb762630c83a765967313f4ccb59493 (patch)
tree36f3f635c79f7caef28478c5b6d8181c988f2247 /dmc2012_task/ShopAgentInterface.java
parent8048fff26ed23fabf854d9cef7af2ebb325e7bc4 (diff)
downloaddmc-a8eb5eb83fb762630c83a765967313f4ccb59493.tar.gz
dmc-a8eb5eb83fb762630c83a765967313f4ccb59493.tar.bz2
dmc-a8eb5eb83fb762630c83a765967313f4ccb59493.zip
Add dmc 2012 official task files
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;
+
+}