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. */
008public class AccumulatorResult {
009  /** The total value accumulated. */
010  @SuppressWarnings("MemberName")
011  public long value;
012  /** The number of sample value was accumulated over. */
013  @SuppressWarnings("MemberName")
014  public long count;
015
016  /**
017   * Set the value and count.
018   *
019   * @param value The total value accumulated.
020   * @param count The number of samples accumulated.
021   */
022  public void set(long value, long count) {
023    this.value = value;
024    this.count = count;
025  }
026}