Package io.openems.edge.energy
Class EnergySchedulerImpl
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.energy.EnergySchedulerImpl
- All Implemented Interfaces:
OpenemsComponent
,ComponentJsonApi
,JsonApi
,EnergyScheduler
public class EnergySchedulerImpl
extends AbstractOpenemsComponent
implements OpenemsComponent, EnergyScheduler, ComponentJsonApi
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.energy.api.EnergyScheduler
EnergyScheduler.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Field Summary
Fields inherited from interface io.openems.edge.energy.api.EnergyScheduler
SINGLETON_COMPONENT_ID, SINGLETON_SERVICE_PID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildJsonApiRoutes
(JsonApiBuilder builder) Specifies routes of the current component in the given builder.protected void
Handles @Deactivate of implementations.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.jsonapi.ComponentJsonApi
id
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
-
EnergySchedulerImpl
public EnergySchedulerImpl()
-
-
Method Details
-
deactivate
protected void deactivate()Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsComponent
-
buildJsonApiRoutes
Description copied from interface:JsonApi
Specifies routes of the current component in the given builder.Example:
@Override
public void buildJsonApiRoutes(JsonApiBuilder builder) { builder.rpc("METHOD_NAME", call -> { // handle call... }); }- Specified by:
buildJsonApiRoutes
in interfaceJsonApi
- Parameters:
builder
- the builder to add the routes
-