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 24A
precision - 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

public static record AnalogOutput.Range(int offset, int precision, int maximum) extends Record
Gets the information about the AnalogOutput range, to handle its output values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Range(int offset, int precision, int maximum)
    Creates an instance of a Range record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the maximum record component.
    int
    Returns the value of the offset record component.
    int
    Returns the value of the precision record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Range

      public Range(int offset, int precision, int maximum)
      Creates an instance of a Range record class.
      Parameters:
      offset - the value for the offset record component
      precision - the value for the precision record component
      maximum - the value for the maximum record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • offset

      public int offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component
    • precision

      public int precision()
      Returns the value of the precision record component.
      Returns:
      the value of the precision record component
    • maximum

      public int maximum()
      Returns the value of the maximum record component.
      Returns:
      the value of the maximum record component