|
@@ -263,18 +263,6 @@ public class controlAlgorithm implements AddOn {
|
|
|
setPowerplantProduction(0);
|
|
|
enableAllConsumers();
|
|
|
SPC.disableStorageDischarging(-1); //disable all storage production
|
|
|
-
|
|
|
-// StorageElement ele = new StorageElement("Storage", 1, 0, control.getModel());
|
|
|
-// ele.setStatusAndSetEnergy(Mode.EMIT, 5000);
|
|
|
-//
|
|
|
-// System.out.println(""+ele.getEnergyPerElement());
|
|
|
-// powerPlant.addElement(ele);
|
|
|
-
|
|
|
-// for (HolonElement elem : powerPlant.getElements()) {
|
|
|
-// if(elem instanceof StorageElement) {
|
|
|
-// println("boom");
|
|
|
-// }
|
|
|
-// }
|
|
|
// TODO: prios?
|
|
|
/////////
|
|
|
|
|
@@ -397,7 +385,7 @@ public class controlAlgorithm implements AddOn {
|
|
|
return storageElements;
|
|
|
}
|
|
|
|
|
|
- private void disableConsumers() {
|
|
|
+ private void disableConsumers() {
|
|
|
// TODO: disableBatteryLoading? will ich das wirklich?
|
|
|
// SPC.disableStorageProduction();
|
|
|
|