Przeglądaj źródła

voltage from gui but not finished

David Heck 5 lat temu
rodzic
commit
051d752cf7
1 zmienionych plików z 34 dodań i 15 usunięć
  1. 34 15
      src/blackstart/controlAlgorithm.java

+ 34 - 15
src/blackstart/controlAlgorithm.java

@@ -30,6 +30,8 @@ public class controlAlgorithm implements AddOn {
 	private TextField simulationDurationTextfield;
 	private TextField storageStartCharge;
 	private TextField waitBetweenIterations;
+	private TextField lowVolatageTextfield;
+	private TextField highVolatageTextfield;
 
 	private int blackstartSuccessTime;
 	private int blackstartStartTime;
@@ -74,61 +76,78 @@ public class controlAlgorithm implements AddOn {
 		parameterPanel.setPreferredSize(new Dimension(510, 300));
 
 		blackstartEnergyrequierementTextfield = new TextField("5000000");
-		blackstartEnergyrequierementTextfield.setBounds(10, 10, 170, 20);
+		blackstartEnergyrequierementTextfield.setBounds(10, 10, 95, 20);
 		parameterPanel.add(blackstartEnergyrequierementTextfield);
 
 		JLabel blackstartEnergyrequierementLabel = new JLabel("Blackstart Energyrequirement in Watt");
-		blackstartEnergyrequierementLabel.setBounds(185, 10, 300, 20);
+		blackstartEnergyrequierementLabel.setBounds(110, 10, 300, 20);
 		parameterPanel.add(blackstartEnergyrequierementLabel);
 
 		blackstartSuccessTimeTextfield = new TextField("30");
-		blackstartSuccessTimeTextfield.setBounds(10, 35, 170, 20);
+		blackstartSuccessTimeTextfield.setBounds(10, 35, 95, 20);
 		parameterPanel.add(blackstartSuccessTimeTextfield);
 
-		JLabel blackstartSuccessTimeLabel = new JLabel("Time for successfull blackstart in minutes(iterations)");
-		blackstartSuccessTimeLabel.setBounds(185, 35, 300, 20);
+		JLabel blackstartSuccessTimeLabel = new JLabel("Time for successfull blackstart in minutes");
+		blackstartSuccessTimeLabel.setBounds(110, 35, 300, 20);
 		parameterPanel.add(blackstartSuccessTimeLabel);
 
 		blackstartStartTimeTextfield = new TextField("15");
-		blackstartStartTimeTextfield.setBounds(10, 60, 170, 20);
+		blackstartStartTimeTextfield.setBounds(10, 60, 95, 20);
 		parameterPanel.add(blackstartStartTimeTextfield);
 
 		JLabel blackstartStartTimeLabel = new JLabel("Starttime for the blackstart");
-		blackstartStartTimeLabel.setBounds(185, 60, 300, 20);
+		blackstartStartTimeLabel.setBounds(110, 60, 300, 20);
 		parameterPanel.add(blackstartStartTimeLabel);
 
 		simulationDurationTextfield = new TextField("500");
-		simulationDurationTextfield.setBounds(10, 85, 170, 20);
+		simulationDurationTextfield.setBounds(10, 85, 95, 20);
 		parameterPanel.add(simulationDurationTextfield);
 
 		JLabel simulationDurationLabel = new JLabel("How long should the simulation run?");
-		simulationDurationLabel.setBounds(185, 85, 300, 20);
+		simulationDurationLabel.setBounds(110, 85, 300, 20);
 		parameterPanel.add(simulationDurationLabel);
 
 		powerplantMaxOutputTextfield = new TextField("40000000");
-		powerplantMaxOutputTextfield.setBounds(10, 110, 170, 20);
+		powerplantMaxOutputTextfield.setBounds(10, 110, 95, 20);
 		parameterPanel.add(powerplantMaxOutputTextfield);
 
 		JLabel powerplantMaxOutputLabel = new JLabel("Powerplant Output afer Blackstart");
-		powerplantMaxOutputLabel.setBounds(185, 110, 300, 20);
+		powerplantMaxOutputLabel.setBounds(110, 110, 300, 20);
 		parameterPanel.add(powerplantMaxOutputLabel);
 
 		storageStartCharge = new TextField("0.16666666");
-		storageStartCharge.setBounds(10, 135, 170, 20);
+		storageStartCharge.setBounds(10, 135, 95, 20);
 		parameterPanel.add(storageStartCharge);
 
 		JLabel storageStartChargeLabel = new JLabel("Storage charge at start in kWh");
-		storageStartChargeLabel.setBounds(185, 135, 300, 20);
+		storageStartChargeLabel.setBounds(110, 135, 300, 20);
 		parameterPanel.add(storageStartChargeLabel);
 
 		waitBetweenIterations = new TextField("0");
-		waitBetweenIterations.setBounds(10, 205, 170, 20);
+		waitBetweenIterations.setBounds(10, 205, 95, 20);
 		parameterPanel.add(waitBetweenIterations);
 
 		JLabel waitBetweenIterationsLabel = new JLabel("Wait time between iterations");
-		waitBetweenIterationsLabel.setBounds(185, 205, 300, 20);
+		waitBetweenIterationsLabel.setBounds(110, 205, 300, 20);
 		parameterPanel.add(waitBetweenIterationsLabel);
 
+//		////////collums
+//		lowVolatageTextfield = new TextField("230");
+//		lowVolatageTextfield.setBounds(425, 10, 95, 20);
+//		parameterPanel.add(lowVolatageTextfield);
+//
+//		JLabel lowVolatageLabel = new JLabel("low voltage in volt");
+//		lowVolatageLabel.setBounds(530, 10, 300, 20);
+//		parameterPanel.add(lowVolatageLabel);
+//
+//		highVolatageTextfield = new TextField("20000");
+//		highVolatageTextfield.setBounds(425, 35, 95, 20);
+//		parameterPanel.add(highVolatageTextfield);
+//
+//		JLabel highVolatageLabel = new JLabel("high voltage in volt");
+//		highVolatageLabel.setBounds(530, 35, 300, 20);
+//		parameterPanel.add(highVolatageLabel);
+
 		return parameterPanel;
 	}