|
@@ -10,6 +10,7 @@ import javax.swing.*;
|
|
import api.AddOn;
|
|
import api.AddOn;
|
|
import classes.*;
|
|
import classes.*;
|
|
import ui.controller.Control;
|
|
import ui.controller.Control;
|
|
|
|
+import ui.controller.StorageProductionController;
|
|
|
|
|
|
public class controlAlgorithm implements AddOn {
|
|
public class controlAlgorithm implements AddOn {
|
|
private boolean cancel = false;
|
|
private boolean cancel = false;
|
|
@@ -100,7 +101,7 @@ public class controlAlgorithm implements AddOn {
|
|
blackstartStartTimeLabel.setBounds(185, 60, 300, 20);
|
|
blackstartStartTimeLabel.setBounds(185, 60, 300, 20);
|
|
parameterPanel.add(blackstartStartTimeLabel);
|
|
parameterPanel.add(blackstartStartTimeLabel);
|
|
|
|
|
|
- simulationDurationTextfield = new TextField("500");// TODO:!
|
|
|
|
|
|
+ simulationDurationTextfield = new TextField("500");
|
|
simulationDurationTextfield.setBounds(10, 85, 170, 20);
|
|
simulationDurationTextfield.setBounds(10, 85, 170, 20);
|
|
parameterPanel.add(simulationDurationTextfield);
|
|
parameterPanel.add(simulationDurationTextfield);
|
|
|
|
|
|
@@ -308,7 +309,6 @@ public class controlAlgorithm implements AddOn {
|
|
try {
|
|
try {
|
|
Thread.sleep(Integer.parseInt(waitBetweenIterations.getText()));
|
|
Thread.sleep(Integer.parseInt(waitBetweenIterations.getText()));
|
|
} catch (InterruptedException e) {
|
|
} catch (InterruptedException e) {
|
|
- // TODO Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
control.getModel().setCurIteration(curIteration);
|
|
control.getModel().setCurIteration(curIteration);
|
|
@@ -348,11 +348,12 @@ public class controlAlgorithm implements AddOn {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * TODO:HOLEG UNTERVERSORGUNG CHECKEN
|
|
|
|
- * TODO: storage laden
|
|
|
|
- * TODO: storage im GUI hinzufuegen
|
|
|
|
|
|
+ * TODO: HOLEG UNTERVERSORGUNG CHECKEN
|
|
|
|
+ * TODO: storage im GUI hinzufuegen koennen
|
|
* TODO: prios fuer elemente anschalten
|
|
* TODO: prios fuer elemente anschalten
|
|
* TODO: elements und amount nachschauen
|
|
* TODO: elements und amount nachschauen
|
|
|
|
+ * TODO: batterie status wechesel fuehrt zu unterversorgung in GUI
|
|
|
|
+ * TODO: wie soll ich unter / ueberversorgung handeln vorm blackstart
|
|
*
|
|
*
|
|
* @param curIteration
|
|
* @param curIteration
|
|
* @return true or false depending on whether the blackstart was successful for
|
|
* @return true or false depending on whether the blackstart was successful for
|