Package io.openems.edge.io.test
Class DummyAnalogVoltageOutput
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.common.test.AbstractDummyOpenemsComponent<DummyAnalogVoltageOutput>
io.openems.edge.io.test.DummyAnalogVoltageOutput
- All Implemented Interfaces:
OpenemsComponent
,AnalogOutput
,AnalogVoltageOutput
public class DummyAnalogVoltageOutput
extends AbstractDummyOpenemsComponent<DummyAnalogVoltageOutput>
implements AnalogOutput, AnalogVoltageOutput
Provides a simple, simulated
AnalogVoltageOutput
component that can
be used together with the OpenEMS Component test framework.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.io.api.AnalogOutput
AnalogOutput.ChannelId, AnalogOutput.Range
Nested classes/interfaces inherited from interface io.openems.edge.io.api.AnalogVoltageOutput
AnalogVoltageOutput.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Field Summary
Fields inherited from interface io.openems.edge.io.api.AnalogOutput
SET_OUTPUT_ACCURACY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrange()
Range that can be used, limited by the analog IO hardware.protected DummyAnalogVoltageOutput
self()
setRange
(AnalogOutput.Range range) 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.io.api.AnalogOutput
getDebugSetOutputPercent, getDebugSetOutputPercentChannel, getSetOutputPercentAsFactor, getSetOutputPercentChannel, setOutputPercent
Methods inherited from interface io.openems.edge.io.api.AnalogVoltageOutput
getDebugSetOutputVoltage, getDebugSetOutputVoltageChannel, getSetOutputVoltageChannel, setOutputChannel, setOutputVoltage
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
-
DummyAnalogVoltageOutput
-
-
Method Details
-
self
- Specified by:
self
in classAbstractDummyOpenemsComponent<DummyAnalogVoltageOutput>
-
setRange
-
range
Description copied from interface:AnalogOutput
Range that can be used, limited by the analog IO hardware.E.g. Hardware can be set from 0 to 10V with 0.1V steps.
- Specified by:
range
in interfaceAnalogOutput
- Returns:
- maximum range.
-