Skip to content

Commit

Permalink
added DD1KOutputScreen.java and dd1k_output_screen.fxml
Browse files Browse the repository at this point in the history
  • Loading branch information
omarsahl committed Dec 18, 2017
1 parent c216138 commit 75965df
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/ui/DD1KOutputScreen.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package ui;

/**
* Created by Omar
* Date: 18-Dec-17.
*/
public class DD1KOutputScreen {
}
14 changes: 14 additions & 0 deletions src/main/resources/fxml/dd1k_output_screen.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="ui.DD1KOutputScreen"
prefHeight="400.0" prefWidth="600.0">

</AnchorPane>
23 changes: 23 additions & 0 deletions src/test/java/UnitTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import io.reactivex.Observable;
import io.reactivex.observers.DisposableObserver;
import models.MM1KQueueModel;
import models.MM1QueueModel;
import models.PerformanceMetrics;
import models.QueueSystemInput;
import org.apache.commons.lang3.builder.ToStringExclude;
Expand Down Expand Up @@ -44,4 +45,26 @@ public void onComplete() {
});
}


@Test
public void testMM1QueueModel() {
MM1QueueModel model = new MM1QueueModel();
Observable<PerformanceMetrics> ob = model.getPerformanceMetrics(new QueueSystemInput(50.0, 60.0, null, null));
ob.subscribeWith(new DisposableObserver<PerformanceMetrics>() {
@Override
public void onNext(PerformanceMetrics performanceMetrics) {
System.out.println(performanceMetrics);
}

@Override
public void onError(Throwable e) {
e.printStackTrace();
}

@Override
public void onComplete() {
System.out.println("done!");
}
});
}
}

0 comments on commit 75965df

Please sign in to comment.