public Object call() {
int sampleCount = -1;
while (sampleCount <= 0) {
String s = JOptionPane.showInputDialog(getComponent(),
"How many samples should the data set contain", "Henon Map DataSet",
JOptionPane.QUESTION_MESSAGE);
sampleCount = Integer.parseInt(s);
}
int inputLength = -1;
while (inputLength <= 0) {
String s = JOptionPane.showInputDialog(getComponent(),
"How many values are used as input", "Henon Map DataSet",
JOptionPane.QUESTION_MESSAGE);
inputLength = Integer.parseInt(s);
}
int predictionLength = -1;
while (predictionLength <= 0) {
String s = JOptionPane.showInputDialog(getComponent(),
"How many values must be predicted", "Henon Map DataSet",
JOptionPane.QUESTION_MESSAGE);
predictionLength = Integer.parseInt(s);
}
ListDataSet henon = ListDataSet.Factory.HenonMap(sampleCount, inputLength, predictionLength);
henon.showGUI();
return henon;
}
}