public class DummyBattery extends AbstractOpenemsComponent implements Battery, OpenemsComponent, StartStoppable
Battery
component that can be used
together with the OpenEMS Component test framework.Battery.ChannelId
Constructor and Description |
---|
DummyBattery(java.lang.String id) |
DummyBattery(java.lang.String id,
ChannelId[] additionalChannelIds) |
Modifier and Type | Method and Description |
---|---|
void |
setStartStop(StartStop value)
Starts or stops the device or service represented by this OpenEMS Component.
|
DummyBattery |
withCapacity(int value)
Sets and applies the
Battery.ChannelId#CAPACITY . |
DummyBattery |
withChargeMaxCurrent(int value)
Sets and applies the
Battery.ChannelId#CHARGE_MAX_CURRENT . |
DummyBattery |
withDischargeMaxCurrent(int value)
Sets and applies the
Battery.ChannelId#DISCHARGE_MAX_CURRENT . |
DummyBattery |
withMaxCellTemperature(int value)
Sets and applies the
Battery.ChannelId#MAX_CELL_TEMPERATURE . |
DummyBattery |
withMaxCellVoltage(int value)
Sets and applies the
Battery.ChannelId#MAX_CELL_VOLTAGE . |
DummyBattery |
withMinCellTemperature(int value)
Sets and applies the
Battery.ChannelId#MIN_CELL_TEMPERATURE . |
DummyBattery |
withMinCellVoltage(int value)
Sets and applies the
Battery.ChannelId#MIN_CELL_VOLTAGE . |
DummyBattery |
withVoltage(int value)
Sets and applies the
Battery.ChannelId#VOLTAGE . |
_channel, activate, addChannel, addChannels, addChannels, alias, channels, deactivate, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_setCapacity, _setCapacity, _setChargeMaxCurrent, _setChargeMaxCurrent, _setChargeMaxVoltage, _setChargeMaxVoltage, _setCurrent, _setCurrent, _setDischargeMaxCurrent, _setDischargeMaxCurrent, _setDischargeMinVoltage, _setDischargeMinVoltage, _setForceChargeActive, _setForceChargeActive, _setForceDischargeActive, _setForceDischargeActive, _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, getForceChargeActive, getForceChargeActiveChannel, getForceDischargeActive, getForceDischargeActiveChannel, getMaxCellTemperature, getMaxCellTemperatureChannel, getMaxCellVoltage, getMaxCellVoltageChannel, getMinCellTemperature, getMinCellTemperatureChannel, getMinCellVoltage, getMinCellVoltageChannel, getModbusSlaveNatureTable, getSoc, getSocChannel, getSoh, getSohChannel, getVoltage, getVoltageChannel
_setStartStop, getStartStop, getStartStopChannel, isStarted, isStopped, start, stop
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, logDebug, logError, logInfo, logWarn, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
public DummyBattery(java.lang.String id)
public DummyBattery(java.lang.String id, ChannelId[] additionalChannelIds)
public void setStartStop(StartStop value) throws OpenemsError.OpenemsNamedException
StartStoppable
setStartStop
in interface StartStoppable
value
- target StartStop
stateOpenemsError.OpenemsNamedException
- on errorpublic DummyBattery withCapacity(int value)
Battery.ChannelId#CAPACITY
.value
- the Capacity in [Wh]public DummyBattery withVoltage(int value)
Battery.ChannelId#VOLTAGE
.value
- the Capacity in [V]public DummyBattery withDischargeMaxCurrent(int value)
Battery.ChannelId#DISCHARGE_MAX_CURRENT
.value
- the Discharge Max Current in [A]public DummyBattery withChargeMaxCurrent(int value)
Battery.ChannelId#CHARGE_MAX_CURRENT
.value
- the Charge Max Current in [A]public DummyBattery withMinCellVoltage(int value)
Battery.ChannelId#MIN_CELL_VOLTAGE
.value
- the Min-Cell-Voltage in [mV]public DummyBattery withMaxCellVoltage(int value)
Battery.ChannelId#MAX_CELL_VOLTAGE
.value
- the Max-Cell-Voltage in [mV]public DummyBattery withMinCellTemperature(int value)
Battery.ChannelId#MIN_CELL_TEMPERATURE
.value
- the Min-Cell-Temperature in [degC]public DummyBattery withMaxCellTemperature(int value)
Battery.ChannelId#MAX_CELL_TEMPERATURE
.value
- the Max-Cell-Temperature in [degC]