diff options
| author | Kostya <mail@sartin.in> | 2026-08-09 14:46:25 +0300 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-08-09 14:46:25 +0300 |
| commit | 34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13 (patch) | |
| tree | 17d9c867856ff9f1de4a59f63c13d6abf0ecb31e /modules/engine/src/main/java | |
| parent | 18a9b6e4f3c9f7e034a0c174a5e2cd6c043ee169 (diff) | |
| download | guess-market-34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13.tar.gz guess-market-34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13.tar.xz guess-market-34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13.zip | |
flatten modules to repo root, vendor deps, repair Eclipse build paths
Move api, engine, ui-console and ui-desktop out of modules/ up to the
repo root and drop the empty exception project (GuessMarketException now
lives in api).
Vendor gson, jaxb, okhttp, openjfx and tomcat under lib/, and group the
JUnit standalone jar into lib/junit/ alongside them.
Rewrite every .classpath: drop the copy-pasted optional="true" that was
masking real build path errors, point the library entries at ../lib/,
and put the JUnit jar on the test source folders so the placeholder
AppTest classes compile.
ui-desktop: take the JavaFX jars off the modulepath (there is no
module-info.java, so module="true" left the packages unresolvable) and
add a Launcher that calls Application.launch, avoiding the "JavaFX
runtime components are missing" check without VM arguments.
engine: add LocalGuessMarketService and the GuessMarketContext provider
interface, and give GuessMarketException the no-arg and cause
constructors they need.
Diffstat (limited to 'modules/engine/src/main/java')
4 files changed, 0 insertions, 96 deletions
diff --git a/modules/engine/src/main/java/market/guess/engine/GuessMarketEngine.java b/modules/engine/src/main/java/market/guess/engine/GuessMarketEngine.java deleted file mode 100644 index aab3cf4..0000000 --- a/modules/engine/src/main/java/market/guess/engine/GuessMarketEngine.java +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | package market.guess.engine; | ||
| 2 | |||
| 3 | import market.guess.api.LoadResultDTO; | ||
| 4 | |||
| 5 | public interface GuessMarketEngine { | ||
| 6 | LoadResultDTO loadEvents(); | ||
| 7 | } | ||
diff --git a/modules/engine/src/main/java/market/guess/engine/TradingMechanism.java b/modules/engine/src/main/java/market/guess/engine/TradingMechanism.java deleted file mode 100644 index 2f97a2f..0000000 --- a/modules/engine/src/main/java/market/guess/engine/TradingMechanism.java +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | package market.guess.engine; | ||
| 2 | |||
| 3 | import java.math.BigDecimal; | ||
| 4 | |||
| 5 | public interface TradingMechanism { | ||
| 6 | BigDecimal initialCost(); | ||
| 7 | |||
| 8 | void onOpen(); | ||
| 9 | |||
| 10 | void submit(); | ||
| 11 | |||
| 12 | void marketState(); | ||
| 13 | |||
| 14 | void settle(); | ||
| 15 | } | ||
diff --git a/modules/engine/src/main/java/market/guess/engine/mechanism/LmsrTradingMechanism.java b/modules/engine/src/main/java/market/guess/engine/mechanism/LmsrTradingMechanism.java deleted file mode 100644 index 99a26ab..0000000 --- a/modules/engine/src/main/java/market/guess/engine/mechanism/LmsrTradingMechanism.java +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | package market.guess.engine.mechanism; | ||
| 2 | |||
| 3 | import java.math.BigDecimal; | ||
| 4 | import market.guess.engine.TradingMechanism; | ||
| 5 | |||
| 6 | public class LmsrTradingMechanism implements TradingMechanism { | ||
| 7 | |||
| 8 | @Override | ||
| 9 | public BigDecimal initialCost() { | ||
| 10 | // TODO Auto-generated method stub | ||
| 11 | throw new UnsupportedOperationException("Unimplemented method 'initialCost'"); | ||
| 12 | } | ||
| 13 | |||
| 14 | @Override | ||
| 15 | public void onOpen() { | ||
| 16 | // TODO Auto-generated method stub | ||
| 17 | throw new UnsupportedOperationException("Unimplemented method 'onOpen'"); | ||
| 18 | } | ||
| 19 | |||
| 20 | @Override | ||
| 21 | public void submit() { | ||
| 22 | // TODO Auto-generated method stub | ||
| 23 | throw new UnsupportedOperationException("Unimplemented method 'submit'"); | ||
| 24 | } | ||
| 25 | |||
| 26 | @Override | ||
| 27 | public void marketState() { | ||
| 28 | // TODO Auto-generated method stub | ||
| 29 | throw new UnsupportedOperationException("Unimplemented method 'marketState'"); | ||
| 30 | } | ||
| 31 | |||
| 32 | @Override | ||
| 33 | public void settle() { | ||
| 34 | // TODO Auto-generated method stub | ||
| 35 | throw new UnsupportedOperationException("Unimplemented method 'settle'"); | ||
| 36 | } | ||
| 37 | } | ||
diff --git a/modules/engine/src/main/java/market/guess/engine/mechanism/OrderBookMechanism.java b/modules/engine/src/main/java/market/guess/engine/mechanism/OrderBookMechanism.java deleted file mode 100644 index be675ba..0000000 --- a/modules/engine/src/main/java/market/guess/engine/mechanism/OrderBookMechanism.java +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | package market.guess.engine.mechanism; | ||
| 2 | |||
| 3 | import java.math.BigDecimal; | ||
| 4 | import market.guess.engine.TradingMechanism; | ||
| 5 | |||
| 6 | public class OrderBookMechanism implements TradingMechanism { | ||
| 7 | |||
| 8 | @Override | ||
| 9 | public BigDecimal initialCost() { | ||
| 10 | // TODO Auto-generated method stub | ||
| 11 | throw new UnsupportedOperationException("Unimplemented method 'initialCost'"); | ||
| 12 | } | ||
| 13 | |||
| 14 | @Override | ||
| 15 | public void onOpen() { | ||
| 16 | // TODO Auto-generated method stub | ||
| 17 | throw new UnsupportedOperationException("Unimplemented method 'onOpen'"); | ||
| 18 | } | ||
| 19 | |||
| 20 | @Override | ||
| 21 | public void submit() { | ||
| 22 | // TODO Auto-generated method stub | ||
| 23 | throw new UnsupportedOperationException("Unimplemented method 'submit'"); | ||
| 24 | } | ||
| 25 | |||
| 26 | @Override | ||
| 27 | public void marketState() { | ||
| 28 | // TODO Auto-generated method stub | ||
| 29 | throw new UnsupportedOperationException("Unimplemented method 'marketState'"); | ||
| 30 | } | ||
| 31 | |||
| 32 | @Override | ||
| 33 | public void settle() { | ||
| 34 | // TODO Auto-generated method stub | ||
| 35 | throw new UnsupportedOperationException("Unimplemented method 'settle'"); | ||
| 36 | } | ||
| 37 | } | ||