diff options
Diffstat (limited to 'modules')
12 files changed, 97 insertions, 29 deletions
diff --git a/modules/exception/src/main/java/market/guess/exception/GuessMarketException.java b/modules/api/src/main/java/market/guess/exception/GuessMarketException.java index 68a3053..68a3053 100644 --- a/modules/exception/src/main/java/market/guess/exception/GuessMarketException.java +++ b/modules/api/src/main/java/market/guess/exception/GuessMarketException.java | |||
diff --git a/modules/api/src/test/java/com/example/AppTest.java b/modules/api/src/test/java/market/guess/api/AppTest.java index 0b08c28..0b08c28 100644 --- a/modules/api/src/test/java/com/example/AppTest.java +++ b/modules/api/src/test/java/market/guess/api/AppTest.java | |||
diff --git a/modules/engine/src/main/java/market/guess/engine/TradingMechanism.java b/modules/engine/src/main/java/market/guess/engine/TradingMechanism.java index 5a235ed..2f97a2f 100644 --- a/modules/engine/src/main/java/market/guess/engine/TradingMechanism.java +++ b/modules/engine/src/main/java/market/guess/engine/TradingMechanism.java | |||
| @@ -4,4 +4,12 @@ import java.math.BigDecimal; | |||
| 4 | 4 | ||
| 5 | public interface TradingMechanism { | 5 | public interface TradingMechanism { |
| 6 | BigDecimal initialCost(); | 6 | BigDecimal initialCost(); |
| 7 | |||
| 8 | void onOpen(); | ||
| 9 | |||
| 10 | void submit(); | ||
| 11 | |||
| 12 | void marketState(); | ||
| 13 | |||
| 14 | void settle(); | ||
| 7 | } | 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 index 93826b7..99a26ab 100644 --- a/modules/engine/src/main/java/market/guess/engine/mechanism/LmsrTradingMechanism.java +++ b/modules/engine/src/main/java/market/guess/engine/mechanism/LmsrTradingMechanism.java | |||
| @@ -10,4 +10,28 @@ public class LmsrTradingMechanism implements TradingMechanism { | |||
| 10 | // TODO Auto-generated method stub | 10 | // TODO Auto-generated method stub |
| 11 | throw new UnsupportedOperationException("Unimplemented method 'initialCost'"); | 11 | throw new UnsupportedOperationException("Unimplemented method 'initialCost'"); |
| 12 | } | 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 | } | ||
| 13 | } | 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 index 079b204..be675ba 100644 --- a/modules/engine/src/main/java/market/guess/engine/mechanism/OrderBookMechanism.java +++ b/modules/engine/src/main/java/market/guess/engine/mechanism/OrderBookMechanism.java | |||
| @@ -10,4 +10,28 @@ public class OrderBookMechanism implements TradingMechanism { | |||
| 10 | // TODO Auto-generated method stub | 10 | // TODO Auto-generated method stub |
| 11 | throw new UnsupportedOperationException("Unimplemented method 'initialCost'"); | 11 | throw new UnsupportedOperationException("Unimplemented method 'initialCost'"); |
| 12 | } | 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 | } | ||
| 13 | } | 37 | } |
diff --git a/modules/engine/src/test/java/com/example/AppTest.java b/modules/engine/src/test/java/com/example/AppTest.java deleted file mode 100644 index 0b08c28..0000000 --- a/modules/engine/src/test/java/com/example/AppTest.java +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | package com.example; | ||
| 2 | |||
| 3 | public class AppTest {} | ||
diff --git a/modules/engine/src/test/java/market/guess/engine/AppTest.java b/modules/engine/src/test/java/market/guess/engine/AppTest.java new file mode 100644 index 0000000..b4531c0 --- /dev/null +++ b/modules/engine/src/test/java/market/guess/engine/AppTest.java | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | package market.guess.engine; | ||
| 2 | |||
| 3 | public class AppTest {} | ||
diff --git a/modules/exception/.classpath b/modules/exception/.classpath deleted file mode 100644 index 7f8bc25..0000000 --- a/modules/exception/.classpath +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <classpath> | ||
| 3 | <!-- Defines your source folder --> | ||
| 4 | <classpathentry kind="src" output="bin/classes" path="src/main/java"> | ||
| 5 | <attributes> | ||
| 6 | <attribute name="optional" value="true"/> | ||
| 7 | </attributes> | ||
| 8 | </classpathentry> | ||
| 9 | <classpathentry kind="src" output="bin/test-classes" path="src/test/java"> | ||
| 10 | <attributes> | ||
| 11 | <attribute name="optional" value="true"/> | ||
| 12 | <attribute name="test" value="true"/> | ||
| 13 | </attributes> | ||
| 14 | </classpathentry> | ||
| 15 | <!-- Defines the standard Java System Library --> | ||
| 16 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
| 17 | <!-- Defines where compiled .class files go --> | ||
| 18 | <classpathentry kind="output" path="bin"/> | ||
| 19 | </classpath> | ||
| 20 | |||
diff --git a/modules/exception/src/confing.properties b/modules/exception/src/confing.properties deleted file mode 100644 index e69de29..0000000 --- a/modules/exception/src/confing.properties +++ /dev/null | |||
diff --git a/modules/exception/src/test/java/com/example/AppTest.java b/modules/exception/src/test/java/com/example/AppTest.java deleted file mode 100644 index 0b08c28..0000000 --- a/modules/exception/src/test/java/com/example/AppTest.java +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | package com.example; | ||
| 2 | |||
| 3 | public class AppTest {} | ||
diff --git a/modules/ui-desktop/.classpath b/modules/ui-desktop/.classpath index 7f8bc25..7d4bc5c 100644 --- a/modules/ui-desktop/.classpath +++ b/modules/ui-desktop/.classpath | |||
| @@ -15,6 +15,20 @@ | |||
| 15 | <!-- Defines the standard Java System Library --> | 15 | <!-- Defines the standard Java System Library --> |
| 16 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | 16 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
| 17 | <!-- Defines where compiled .class files go --> | 17 | <!-- Defines where compiled .class files go --> |
| 18 | <classpathentry kind="output" path="bin"/> | 18 | <classpathentry kind="output" path="bin"/> |
| 19 | |||
| 20 | <!-- Required OpenJFX JARs explicitly placed on the Modulepath --> | ||
| 21 | <classpathentry kind="lib" path="/usr/share/openjfx/lib/javafx.base.jar"> | ||
| 22 | <attributes><attribute name="module" value="true"/></attributes> | ||
| 23 | </classpathentry> | ||
| 24 | <classpathentry kind="lib" path="/usr/share/openjfx/lib/javafx.controls.jar"> | ||
| 25 | <attributes><attribute name="module" value="true"/></attributes> | ||
| 26 | </classpathentry> | ||
| 27 | <classpathentry kind="lib" path="/usr/share/openjfx/lib/javafx.graphics.jar"> | ||
| 28 | <attributes><attribute name="module" value="true"/></attributes> | ||
| 29 | </classpathentry> | ||
| 30 | <classpathentry kind="lib" path="/usr/share/openjfx/lib/javafx.fxml.jar"> | ||
| 31 | <attributes><attribute name="module" value="true"/></attributes> | ||
| 32 | </classpathentry> | ||
| 19 | </classpath> | 33 | </classpath> |
| 20 | 34 | ||
diff --git a/modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java b/modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java index 70a7e7d..698cdd7 100644 --- a/modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java +++ b/modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java | |||
| @@ -1,5 +1,26 @@ | |||
| 1 | package market.guess.ui.desktop; | 1 | package market.guess.ui.desktop; |
| 2 | 2 | ||
| 3 | public class App { | 3 | import javafx.application.Application; |
| 4 | public static void main(String[] args) {} | 4 | import javafx.scene.Scene; |
| 5 | import javafx.scene.control.Label; | ||
| 6 | import javafx.scene.layout.StackPane; | ||
| 7 | import javafx.stage.Stage; | ||
| 8 | |||
| 9 | public class App extends Application { | ||
| 10 | public static void main(String[] args) { | ||
| 11 | launch(); | ||
| 12 | } | ||
| 13 | |||
| 14 | @Override | ||
| 15 | public void start(Stage stage) throws Exception { | ||
| 16 | var javaVersion = System.getProperty("java.version"); | ||
| 17 | var openjfxVersion = System.getProperty("javafx.version"); | ||
| 18 | |||
| 19 | var label = | ||
| 20 | new Label("Hello. JavaFX " + openjfxVersion + ", running on Java " + javaVersion + "."); | ||
| 21 | var scene = new Scene(new StackPane(label), 640, 480); | ||
| 22 | |||
| 23 | stage.setScene(scene); | ||
| 24 | stage.show(); | ||
| 25 | } | ||
| 5 | } | 26 | } |