Skip to content
Snippets Groups Projects
Commit 5dcfd321 authored by Hugo Desmons's avatar Hugo Desmons
Browse files

Debut update 2 arguments

parent b798085a
No related branches found
No related tags found
No related merge requests found
......@@ -64,9 +64,7 @@ public class MainStageView implements Observer {
scatterChart.getData().add(series1);
for(LoadableData i : model.getDatas()) {
if(model.getType() == DataType.IRIS) {
series1.getData().add(new XYChart.Data<>(((Iris)i).getPetalLength(),
((Iris)i).getPetalWidth()));
series1.getData().add(new XYChart.Data<>(((Iris)i).getPetalLength(), ((Iris)i).getPetalWidth()));
}
}
......@@ -75,6 +73,14 @@ public class MainStageView implements Observer {
@Override
public void update(Observable observable, Object data) {
if(scatterChart == null) throw new IllegalStateException();
if(!(observable instanceof ClassificationModel)) throw new IllegalStateException();
if(data instanceof Iris){
Iris temp = (Iris)data;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment