001/*----------------------------------------------------------------------------*/
002/* Copyright (c) 2008-2018 FIRST. All Rights Reserved.                        */
003/* Open Source Software - may be modified and shared by FRC teams. The code   */
004/* must be accompanied by the FIRST BSD license file in the root directory of */
005/* the project.                                                               */
006/*----------------------------------------------------------------------------*/
007
008package edu.wpi.first.wpilibj;
009
010/**
011 * Structure for holding the values stored in an accumulator.
012 */
013public class AccumulatorResult {
014  /**
015   * The total value accumulated.
016   */
017  @SuppressWarnings("MemberName")
018  public long value;
019  /**
020   * The number of sample value was accumulated over.
021   */
022  @SuppressWarnings("MemberName")
023  public long count;
024
025  /**
026   * Set the value and count.
027   */
028  public void set(long value, long count) {
029    this.value = value;
030    this.count = count;
031  }
032}