public class TeslaPowerwall2CoreImpl extends AbstractOpenemsComponent implements TeslaPowerwall2Core, OpenemsComponent, org.osgi.service.event.EventHandler
TeslaPowerwall2Core.CoreChannelId
OpenemsComponent.ChannelId
Constructor and Description |
---|
TeslaPowerwall2CoreImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
deactivate()
Handles @Deactivate of implementations.
|
java.util.Optional<TeslaPowerwall2Battery> |
getBattery() |
void |
handleEvent(org.osgi.service.event.Event event) |
void |
setBattery(TeslaPowerwall2Battery battery) |
_channel, activate, 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
_setSlaveCommunicationFailed, getSlaveCommunicationFailed, getSlaveCommunicationFailedChannel
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getModbusSlaveNatureTable, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
protected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsComponent
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
public void setBattery(TeslaPowerwall2Battery battery)
setBattery
in interface TeslaPowerwall2Core
public java.util.Optional<TeslaPowerwall2Battery> getBattery()
getBattery
in interface TeslaPowerwall2Core