Package io.openems.edge.common.test
Class DummyCycle
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.common.test.AbstractDummyOpenemsComponent<DummyCycle>
io.openems.edge.common.test.DummyCycle
- All Implemented Interfaces:
OpenemsComponent
,Cycle
Simulates a
Cycle
for the OpenEMS Component test framework.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.common.cycle.Cycle
Cycle.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Field Summary
Fields inherited from interface io.openems.edge.common.cycle.Cycle
DEFAULT_CYCLE_TIME, SINGLETON_COMPONENT_ID, SINGLETON_SERVICE_PID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the duration of one global OpenEMS Cycle in [ms].protected DummyCycle
self()
Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, deactivate, 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.cycle.Cycle
_setIgnoreDisabledController, _setMeasuredCycleTime, _setMeasuredCycleTime, getIgnoreDisabledController, getIgnoreDisabledControllerChannel, getMeasuredCycleTime, getMeasuredCycleTimeChannel
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
-
DummyCycle
public DummyCycle(int cycleTime)
-
-
Method Details
-
self
- Specified by:
self
in classAbstractDummyOpenemsComponent<DummyCycle>
-
getCycleTime
public int getCycleTime()Description copied from interface:Cycle
Gets the duration of one global OpenEMS Cycle in [ms].- Specified by:
getCycleTime
in interfaceCycle
- Returns:
- the duration in milliseconds
-