001/*----------------------------------------------------------------------------*/ 002/* Copyright (c) 2016-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 010import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder; 011 012/** 013 * The interface for sendable objects that gives the sendable a default name in the Smart 014 * Dashboard. 015 * @deprecated Use Sendable directly instead 016 */ 017@Deprecated 018public interface NamedSendable extends Sendable { 019 020 /** 021 * The name of the subtable. 022 * 023 * @return the name of the subtable of SmartDashboard that the Sendable object will use. 024 */ 025 String getName(); 026 027 @Override 028 default void setName(String name) { 029 } 030 031 @Override 032 default String getSubsystem() { 033 return ""; 034 } 035 036 @Override 037 default void setSubsystem(String subsystem) { 038 } 039 040 @Override 041 default void initSendable(SendableBuilder builder) { 042 } 043}