public class BalancingScheduleImpl extends AbstractOpenemsComponent implements BalancingSchedule, Controller, OpenemsComponent, JsonApi
BalancingSchedule.ChannelId
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.cm.ConfigurationAdmin |
cm |
protected ComponentManager |
componentManager |
Constructor and Description |
---|
BalancingScheduleImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
deactivate()
Handles @Deactivate of implementations.
|
java.util.concurrent.CompletableFuture<JsonrpcResponseSuccess> |
handleJsonrpcRequest(User user,
JsonrpcRequest request)
Handles a JSON-RPC Request.
|
void |
run()
Executes the Controller logic.
|
_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
_setGridActivePowerSetPoint, _setNoActiveSetpoint, _setScheduleParseFailed, getGridActivePowerSetPoint, getGridActivePowerSetPointChannel, getNoActiveSetpoint, getNoActiveSetpointChannel, getScheduleParseFailed, getScheduleParseFailedChannel, setGridActivePowerSetPoint
_setRunFailed, getModbusSlaveNatureTable, getRunFailed, getRunFailedChannel
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, logDebug, logError, logInfo, logWarn, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
protected org.osgi.service.cm.ConfigurationAdmin cm
protected ComponentManager componentManager
protected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsComponent
public void run() throws OpenemsError.OpenemsNamedException
Controller
run
in interface Controller
OpenemsError.OpenemsNamedException
- on errorpublic java.util.concurrent.CompletableFuture<JsonrpcResponseSuccess> handleJsonrpcRequest(User user, JsonrpcRequest request) throws OpenemsError.OpenemsNamedException
JsonApi
handleJsonrpcRequest
in interface JsonApi
user
- the authenticated Userrequest
- the JSON-RPC RequestOpenemsError.OpenemsNamedException
- on error