Interface ObdSignal.Builder

    • Method Detail

      • pidResponseLength

        ObdSignal.Builder pidResponseLength​(Integer pidResponseLength)

        The length of the requested data.

        Parameters:
        pidResponseLength - The length of the requested data.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceMode

        ObdSignal.Builder serviceMode​(Integer serviceMode)

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

        Parameters:
        serviceMode - The mode of operation (diagnostic service) in a message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pid

        ObdSignal.Builder pid​(Integer pid)

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

        Parameters:
        pid - The diagnostic code used to request data from a vehicle for this signal.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scaling

        ObdSignal.Builder scaling​(Double scaling)

        A multiplier used to decode the message.

        Parameters:
        scaling - A multiplier used to decode the message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • offset

        ObdSignal.Builder offset​(Double offset)

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

        Parameters:
        offset - The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startByte

        ObdSignal.Builder startByte​(Integer startByte)

        Indicates the beginning of the message.

        Parameters:
        startByte - Indicates the beginning of the message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • byteLength

        ObdSignal.Builder byteLength​(Integer byteLength)

        The length of a message.

        Parameters:
        byteLength - The length of a message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bitRightShift

        ObdSignal.Builder bitRightShift​(Integer bitRightShift)

        The number of positions to shift bits in the message.

        Parameters:
        bitRightShift - The number of positions to shift bits in the message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bitMaskLength

        ObdSignal.Builder bitMaskLength​(Integer bitMaskLength)

        The number of bits to mask in a message.

        Parameters:
        bitMaskLength - The number of bits to mask in a message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.