001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.hal;
006
007/** Structure for holding the values stored in an accumulator. */
008@SuppressWarnings("MemberName")
009public class AccumulatorResult {
010  /** The total value accumulated. */
011  public long value;
012
013  /** The number of sample value was accumulated over. */
014  public long count;
015
016  /** Constructs an AccumulatorResult. */
017  public AccumulatorResult() {}
018
019  /**
020   * Set the value and count.
021   *
022   * @param value The total value accumulated.
023   * @param count The number of samples accumulated.
024   */
025  public void set(long value, long count) {
026    this.value = value;
027    this.count = count;
028  }
029}