Package io.openems.edge.iooffgridswitch
Class IoOffGridSwitchImpl
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.iooffgridswitch.IoOffGridSwitchImpl
- All Implemented Interfaces:
OpenemsComponent
,OffGridSwitch
,IoOffGridSwitch
,org.osgi.service.event.EventHandler
public class IoOffGridSwitchImpl
extends AbstractOpenemsComponent
implements IoOffGridSwitch, OffGridSwitch, OpenemsComponent, org.osgi.service.event.EventHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.iooffgridswitch.IoOffGridSwitch
IoOffGridSwitch.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.ess.offgrid.api.OffGridSwitch
OffGridSwitch.ChannelId, OffGridSwitch.Contactor
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Handles @Deactivate of implementations.void
handleEvent
(org.osgi.service.event.Event event) void
setGroundingContactor
(OffGridSwitch.Contactor operation) Sets the Grounding-Contactor, which connects the inverter grounding in off-grid to neutral.void
setMainContactor
(OffGridSwitch.Contactor operation) Set the Main-Contactor, which connects the inverter to the public grid.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.ess.offgrid.api.OffGridSwitch
_setGridMode, _setGroundingContactor, _setMainContactor, getGridMode, getGridModeChannel, getGroundingContactor, getGroundingContactorChannel, getMainContactor, getMainContactorChannel
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
-
Constructor Details
-
IoOffGridSwitchImpl
public IoOffGridSwitchImpl()
-
-
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
-
setMainContactor
public void setMainContactor(OffGridSwitch.Contactor operation) throws IllegalArgumentException, OpenemsError.OpenemsNamedException Description copied from interface:OffGridSwitch
Set the Main-Contactor, which connects the inverter to the public grid.- OPEN: disconnect inverter from public grid
- CLOSE: connect inverter to public grid
- Specified by:
setMainContactor
in interfaceOffGridSwitch
- Parameters:
operation
-OffGridSwitch.Contactor
operation- Throws:
IllegalArgumentException
- on errorOpenemsError.OpenemsNamedException
- on error
-
setGroundingContactor
public void setGroundingContactor(OffGridSwitch.Contactor operation) throws IllegalArgumentException, OpenemsError.OpenemsNamedException Description copied from interface:OffGridSwitch
Sets the Grounding-Contactor, which connects the inverter grounding in off-grid to neutral.- OPEN: disconnects inverter grounding from neutral
- CLOSE: connects in inverter grounding to neutral
- Specified by:
setGroundingContactor
in interfaceOffGridSwitch
- Parameters:
operation
-OffGridSwitch.Contactor
operation- Throws:
IllegalArgumentException
- on errorOpenemsError.OpenemsNamedException
- on error
-