Search in sources :

Example 1 with PhaseRectificationActivePowerController

use of io.openems.impl.controller.asymmetric.phaserectification.PhaseRectificationActivePowerController in project openems by OpenEMS.

the class PhaseRectificationActivePowerTest method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    ess = new UnitTestAsymmetricEssNature("ess0");
    meter = new UnitTestAsymmetricMeterNature("meter0");
    controller = new PhaseRectificationActivePowerController();
    essThingMap = new Ess(ess);
    meterThingMap = new Meter(meter);
    controller.ess.updateValue(essThingMap, true);
    controller.meter.updateValue(meterThingMap, true);
}
Also used : PhaseRectificationActivePowerController(io.openems.impl.controller.asymmetric.phaserectification.PhaseRectificationActivePowerController) Ess(io.openems.impl.controller.asymmetric.phaserectification.Ess) Meter(io.openems.impl.controller.asymmetric.phaserectification.Meter) UnitTestAsymmetricMeterNature(io.openems.test.utils.devicenatures.UnitTestAsymmetricMeterNature) UnitTestAsymmetricEssNature(io.openems.test.utils.devicenatures.UnitTestAsymmetricEssNature) BeforeClass(org.junit.BeforeClass)

Aggregations

Ess (io.openems.impl.controller.asymmetric.phaserectification.Ess)1 Meter (io.openems.impl.controller.asymmetric.phaserectification.Meter)1 PhaseRectificationActivePowerController (io.openems.impl.controller.asymmetric.phaserectification.PhaseRectificationActivePowerController)1 UnitTestAsymmetricEssNature (io.openems.test.utils.devicenatures.UnitTestAsymmetricEssNature)1 UnitTestAsymmetricMeterNature (io.openems.test.utils.devicenatures.UnitTestAsymmetricMeterNature)1 BeforeClass (org.junit.BeforeClass)1