Class TeslaPowerwall2CoreImpl
- java.lang.Object
-
- io.openems.edge.common.component.AbstractOpenemsComponent
-
- io.openems.edge.tesla.powerwall2.core.TeslaPowerwall2CoreImpl
-
- All Implemented Interfaces:
OpenemsComponent
,TeslaPowerwall2Core
,org.osgi.service.event.EventHandler
public class TeslaPowerwall2CoreImpl extends AbstractOpenemsComponent implements TeslaPowerwall2Core, OpenemsComponent, org.osgi.service.event.EventHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Nested classes/interfaces inherited from interface io.openems.edge.tesla.powerwall2.core.TeslaPowerwall2Core
TeslaPowerwall2Core.ChannelId
-
-
Constructor Summary
Constructors Constructor Description TeslaPowerwall2CoreImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deactivate()
Handles @Deactivate of implementations.java.util.Optional<TeslaPowerwall2Battery>
getBattery()
Gets theTeslaPowerwall2Battery
.void
handleEvent(org.osgi.service.event.Event event)
void
setBattery(TeslaPowerwall2Battery battery)
-
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, 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.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.tesla.powerwall2.core.TeslaPowerwall2Core
_setSlaveCommunicationFailed, getSlaveCommunicationFailed, getSlaveCommunicationFailedChannel
-
-
-
-
Method Detail
-
deactivate
protected void deactivate()
Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsComponent
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event)
- Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
-
setBattery
public void setBattery(TeslaPowerwall2Battery battery)
- Specified by:
setBattery
in interfaceTeslaPowerwall2Core
-
getBattery
public java.util.Optional<TeslaPowerwall2Battery> getBattery()
Description copied from interface:TeslaPowerwall2Core
Gets theTeslaPowerwall2Battery
.- Specified by:
getBattery
in interfaceTeslaPowerwall2Core
- Returns:
- the
TeslaPowerwall2Battery
-
-