|
RobotCore 1.0
WPILib port to raspberry Pi
|
Classes | |
| interface | TypeHandler |
Static Public Member Functions | |
| static void | setReportWarning (BiConsumer< String, String > func) |
| static BiConsumer< String, String > | getReportWarning () |
| static void | reportWarning (String path, String msg) |
| static< T > void | registerTypeHandler (Class< T > cls, TypeHandler< T > handler) |
| static void | registerBackend (String prefix, TelemetryBackend backend) |
| static< T > TypeHandler< T > | getTypeHandler (T value) |
| static TelemetryBackend | getBackend (String path) |
| static TelemetryTable | getTable (String path) |
| static void | reset () |
Global registry for telemetry handlers (type handlers and telemetry backends).
Definition at line 23 of file TelemetryRegistry.java.
|
static |
Gets the backend for logging an object. Should generally only be used internally or by custom backends.
| path | full name |
Definition at line 260 of file TelemetryRegistry.java.
|
static |
Get function used for reporting warning messages.
Definition at line 130 of file TelemetryRegistry.java.
|
static |
Get a telemetry table for a particular name.
| path | full name |
Definition at line 356 of file TelemetryRegistry.java.
|
static |
Gets the handler for logging an object. Should generally only be used by TelemetryTable.
| <T> | class |
| value | value |
Definition at line 240 of file TelemetryRegistry.java.
|
static |
Registers a backend for creating telemetry entries. When calling getEntry(), the longest prefix match is used.
| prefix | prefix for entries covered by this backend |
| backend | backend |
Definition at line 191 of file TelemetryRegistry.java.
|
static |
Registers a handler for logging objects of a particular type. The handler should populate the provided TelemetryTable name as appropriate for the object's data.
| <T> | class |
| cls | class object |
| handler | handler (accepts TelemetryTable, entry name, and object) |
Definition at line 156 of file TelemetryRegistry.java.
|
static |
Report a warning message (e.g. type mismatch).
| path | entry path |
| msg | warning message |
Definition at line 142 of file TelemetryRegistry.java.
|
static |
Clear all registered types and backends and closes all entries. Should typically only be used by unit test code.
Definition at line 364 of file TelemetryRegistry.java.
|
static |
Set function used for reporting warning messages (e.g. type mismatches).
The reporting function may be called concurrently and must not throw.
| func | reporting function; parameters are path and message; pass null to use default |
Definition at line 115 of file TelemetryRegistry.java.