Package io.openems.edge.common.test
Class DummyCycle
- java.lang.Object
-
- io.openems.edge.common.component.AbstractOpenemsComponent
-
- io.openems.edge.common.test.DummyCycle
-
- All Implemented Interfaces:
OpenemsComponent
,Cycle
public class DummyCycle extends AbstractOpenemsComponent implements 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
Constructors Constructor Description DummyCycle(int cycleTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCycleTime()
Gets the duration of one global OpenEMS Cycle in [ms].-
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
-
-
-
-
Method Detail
-
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
-
-