|
@@ -12,7 +12,7 @@ import classes.*;
|
|
import ui.controller.Control;
|
|
import ui.controller.Control;
|
|
import ui.controller.StorageProductionController;
|
|
import ui.controller.StorageProductionController;
|
|
|
|
|
|
-public class controlAlgorithm implements AddOn {
|
|
|
|
|
|
+public class ControlAlgorithm implements AddOn {
|
|
// Gui Part:
|
|
// Gui Part:
|
|
private Control control;
|
|
private Control control;
|
|
private JTextArea textArea;
|
|
private JTextArea textArea;
|
|
@@ -45,14 +45,14 @@ public class controlAlgorithm implements AddOn {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
JFrame newFrame = new JFrame("exampleWindow");
|
|
JFrame newFrame = new JFrame("exampleWindow");
|
|
- controlAlgorithm instance = new controlAlgorithm();
|
|
|
|
|
|
+ ControlAlgorithm instance = new ControlAlgorithm();
|
|
newFrame.setContentPane(instance.getPanel());
|
|
newFrame.setContentPane(instance.getPanel());
|
|
newFrame.pack();
|
|
newFrame.pack();
|
|
newFrame.setVisible(true);
|
|
newFrame.setVisible(true);
|
|
newFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
newFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
}
|
|
}
|
|
|
|
|
|
- public controlAlgorithm() {
|
|
|
|
|
|
+ public ControlAlgorithm() {
|
|
content.setLayout(new BorderLayout());
|
|
content.setLayout(new BorderLayout());
|
|
|
|
|
|
textArea = new JTextArea();
|
|
textArea = new JTextArea();
|
|
@@ -237,7 +237,7 @@ public class controlAlgorithm implements AddOn {
|
|
println("No Power Plant in Model");
|
|
println("No Power Plant in Model");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- control.getModel().setResistanceCalculator(new resistanceCalculator(
|
|
|
|
|
|
+ control.getModel().setResistanceCalculator(new ResistanceCalculator(
|
|
Integer.parseInt(lowVolatageTextfield.getText()),
|
|
Integer.parseInt(lowVolatageTextfield.getText()),
|
|
Integer.parseInt(highVolatageTextfield.getText()),
|
|
Integer.parseInt(highVolatageTextfield.getText()),
|
|
10, 25,0.017, 0.017));
|
|
10, 25,0.017, 0.017));
|