use of io.openems.test.utils.devicenatures.UnitTestAsymmetricEssNature in project openems by OpenEMS.
the class ThermalPowerStationTest method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
ess = new UnitTestAsymmetricEssNature("ess0");
meter = new UnitTestSymmetricMeterNature("meter0");
controller = new ThermalPowerStationController();
outputChannel = new UnitTestWriteChannel<>("0", new Thing() {
@Override
public String id() {
return "output0";
}
@Override
public ThingStateChannels getStateChannel() {
return null;
}
});
essThingMap = new Ess(ess);
meterThingMap = new Meter(meter);
controller.ess.updateValue(essThingMap, true);
List<Meter> meters = new ArrayList<>();
meters.add(meterThingMap);
controller.meters.updateValue(meters, true);
controller.outputChannelOpt = Optional.of(outputChannel);
controller.productionLimit.updateValue(1000L, true);
controller.limitTimeRange.updateValue(1L, true);
controller.minSoc.updateValue(15L, true);
controller.maxSoc.updateValue(95L, true);
controller.invertOutput.updateValue(false, true);
}
use of io.openems.test.utils.devicenatures.UnitTestAsymmetricEssNature 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);
}
use of io.openems.test.utils.devicenatures.UnitTestAsymmetricEssNature in project openems by OpenEMS.
the class AsymmetricPowerTest method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
ess = new UnitTestAsymmetricEssNature("ess0");
power = new AsymmetricPower(ess.allowedDischarge(), ess.allowedCharge(), ess.allowedApparent(), ess.setActivePowerL1(), ess.setActivePowerL2(), ess.setActivePowerL3(), ess.setReactivePowerL1(), ess.setReactivePowerL2(), ess.setReactivePowerL3());
}
Aggregations