Fixed a method that was converting the timestamp bytes incorrectly

- If an argument is passed to the application, it will use the internal mock server
Tags: #story[820]
This commit is contained in:
Michael Rausch
2017-04-30 23:41:21 +12:00
parent d94290c58d
commit d5aa430d4a
2 changed files with 15 additions and 8 deletions
+13 -6
View File
@@ -12,21 +12,28 @@ public class App extends Application
{
@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("/views/MainView.fxml"));
primaryStage.setTitle("RaceVision");
primaryStage.setScene(new Scene(root));
primaryStage.show();
// StreamReceiver sr = new StreamReceiver("csse-s302staff.canterbury.ac.nz", 4941,"TestThread1");
StreamReceiver sr = new StreamReceiver("livedata.americascup.com", 4941, "TestThread1");
}
public static void main(String[] args) {
StreamReceiver sr;
if (args.length > 1){
sr = new StreamReceiver("localhost", 8085, "TestThread1");
}
else{
//StreamReceiver sr = new StreamReceiver("csse-s302staff.canterbury.ac.nz", 4941,"TestThread1");
sr = new StreamReceiver("livedata.americascup.com", 4941, "TestThread1");
}
sr.start();
StreamParser streamParser = new StreamParser("TestThread2");
streamParser.start();
}
public static void main(String[] args) {
launch(args);
}
}