public class BatteryBoxC130Impl extends AbstractOpenemsModbusComponent implements BatteryBoxC130, Battery, OpenemsComponent, org.osgi.service.event.EventHandler, ModbusSlave, StartStoppable
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<T extends AbstractModbusElement<?>>
BatteryBoxC130.ChannelId
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.cm.ConfigurationAdmin |
cm |
Constructor and Description |
---|
BatteryBoxC130Impl() |
Modifier and Type | Method and Description |
---|---|
protected void |
deactivate()
Handles @Deactivate of implementations.
|
java.lang.String |
debugLog()
Gets some output that is suitable for a continuous Debug log.
|
protected ModbusProtocol |
defineModbusProtocol()
Defines the Modbus protocol.
|
ModbusSlaveTable |
getModbusSlaveTable(AccessMode accessMode)
Gets the Modbus-Slave-Table for this OpenEMS-Component.
|
StartStop |
getStartStopTarget()
Gets the target Start/Stop mode from config or StartStop-Channel.
|
void |
handleEvent(org.osgi.service.event.Event event) |
protected void |
setModbus(BridgeModbus modbus)
Set the Modbus bridge.
|
void |
setStartStop(StartStop value)
Starts or stops the device or service represented by this OpenEMS Component.
|
activate, activate, activate, convert, getUnitId, m, m, m, m, unsetModbus
_channel, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_setMaxStartAttempts, _setMaxStopAttempts, _setPowerCircuitControl, getMaxStartAttempts, getMaxStartAttemptsChannel, getMaxStopAttempts, getMaxStopAttemptsChannel, getPowerCircuitControl, getPowerCircuitControlChannel, setPowerCircuitControl
_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, getModbusSlaveNatureTable, getSoc, getSocChannel, getSoh, getSohChannel, getVoltage, getVoltageChannel
_setStartStop, getStartStop, getStartStopChannel, isStarted, isStopped, start, stop
_channel, _getChannelAs, alias, channel, channel, channels, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
protected void setModbus(BridgeModbus modbus)
AbstractOpenemsModbusComponent
setModbus
in class AbstractOpenemsModbusComponent
modbus
- the BridgeModbus Referenceprotected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsModbusComponent
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
public java.lang.String debugLog()
OpenemsComponent
debugLog
in interface OpenemsComponent
protected ModbusProtocol defineModbusProtocol() throws OpenemsException
AbstractOpenemsModbusComponent
defineModbusProtocol
in class AbstractOpenemsModbusComponent
OpenemsException
- on errorpublic ModbusSlaveTable getModbusSlaveTable(AccessMode accessMode)
ModbusSlave
getModbusSlaveTable
in interface ModbusSlave
accessMode
- filters the Modbus-Records that should be shownpublic void setStartStop(StartStop value)
StartStoppable
setStartStop
in interface StartStoppable
value
- target StartStop
statepublic StartStop getStartStopTarget()
BatteryBoxC130
getStartStopTarget
in interface BatteryBoxC130
StartStop