use of io.openems.test.utils.devicenatures.UnitTestSymmetricEssNature in project openems by OpenEMS.
the class SupplyBusTest method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
HashMap<Ess, WriteChannel<Boolean>> essSet = new HashMap<>();
ess1 = new UnitTestSymmetricEssNature("ess0");
essMap1 = new Ess(ess1);
output1 = new UnitTestWriteChannel<>("output", "0");
essSet.put(essMap1, output1);
ess2 = new UnitTestSymmetricEssNature("ess1");
essMap2 = new Ess(ess2);
output2 = new UnitTestWriteChannel<>("output", "1");
essSet.put(essMap2, output2);
ess3 = new UnitTestSymmetricEssNature("ess2");
essMap3 = new Ess(ess3);
output3 = new UnitTestWriteChannel<>("output", "2");
essSet.put(essMap3, output3);
ess4 = new UnitTestSymmetricEssNature("ess3");
essMap4 = new Ess(ess4);
output4 = new UnitTestWriteChannel<>("output", "3");
essSet.put(essMap4, output4);
sbOnIndication = new UnitTestWriteChannel<>("custom", "sb1On");
sb = new Supplybus(essSet, "sb1", essMap1, 1000L, sbOnIndication, new ArrayList<>());
}
use of io.openems.test.utils.devicenatures.UnitTestSymmetricEssNature in project openems by OpenEMS.
the class BalancingTest method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
ess = new UnitTestSymmetricEssNature("ess0");
meter = new UnitTestSymmetricMeterNature("meter0");
controller = new BalancingController();
essThingMap = new Ess(ess);
meterThingMap = new Meter(meter);
List<Ess> essSet = new ArrayList<Ess>();
essSet.add(essThingMap);
controller.esss.updateValue(essSet, true);
controller.meter.updateValue(meterThingMap, true);
}
Aggregations