Add skeleton to analyseData
This commit is contained in:
parent
d7517d4226
commit
1978e5d636
@ -1,5 +1,8 @@
|
||||
package fr.ntr;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
@ -53,7 +56,11 @@ public class AccessPoint {
|
||||
updateBandwidth(ticks);
|
||||
schedule();
|
||||
// traite les données et les enregistre dans un fichier
|
||||
analyseData();
|
||||
try {
|
||||
analyseData();
|
||||
} catch (IOException e) {
|
||||
System.out.println("Can't export data");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -93,8 +100,10 @@ public class AccessPoint {
|
||||
scheduler.scheduling();
|
||||
}
|
||||
|
||||
private void analyseData() {
|
||||
|
||||
private void analyseData() throws IOException {
|
||||
FileOutputStream file = new FileOutputStream("data.csv", true);
|
||||
// file.write("data1;data2".getBytes());
|
||||
file.close();
|
||||
}
|
||||
|
||||
private void plotData() {
|
||||
|
Reference in New Issue
Block a user