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