RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
TunableBackend.java
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5package org.wpilib.tunable;
6
7import java.util.List;
8
10public interface TunableBackend extends AutoCloseable {
18 record PublishedTunable(String path, TunableBase tunable, ComplexTunable complex) {
19 boolean isComplex() {
20 return complex != null;
21 }
22 }
23
34 boolean publish(String path, TunableBase tunable);
35
46 boolean publishComplex(String path, ComplexTunable tunable);
47
55 void remove(String path);
56
66 List<PublishedTunable> removePrefix(String prefix);
67
75 default void markDirty(TunableBase tunable) {}
76
84 void update();
85}
boolean publish(String path, TunableBase tunable)
record PublishedTunable(String path, TunableBase tunable, ComplexTunable complex)
boolean publishComplex(String path, ComplexTunable tunable)
List< PublishedTunable > removePrefix(String prefix)
default void markDirty(TunableBase tunable)