public class DummyController extends AbstractOpenemsComponent implements Controller, OpenemsComponent
Controller
component that can be used
together with the OpenEMS Component test framework.Controller.ChannelId
Modifier | Constructor and Description |
---|---|
|
DummyController(java.lang.String id) |
protected |
DummyController(java.lang.String id,
ChannelId[] firstInitialChannelIds,
ChannelId[]... furtherInitialChannelIds) |
Modifier and Type | Method and Description |
---|---|
void |
run()
Executes the Controller logic.
|
DummyController |
withRunCallback(java.lang.Runnable callback)
Set callback for applyPower() of this
DummyController . |
_channel, activate, addChannel, addChannels, addChannels, alias, channels, deactivate, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_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 DummyController(java.lang.String id, ChannelId[] firstInitialChannelIds, ChannelId[]... furtherInitialChannelIds)
public DummyController(java.lang.String id)
public DummyController withRunCallback(java.lang.Runnable callback)
DummyController
.callback
- the callbackpublic void run()
Controller
run
in interface Controller