Class ObdSignal

    • Method Detail

      • pidResponseLength

        public final Integer pidResponseLength()

        The length of the requested data.

        Returns:
        The length of the requested data.
      • serviceMode

        public final Integer serviceMode()

        The mode of operation (diagnostic service) in a message.

        Returns:
        The mode of operation (diagnostic service) in a message.
      • pid

        public final Integer pid()

        The diagnostic code used to request data from a vehicle for this signal.

        Returns:
        The diagnostic code used to request data from a vehicle for this signal.
      • scaling

        public final Double scaling()

        A multiplier used to decode the message.

        Returns:
        A multiplier used to decode the message.
      • offset

        public final Double offset()

        The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset.

        Returns:
        The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset.
      • startByte

        public final Integer startByte()

        Indicates the beginning of the message.

        Returns:
        Indicates the beginning of the message.
      • byteLength

        public final Integer byteLength()

        The length of a message.

        Returns:
        The length of a message.
      • bitRightShift

        public final Integer bitRightShift()

        The number of positions to shift bits in the message.

        Returns:
        The number of positions to shift bits in the message.
      • bitMaskLength

        public final Integer bitMaskLength()

        The number of bits to mask in a message.

        Returns:
        The number of bits to mask in a message.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)