Package io.openems.edge.io.api
Record Class AnalogOutput.Range
java.lang.Object
java.lang.Record
io.openems.edge.io.api.AnalogOutput.Range
- Record Components:
offset
- The offset of the range e.g. offset of 6000 if the target should be given from 6A to 24Aprecision
- Gets the smallest positive value that can be set. Unit is depending on the control Unit. Example:- Device allows setting of voltage in 0.1V steps. It should return 100.
- Device allows setting of ampere in 1A steps. It should return 1000.
maximum
- The maximum value that can be set e.g. 24000mA or 10000mV.
- Enclosing interface:
AnalogOutput
Gets the information about the AnalogOutput range, to handle its output
values.
-
Constructor Summary
ConstructorDescriptionRange
(int offset, int precision, int maximum) Creates an instance of aRange
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
maximum()
Returns the value of themaximum
record component.int
offset()
Returns the value of theoffset
record component.int
Returns the value of theprecision
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
offset
public int offset()Returns the value of theoffset
record component.- Returns:
- the value of the
offset
record component
-
precision
public int precision()Returns the value of theprecision
record component.- Returns:
- the value of the
precision
record component
-
maximum
public int maximum()Returns the value of themaximum
record component.- Returns:
- the value of the
maximum
record component
-