diff options
Diffstat (limited to 'service/src/main/java')
3 files changed, 6 insertions, 6 deletions
diff --git a/service/src/main/java/market/guess/service/mechanism/LmsrTradingMechanism.java b/service/src/main/java/market/guess/service/mechanism/LmsrTradingMechanism.java index 02a63df..1904a04 100644 --- a/service/src/main/java/market/guess/service/mechanism/LmsrTradingMechanism.java +++ b/service/src/main/java/market/guess/service/mechanism/LmsrTradingMechanism.java | |||
| @@ -23,13 +23,13 @@ public final class LmsrTradingMechanism implements TradingMechanism { | |||
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | @Override | 25 | @Override |
| 26 | public BigDecimal costOfBuying(long[] q, int optionIndex, long quantity) { | 26 | public BigDecimal costOfBuying(int[] q, int optionIndex, int quantity) { |
| 27 | // TODO Auto-generated method stub | 27 | // TODO Auto-generated method stub |
| 28 | throw new UnsupportedOperationException("Unimplemented method 'costOfBuying'"); | 28 | throw new UnsupportedOperationException("Unimplemented method 'costOfBuying'"); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | @Override | 31 | @Override |
| 32 | public double[] prices(long[] q) { | 32 | public double[] prices(int[] q) { |
| 33 | // TODO Auto-generated method stub | 33 | // TODO Auto-generated method stub |
| 34 | throw new UnsupportedOperationException("Unimplemented method 'prices'"); | 34 | throw new UnsupportedOperationException("Unimplemented method 'prices'"); |
| 35 | } | 35 | } |
diff --git a/service/src/main/java/market/guess/service/mechanism/OrderBookTradingMechanism.java b/service/src/main/java/market/guess/service/mechanism/OrderBookTradingMechanism.java index 62feb02..5807e45 100644 --- a/service/src/main/java/market/guess/service/mechanism/OrderBookTradingMechanism.java +++ b/service/src/main/java/market/guess/service/mechanism/OrderBookTradingMechanism.java | |||
| @@ -27,13 +27,13 @@ public final class OrderBookTradingMechanism implements TradingMechanism { | |||
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | @Override | 29 | @Override |
| 30 | public BigDecimal costOfBuying(long[] q, int optionIndex, long quantity) { | 30 | public BigDecimal costOfBuying(int[] q, int optionIndex, int quantity) { |
| 31 | // TODO Auto-generated method stub | 31 | // TODO Auto-generated method stub |
| 32 | throw new UnsupportedOperationException("Unimplemented method 'costOfBuying'"); | 32 | throw new UnsupportedOperationException("Unimplemented method 'costOfBuying'"); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | @Override | 35 | @Override |
| 36 | public double[] prices(long[] q) { | 36 | public double[] prices(int[] q) { |
| 37 | // TODO Auto-generated method stub | 37 | // TODO Auto-generated method stub |
| 38 | throw new UnsupportedOperationException("Unimplemented method 'prices'"); | 38 | throw new UnsupportedOperationException("Unimplemented method 'prices'"); |
| 39 | } | 39 | } |
diff --git a/service/src/main/java/market/guess/service/mechanism/TradingMechanism.java b/service/src/main/java/market/guess/service/mechanism/TradingMechanism.java index d6e38bc..c2fc865 100644 --- a/service/src/main/java/market/guess/service/mechanism/TradingMechanism.java +++ b/service/src/main/java/market/guess/service/mechanism/TradingMechanism.java | |||
| @@ -9,7 +9,7 @@ public interface TradingMechanism { | |||
| 9 | 9 | ||
| 10 | BigDecimal openingCost(int optionCount); | 10 | BigDecimal openingCost(int optionCount); |
| 11 | 11 | ||
| 12 | BigDecimal costOfBuying(long[] q, int optionIndex, long quantity); | 12 | BigDecimal costOfBuying(int[] q, int optionIndex, int quantity); |
| 13 | 13 | ||
| 14 | double[] prices(long[] q); | 14 | double[] prices(int[] q); |
| 15 | } | 15 | } |