Package io.openems.edge.battery.test
Class AbstractDummyBattery<SELF extends AbstractDummyBattery<?>>
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.common.test.AbstractDummyOpenemsComponent<SELF>
io.openems.edge.battery.test.AbstractDummyBattery<SELF>
- All Implemented Interfaces:
Battery
,OpenemsComponent
,StartStoppable
- Direct Known Subclasses:
DummyBattery
public abstract class AbstractDummyBattery<SELF extends AbstractDummyBattery<?>>
extends AbstractDummyOpenemsComponent<SELF>
implements Battery, StartStoppable
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.battery.api.Battery
Battery.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.startstop.StartStoppable
StartStoppable.ChannelId
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDummyBattery
(String id, ChannelId[] firstInitialChannelIds, ChannelId[]... furtherInitialChannelIds) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
setStartStop
(StartStop value) Starts or stops the device or service represented by this OpenEMS Component.final SELF
withCapacity
(int value) final SELF
withChargeMaxCurrent
(int value) final SELF
withChargeMaxVoltage
(int value) final SELF
withCurrent
(int value) final SELF
withDischargeMaxCurrent
(int value) final SELF
withDischargeMinVoltage
(int value) final SELF
withMaxCellTemperature
(int value) final SELF
withMaxCellVoltage
(int value) final SELF
withMinCellTemperature
(int value) final SELF
withMinCellVoltage
(int value) final SELF
withSoc
(int value) final SELF
withSoh
(int value) final SELF
withStartStop
(StartStop value) final SELF
withVoltage
(int value) Methods inherited from class io.openems.edge.common.test.AbstractDummyOpenemsComponent
self
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, deactivate, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.battery.api.Battery
_setCapacity, _setCapacity, _setChargeMaxCurrent, _setChargeMaxCurrent, _setChargeMaxVoltage, _setChargeMaxVoltage, _setCurrent, _setCurrent, _setDischargeMaxCurrent, _setDischargeMaxCurrent, _setDischargeMinVoltage, _setDischargeMinVoltage, _setMaxCellTemperature, _setMaxCellTemperature, _setMaxCellVoltage, _setMaxCellVoltage, _setMinCellTemperature, _setMinCellTemperature, _setMinCellVoltage, _setMinCellVoltage, _setSoc, _setSoc, _setSoh, _setSoh, _setVoltage, _setVoltage, getCapacity, getCapacityChannel, getChargeMaxCurrent, getChargeMaxCurrentChannel, getChargeMaxVoltage, getChargeMaxVoltageChannel, getCurrent, getCurrentChannel, getDischargeMaxCurrent, getDischargeMaxCurrentChannel, getDischargeMinVoltage, getDischargeMinVoltageChannel, getMaxCellTemperature, getMaxCellTemperatureChannel, getMaxCellVoltage, getMaxCellVoltageChannel, getMinCellTemperature, getMinCellTemperatureChannel, getMinCellVoltage, getMinCellVoltageChannel, getSoc, getSocChannel, getSoh, getSohChannel, getVoltage, getVoltageChannel
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
Methods inherited from interface io.openems.edge.common.startstop.StartStoppable
_setStartStop, getStartStop, getStartStopChannel, isStarted, isStopped, start, stop
-
Constructor Details
-
AbstractDummyBattery
-
-
Method Details
-
setStartStop
Description copied from interface:StartStoppable
Starts or stops the device or service represented by this OpenEMS Component.- Specified by:
setStartStop
in interfaceStartStoppable
- Parameters:
value
- targetStartStop
state- Throws:
OpenemsError.OpenemsNamedException
- on error
-
withStartStop
- Parameters:
value
- the value- Returns:
- myself
-
withSoc
- Parameters:
value
- the value- Returns:
- myself
-
withSoh
- Parameters:
value
- the value- Returns:
- myself
-
withCapacity
- Parameters:
value
- the value- Returns:
- myself
-
withVoltage
- Parameters:
value
- the value- Returns:
- myself
-
withCurrent
- Parameters:
value
- the value- Returns:
- myself
-
withDischargeMaxCurrent
- Parameters:
value
- the value- Returns:
- myself
-
withChargeMaxCurrent
- Parameters:
value
- the value- Returns:
- myself
-
withDischargeMinVoltage
- Parameters:
value
- the value- Returns:
- myself
-
withChargeMaxVoltage
- Parameters:
value
- the value- Returns:
- myself
-
withMinCellVoltage
- Parameters:
value
- the value- Returns:
- myself
-
withMaxCellVoltage
- Parameters:
value
- the value- Returns:
- myself
-
withMinCellTemperature
- Parameters:
value
- the value- Returns:
- myself
-
withMaxCellTemperature
- Parameters:
value
- the value- Returns:
- myself
-