Search in sources :

Example 1 with BalancingController

use of io.openems.impl.controller.symmetric.balancing.BalancingController 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);
}
Also used : BalancingController(io.openems.impl.controller.symmetric.balancing.BalancingController) Ess(io.openems.impl.controller.symmetric.balancing.Ess) Meter(io.openems.impl.controller.symmetric.balancing.Meter) ArrayList(java.util.ArrayList) UnitTestSymmetricEssNature(io.openems.test.utils.devicenatures.UnitTestSymmetricEssNature) UnitTestSymmetricMeterNature(io.openems.test.utils.devicenatures.UnitTestSymmetricMeterNature) BeforeClass(org.junit.BeforeClass)

Aggregations

BalancingController (io.openems.impl.controller.symmetric.balancing.BalancingController)1 Ess (io.openems.impl.controller.symmetric.balancing.Ess)1 Meter (io.openems.impl.controller.symmetric.balancing.Meter)1 UnitTestSymmetricEssNature (io.openems.test.utils.devicenatures.UnitTestSymmetricEssNature)1 UnitTestSymmetricMeterNature (io.openems.test.utils.devicenatures.UnitTestSymmetricMeterNature)1 ArrayList (java.util.ArrayList)1 BeforeClass (org.junit.BeforeClass)1