Class AccumulatorResult

java.lang.Object
edu.wpi.first.hal.AccumulatorResult

public class AccumulatorResult
extends Object
Structure for holding the values stored in an accumulator.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    long count
    The number of sample value was accumulated over.
    long value
    The total value accumulated.
  • Constructor Summary

    Constructors 
    Constructor Description
    AccumulatorResult()
    Constructs an AccumulatorResult.
  • Method Summary

    Modifier and Type Method Description
    void set​(long value, long count)
    Set the value and count.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      public long value
      The total value accumulated.
    • count

      public long count
      The number of sample value was accumulated over.
  • Constructor Details

  • Method Details

    • set

      public void set​(long value, long count)
      Set the value and count.
      Parameters:
      value - The total value accumulated.
      count - The number of samples accumulated.