Package io.openems.edge.common.cycle
Interface Cycle
- All Superinterfaces:
OpenemsComponent
- All Known Implementing Classes:
CycleImpl
,DummyCycle
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
_setIgnoreDisabledController
(boolean value) Internal method to set the 'nextValue' onCycle.ChannelId.IGNORE_DISABLED_CONTROLLER
Channel.default void
_setMeasuredCycleTime
(long value) Internal method to set the 'nextValue' onCycle.ChannelId.MEASURED_CYCLE_TIME
Channel.default void
_setMeasuredCycleTime
(Long value) Internal method to set the 'nextValue' onCycle.ChannelId.MEASURED_CYCLE_TIME
Channel.int
Gets the duration of one global OpenEMS Cycle in [ms].Gets the Ignore Disabled Controller Info State.default StateChannel
Gets the Channel forCycle.ChannelId.IGNORE_DISABLED_CONTROLLER
.Gets the Measured Cycle Time in [ms].default LongReadChannel
Gets the Channel forCycle.ChannelId.MEASURED_CYCLE_TIME
.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
-
Field Details
-
SINGLETON_SERVICE_PID
- See Also:
-
SINGLETON_COMPONENT_ID
- See Also:
-
DEFAULT_CYCLE_TIME
static final int DEFAULT_CYCLE_TIME- See Also:
-
-
Method Details
-
getMeasuredCycleTimeChannel
Gets the Channel forCycle.ChannelId.MEASURED_CYCLE_TIME
.- Returns:
- the Channel
-
getMeasuredCycleTime
Gets the Measured Cycle Time in [ms]. SeeCycle.ChannelId.MEASURED_CYCLE_TIME
.- Returns:
- the Channel
Value
-
_setMeasuredCycleTime
Internal method to set the 'nextValue' onCycle.ChannelId.MEASURED_CYCLE_TIME
Channel.- Parameters:
value
- the next value
-
_setMeasuredCycleTime
default void _setMeasuredCycleTime(long value) Internal method to set the 'nextValue' onCycle.ChannelId.MEASURED_CYCLE_TIME
Channel.- Parameters:
value
- the next value
-
getIgnoreDisabledControllerChannel
Gets the Channel forCycle.ChannelId.IGNORE_DISABLED_CONTROLLER
.- Returns:
- the Channel
-
getIgnoreDisabledController
Gets the Ignore Disabled Controller Info State. SeeCycle.ChannelId.IGNORE_DISABLED_CONTROLLER
.- Returns:
- the Channel
Value
-
_setIgnoreDisabledController
default void _setIgnoreDisabledController(boolean value) Internal method to set the 'nextValue' onCycle.ChannelId.IGNORE_DISABLED_CONTROLLER
Channel.- Parameters:
value
- the next value
-
getCycleTime
int getCycleTime()Gets the duration of one global OpenEMS Cycle in [ms].- Returns:
- the duration in milliseconds
-