001 /*----------------------------------------------------------------------------*/
002 /* Copyright (c) FIRST 2008-2012. 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
008 package edu.wpi.first.wpilibj;
009
010 /**
011 * Represents a Dashboard which can provide data to be sent by the DriverStation
012 * class.
013 * @author pmalmsten
014 */
015 public interface IDashboard {
016 /**
017 * Gets a reference to the current data to be sent to the dashboard.
018 * @return Byte array of data.
019 */
020 public byte[] getBytes();
021
022 /**
023 * Gets the length of the current data to be sent to the
024 * dashboard.
025 * @return The length of the data array to be sent to the dashboard.
026 */
027 public int getBytesLength();
028
029 /**
030 * If the dashboard had data buffered to be sent, calling this method
031 * will reset the output buffer.
032 */
033 public void flush();
034 }