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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Handles @Deactivate of implementations.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
-
Constructor Details
-
TeslaPowerwall2CoreImpl
public TeslaPowerwall2CoreImpl()
-
-
Method Details
-
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
- Specified by:
setBattery
in interfaceTeslaPowerwall2Core
-
getBattery
Description copied from interface:TeslaPowerwall2Core
Gets theTeslaPowerwall2Battery
.- Specified by:
getBattery
in interfaceTeslaPowerwall2Core
- Returns:
- the
TeslaPowerwall2Battery
-