public class SingleRackVersionBImpl extends AbstractOpenemsModbusComponent implements Battery, OpenemsComponent, org.osgi.service.event.EventHandler, ModbusSlave, StartStoppable, SingleRackVersionB
AbstractOpenemsModbusComponent.BitConverter, AbstractOpenemsModbusComponent.ChannelMapper<T extends AbstractModbusElement<?>>
SingleRackVersionB.ChannelId
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.cm.ConfigurationAdmin |
cm |
protected ComponentManager |
componentManager |
Constructor and Description |
---|
SingleRackVersionBImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context,
Config config) |
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, getBridgeModbus, getModbusProtocol, 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
_setContactorControl, _setMaxStartAttempts, _setMaxStopAttempts, _setSleep, _setSocLowProtection, _setSocLowProtectionRecover, _setSystemReset, _setWatchdog, getContactorControl, getContactorControlChannel, getMaxStartAttempts, getMaxStartAttemptsChannel, getMaxStopAttempts, getMaxStopAttemptsChannel, getSleep, getSleepChannel, getSocLowProtection, getSocLowProtectionChannel, getSocLowProtectionRecover, getSocLowProtectionRecoverChannel, getSystemReset, getSystemResetChannel, getWatchdog, getWatchdogChannel, setContactorControl, setSleep, setSocLowProtection, setSocLowProtectionRecover, setSystemReset, setWatchdog
_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, getSoc, getSocChannel, getSoh, getSohChannel, getVoltage, getVoltageChannel
protected org.osgi.service.cm.ConfigurationAdmin cm
protected ComponentManager componentManager
protected void setModbus(BridgeModbus modbus)
AbstractOpenemsModbusComponent
setModbus
in class AbstractOpenemsModbusComponent
modbus
- the BridgeModbus Referenceprotected void activate(org.osgi.service.component.ComponentContext context, Config config) throws OpenemsException
OpenemsException
protected 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 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()
SingleRackVersionB
getStartStopTarget
in interface SingleRackVersionB
StartStop
public java.lang.String debugLog()
OpenemsComponent
debugLog
in interface OpenemsComponent
protected ModbusProtocol defineModbusProtocol() throws OpenemsException
AbstractOpenemsModbusComponent
defineModbusProtocol
in class AbstractOpenemsModbusComponent
OpenemsException
- on error