NetworkTable instead.@Deprecated public class NetworkTable extends java.lang.Object implements ITable, IRemote
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
Deprecated.
The default port that network tables operates on
|
static char |
PATH_SEPARATOR
Deprecated.
The path separator for sub-tables and keys
|
static int |
PERSISTENT
Deprecated.
The persistent flag value.
|
NOTIFY_DELETE, NOTIFY_FLAGS, NOTIFY_IMMEDIATE, NOTIFY_LOCAL, NOTIFY_NEW, NOTIFY_UPDATE| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(IRemoteConnectionListener listener,
boolean immediateNotify)
Deprecated.
|
static void |
addGlobalConnectionListener(IRemoteConnectionListener listener,
boolean immediateNotify)
Deprecated.
|
void |
addSubTableListener(ITableListener listener)
Deprecated.
|
void |
addSubTableListener(ITableListener listener,
boolean localNotify)
Deprecated.
|
void |
addTableListener(ITableListener listener)
Deprecated.
Use
NetworkTable.addEntryListener(TableEntryListener, int) instead
(with flags value of NOTIFY_NEW | NOTIFY_UPDATE). |
void |
addTableListener(ITableListener listener,
boolean immediateNotify)
Deprecated.
Use
NetworkTable.addEntryListener(TableEntryListener, int) instead
(with flags value of NOTIFY_NEW | NOTIFY_UPDATE | NOTIFY_IMMEDIATE). |
void |
addTableListener(java.lang.String key,
ITableListener listener,
boolean immediateNotify)
Deprecated.
|
void |
addTableListenerEx(ITableListener listener,
int flags)
Deprecated.
|
void |
addTableListenerEx(java.lang.String key,
ITableListener listener,
int flags)
Deprecated.
|
void |
clearFlags(java.lang.String key,
int flags)
Deprecated.
Clears flags on the specified key in this table.
|
void |
clearPersistent(java.lang.String key)
Deprecated.
Stop making a key's value persistent through program restarts.
|
static ConnectionInfo[] |
connections()
Deprecated.
Use
NetworkTableInstance.getConnections() instead. |
boolean |
containsKey(java.lang.String key)
Deprecated.
Checks the table and tells if it contains the specified key
|
boolean |
containsSubTable(java.lang.String key)
Deprecated.
|
void |
delete(java.lang.String key)
Deprecated.
Deletes the specified key in this table.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
static void |
flush()
Deprecated.
Use
NetworkTableInstance.flush() instead. |
static java.lang.Boolean[] |
fromNative(boolean[] arr)
Deprecated.
|
static java.lang.Double[] |
fromNative(double[] arr)
Deprecated.
|
boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
Deprecated.
Returns the boolean the key maps to.
|
boolean[] |
getBooleanArray(java.lang.String key,
boolean[] defaultValue)
Deprecated.
Returns the boolean array the key maps to.
|
java.lang.Boolean[] |
getBooleanArray(java.lang.String key,
java.lang.Boolean[] defaultValue)
Deprecated.
Returns the boolean array the key maps to.
|
double |
getDouble(java.lang.String key,
double defaultValue)
Deprecated.
Use
getNumber(String, double) instead. |
int |
getFlags(java.lang.String key)
Deprecated.
Returns the flags for the specified key.
|
java.util.Set<java.lang.String> |
getKeys()
Deprecated.
Gets all keys in the table (not including sub-tables).
|
java.util.Set<java.lang.String> |
getKeys(int types)
Deprecated.
Gets all keys in the table (not including sub-tables).
|
double |
getNumber(java.lang.String key,
double defaultValue)
Deprecated.
Returns the number the key maps to.
|
double[] |
getNumberArray(java.lang.String key,
double[] defaultValue)
Deprecated.
Returns the number array the key maps to.
|
java.lang.Double[] |
getNumberArray(java.lang.String key,
java.lang.Double[] defaultValue)
Deprecated.
Returns the number array the key maps to.
|
java.lang.String |
getPath()
Deprecated.
Gets the full path of this table.
|
byte[] |
getRaw(java.lang.String key,
byte[] defaultValue)
Deprecated.
Returns the raw value (byte array) the key maps to.
|
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Deprecated.
Returns the string the key maps to.
|
java.lang.String[] |
getStringArray(java.lang.String key,
java.lang.String[] defaultValue)
Deprecated.
Returns the string array the key maps to.
|
ITable |
getSubTable(java.lang.String key)
Deprecated.
Returns the table at the specified key.
|
java.util.Set<java.lang.String> |
getSubTables()
Deprecated.
Gets the names of all subtables in the table.
|
static NetworkTable |
getTable(java.lang.String key)
Deprecated.
Use
NetworkTableInstance.getTable(String) instead. |
NetworkTableValue |
getValue(java.lang.String key)
Deprecated.
Gets the value associated with a key as a NetworkTableValue object.
|
java.lang.Object |
getValue(java.lang.String key,
java.lang.Object defaultValue)
Deprecated.
Use
NetworkTableEntry.getValue()
instead, e.g. `NetworkTable.getEntry(key).getValue();` |
static void |
globalDeleteAll()
Deprecated.
Use
NetworkTableInstance.deleteAllEntries() instead. |
int |
hashCode()
Deprecated.
|
static void |
initialize()
Deprecated.
Use
NetworkTableInstance.startServer() or
NetworkTableInstance.startClient() instead. |
boolean |
isConnected()
Deprecated.
Use
NetworkTableInstance.isConnected() instead. |
boolean |
isPersistent(java.lang.String key)
Deprecated.
Returns whether the value is persistent through program restarts.
|
boolean |
isServer()
Deprecated.
Use
NetworkTableInstance.getNetworkMode() instead. |
static java.lang.String[] |
loadPersistent(java.lang.String filename)
Deprecated.
Use
NetworkTableInstance.loadPersistent(String)
instead. |
boolean |
putBoolean(java.lang.String key,
boolean value)
Deprecated.
Put a boolean in the table
|
boolean |
putBooleanArray(java.lang.String key,
boolean[] value)
Deprecated.
Put a boolean array in the table
|
boolean |
putBooleanArray(java.lang.String key,
java.lang.Boolean[] value)
Deprecated.
Put a boolean array in the table
|
boolean |
putDouble(java.lang.String key,
double value)
Deprecated.
Use
putNumber(String, double) instead. |
boolean |
putNumber(java.lang.String key,
double value)
Deprecated.
Put a number in the table
|
boolean |
putNumberArray(java.lang.String key,
double[] value)
Deprecated.
Put a number array in the table
|
boolean |
putNumberArray(java.lang.String key,
java.lang.Double[] value)
Deprecated.
Put a number array in the table
|
boolean |
putRaw(java.lang.String key,
byte[] value)
Deprecated.
Put a raw value (byte array) in the table
|
boolean |
putRaw(java.lang.String key,
java.nio.ByteBuffer value,
int len)
Deprecated.
Put a raw value (bytes from a byte buffer) in the table
|
boolean |
putString(java.lang.String key,
java.lang.String value)
Deprecated.
Put a string in the table
|
boolean |
putStringArray(java.lang.String key,
java.lang.String[] value)
Deprecated.
Put a string array in the table
|
boolean |
putValue(java.lang.String key,
NetworkTableValue value)
Deprecated.
Put a value in the table
|
boolean |
putValue(java.lang.String key,
java.lang.Object value)
Deprecated.
Use
NetworkTableEntry.setValue(Object)
instead, e.g. `NetworkTable.getEntry(key).setValue(NetworkTableEntry.makeBoolean(false));`
or `NetworkTable.getEntry(key).setValue(new Boolean(false));` |
void |
removeConnectionListener(IRemoteConnectionListener listener)
Deprecated.
Use
NetworkTableInstance.removeConnectionListener(int) instead. |
static void |
removeGlobalConnectionListener(IRemoteConnectionListener listener)
Deprecated.
Use
NetworkTableInstance.removeConnectionListener(int) instead. |
void |
removeTableListener(ITableListener listener)
Deprecated.
Use
NetworkTable.removeTableListener(int) instead. |
static void |
savePersistent(java.lang.String filename)
Deprecated.
Use
NetworkTableInstance.savePersistent(String)
instead. |
static void |
setClientMode()
Deprecated.
Use
NetworkTableInstance.startClient() instead. |
boolean |
setDefaultBoolean(java.lang.String key,
boolean defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultBooleanArray(java.lang.String key,
boolean[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultBooleanArray(java.lang.String key,
java.lang.Boolean[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultNumber(java.lang.String key,
double defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultNumberArray(java.lang.String key,
double[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultNumberArray(java.lang.String key,
java.lang.Double[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultRaw(java.lang.String key,
byte[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultString(java.lang.String key,
java.lang.String defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultStringArray(java.lang.String key,
java.lang.String[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultValue(java.lang.String key,
NetworkTableValue defaultValue)
Deprecated.
Sets the current value in the table if it does not exist.
|
static void |
setDSClientEnabled(boolean enabled)
Deprecated.
Use
NetworkTableInstance.startDSClient() and
NetworkTableInstance.stopDSClient() instead. |
void |
setFlags(java.lang.String key,
int flags)
Deprecated.
Sets flags on the specified key in this table.
|
static void |
setIPAddress(java.lang.String address)
Deprecated.
|
static void |
setIPAddress(java.lang.String[] addresses)
Deprecated.
|
static void |
setNetworkIdentity(java.lang.String name)
Deprecated.
Use
NetworkTableInstance.setNetworkIdentity(String)
instead. |
void |
setPersistent(java.lang.String key)
Deprecated.
Makes a key's value persistent through program restarts.
|
static void |
setPersistentFilename(java.lang.String filename)
Deprecated.
Use the appropriate parameter to
NetworkTableInstance.startServer() instead. |
static void |
setPort(int aport)
Deprecated.
Use the appropriate parameters to
NetworkTableInstance.setServer(String, int),
NetworkTableInstance.startClient(String, int),
NetworkTableInstance.startServer(String, String, int), and
NetworkTableInstance.startDSClient(int) instead. |
static void |
setServerMode()
Deprecated.
Use
NetworkTableInstance.startServer() instead. |
static void |
setTeam(int team)
Deprecated.
|
static void |
setUpdateRate(double interval)
Deprecated.
Use
NetworkTableInstance.setUpdateRate(double)
instead. |
static void |
shutdown()
Deprecated.
Use
NetworkTableInstance.stopServer() or
NetworkTableInstance.stopClient() instead. |
static boolean[] |
toNative(java.lang.Boolean[] arr)
Deprecated.
|
static double[] |
toNative(java.lang.Number[] arr)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
public static final char PATH_SEPARATOR
public static final int DEFAULT_PORT
public static final int PERSISTENT
@Deprecated public static void initialize()
NetworkTableInstance.startServer() or
NetworkTableInstance.startClient() instead.@Deprecated public static void shutdown()
NetworkTableInstance.stopServer() or
NetworkTableInstance.stopClient() instead.@Deprecated public static void setServerMode()
NetworkTableInstance.startServer() instead.@Deprecated public static void setClientMode()
NetworkTableInstance.startClient() instead.@Deprecated public static void setTeam(int team)
NetworkTableInstance.setServerTeam(int) or
NetworkTableInstance.startClientTeam(int) instead.team - the team number@Deprecated public static void setIPAddress(java.lang.String address)
NetworkTableInstance.setServer(String) or
NetworkTableInstance.startClient(String) instead.address - the address that network tables will connect to in client
mode@Deprecated public static void setIPAddress(java.lang.String[] addresses)
NetworkTableInstance.setServer(String[]) or
NetworkTableInstance.startClient(String[]) instead.addresses - the adresses that network tables will connect to in
client mode (in round robin order)@Deprecated public static void setPort(int aport)
NetworkTableInstance.setServer(String, int),
NetworkTableInstance.startClient(String, int),
NetworkTableInstance.startServer(String, String, int), and
NetworkTableInstance.startDSClient(int) instead.aport - the port number@Deprecated public static void setDSClientEnabled(boolean enabled)
NetworkTableInstance.startDSClient() and
NetworkTableInstance.stopDSClient() instead.enabled - whether to enable the connection to the local DS@Deprecated public static void setPersistentFilename(java.lang.String filename)
NetworkTableInstance.startServer() instead.filename - the filename that the network tables server uses for
automatic loading and saving of persistent values@Deprecated public static void setNetworkIdentity(java.lang.String name)
NetworkTableInstance.setNetworkIdentity(String)
instead.name - identitypublic static boolean[] toNative(java.lang.Boolean[] arr)
public static double[] toNative(java.lang.Number[] arr)
public static java.lang.Boolean[] fromNative(boolean[] arr)
public static java.lang.Double[] fromNative(double[] arr)
@Deprecated public static NetworkTable getTable(java.lang.String key)
NetworkTableInstance.getTable(String) instead.key - the key namepublic java.lang.String toString()
toString in class java.lang.Object@Deprecated public static ConnectionInfo[] connections()
NetworkTableInstance.getConnections() instead.@Deprecated public boolean isConnected()
NetworkTableInstance.isConnected() instead.isConnected in interface IRemote@Deprecated public boolean isServer()
NetworkTableInstance.getNetworkMode() instead.@Deprecated public static void addGlobalConnectionListener(IRemoteConnectionListener listener, boolean immediateNotify)
NetworkTableInstance.addConnectionListener(Consumer, boolean) instead.listener - connection listenerimmediateNotify - call listener immediately for all existing connections@Deprecated public static void removeGlobalConnectionListener(IRemoteConnectionListener listener)
NetworkTableInstance.removeConnectionListener(int) instead.listener - connection listener@Deprecated public void addConnectionListener(IRemoteConnectionListener listener, boolean immediateNotify)
NetworkTableInstance.addConnectionListener(Consumer, boolean) instead.addConnectionListener in interface IRemotelistener - connection listenerimmediateNotify - call listener immediately for all existing connections@Deprecated public void removeConnectionListener(IRemoteConnectionListener listener)
NetworkTableInstance.removeConnectionListener(int) instead.removeConnectionListener in interface IRemotelistener - connection listener@Deprecated public void addTableListener(ITableListener listener)
NetworkTable.addEntryListener(TableEntryListener, int) instead
(with flags value of NOTIFY_NEW | NOTIFY_UPDATE).addTableListener in interface ITablelistener - the listener to add@Deprecated public void addTableListener(ITableListener listener, boolean immediateNotify)
NetworkTable.addEntryListener(TableEntryListener, int) instead
(with flags value of NOTIFY_NEW | NOTIFY_UPDATE | NOTIFY_IMMEDIATE).addTableListener in interface ITablelistener - the listener to addimmediateNotify - if true then this listener will be notified of all
current entries (marked as new)@Deprecated public void addTableListenerEx(ITableListener listener, int flags)
NetworkTable.addEntryListener(TableEntryListener, int) instead.addTableListenerEx in interface ITablelistener - the listener to addflags - bitmask specifying desired notifications@Deprecated public void addTableListener(java.lang.String key, ITableListener listener, boolean immediateNotify)
NetworkTable.addEntryListener(String, TableEntryListener, int)
or NetworkTableEntry.addListener(Consumer, int) instead.addTableListener in interface ITablekey - the key to listen forlistener - the listener to addimmediateNotify - if true then this listener will be notified of all
current entries (marked as new)@Deprecated public void addTableListenerEx(java.lang.String key, ITableListener listener, int flags)
NetworkTable.addEntryListener(String, TableEntryListener, int)
or NetworkTableEntry.addListener(Consumer, int) instead.addTableListenerEx in interface ITablekey - the key to listen forlistener - the listener to addflags - bitmask specifying desired notifications@Deprecated public void addSubTableListener(ITableListener listener)
NetworkTable.addSubTableListener(TableListener, boolean)
instead.addSubTableListener in interface ITablelistener - the listener to notify@Deprecated public void addSubTableListener(ITableListener listener, boolean localNotify)
NetworkTable.addSubTableListener(TableListener, boolean)
instead.addSubTableListener in interface ITablelistener - the listener to notifylocalNotify - if true then this listener will be notified of all
local changes in addition to all remote changes@Deprecated public void removeTableListener(ITableListener listener)
NetworkTable.removeTableListener(int) instead.removeTableListener in interface ITablelistener - the listener to be removedpublic ITable getSubTable(java.lang.String key)
getSubTable in interface ITablekey - the name of the table relative to this onepublic boolean containsKey(java.lang.String key)
containsKey in interface ITablekey - the key to search forpublic boolean containsSubTable(java.lang.String key)
containsSubTable in interface ITablekey - the key to search forpublic java.util.Set<java.lang.String> getKeys(int types)
ITablepublic java.util.Set<java.lang.String> getKeys()
public java.util.Set<java.lang.String> getSubTables()
getSubTables in interface ITablepublic boolean putNumber(java.lang.String key, double value)
public boolean setDefaultNumber(java.lang.String key, double defaultValue)
setDefaultNumber in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public double getNumber(java.lang.String key, double defaultValue)
public boolean putString(java.lang.String key, java.lang.String value)
public boolean setDefaultString(java.lang.String key, java.lang.String defaultValue)
setDefaultString in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
public boolean putBoolean(java.lang.String key, boolean value)
putBoolean in interface ITablekey - the key to be assigned tovalue - the value that will be assignedpublic boolean setDefaultBoolean(java.lang.String key, boolean defaultValue)
setDefaultBoolean in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public boolean getBoolean(java.lang.String key, boolean defaultValue)
getBoolean in interface ITablekey - the key to look updefaultValue - the value to be returned if no value is foundpublic boolean putBooleanArray(java.lang.String key, boolean[] value)
putBooleanArray in interface ITablekey - the key to be assigned tovalue - the value that will be assignedpublic boolean putBooleanArray(java.lang.String key, java.lang.Boolean[] value)
putBooleanArray in interface ITablekey - the key to be assigned tovalue - the value that will be assignedpublic boolean setDefaultBooleanArray(java.lang.String key, boolean[] defaultValue)
setDefaultBooleanArray in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public boolean setDefaultBooleanArray(java.lang.String key, java.lang.Boolean[] defaultValue)
setDefaultBooleanArray in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public boolean[] getBooleanArray(java.lang.String key, boolean[] defaultValue)
getBooleanArray in interface ITablekey - the key to look updefaultValue - the value to be returned if no value is foundpublic java.lang.Boolean[] getBooleanArray(java.lang.String key, java.lang.Boolean[] defaultValue)
getBooleanArray in interface ITablekey - the key to look updefaultValue - the value to be returned if no value is foundpublic boolean putNumberArray(java.lang.String key, double[] value)
putNumberArray in interface ITablekey - the key to be assigned tovalue - the value that will be assignedpublic boolean putNumberArray(java.lang.String key, java.lang.Double[] value)
putNumberArray in interface ITablekey - the key to be assigned tovalue - the value that will be assignedpublic boolean setDefaultNumberArray(java.lang.String key, double[] defaultValue)
setDefaultNumberArray in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public boolean setDefaultNumberArray(java.lang.String key, java.lang.Double[] defaultValue)
setDefaultNumberArray in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public double[] getNumberArray(java.lang.String key, double[] defaultValue)
getNumberArray in interface ITablekey - the key to look updefaultValue - the value to be returned if no value is foundpublic java.lang.Double[] getNumberArray(java.lang.String key, java.lang.Double[] defaultValue)
getNumberArray in interface ITablekey - the key to look updefaultValue - the value to be returned if no value is foundpublic boolean putStringArray(java.lang.String key, java.lang.String[] value)
putStringArray in interface ITablekey - the key to be assigned tovalue - the value that will be assignedpublic boolean setDefaultStringArray(java.lang.String key, java.lang.String[] defaultValue)
setDefaultStringArray in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public java.lang.String[] getStringArray(java.lang.String key, java.lang.String[] defaultValue)
getStringArray in interface ITablekey - the key to look updefaultValue - the value to be returned if no value is foundpublic boolean putRaw(java.lang.String key, byte[] value)
public boolean setDefaultRaw(java.lang.String key, byte[] defaultValue)
setDefaultRaw in interface ITablekey - the keydefaultValue - the default value to set if key doens't exist.public boolean putRaw(java.lang.String key, java.nio.ByteBuffer value, int len)
public byte[] getRaw(java.lang.String key, byte[] defaultValue)
public boolean putValue(java.lang.String key, NetworkTableValue value)
key - the key to be assigned tovalue - the value that will be assignedpublic boolean setDefaultValue(java.lang.String key, NetworkTableValue defaultValue)
key - the keydefaultValue - the default value to set if key doens't exist.public NetworkTableValue getValue(java.lang.String key)
key - the key of the value to look up@Deprecated public boolean putValue(java.lang.String key, java.lang.Object value) throws java.lang.IllegalArgumentException
NetworkTableEntry.setValue(Object)
instead, e.g. `NetworkTable.getEntry(key).setValue(NetworkTableEntry.makeBoolean(false));`
or `NetworkTable.getEntry(key).setValue(new Boolean(false));`@Deprecated public java.lang.Object getValue(java.lang.String key, java.lang.Object defaultValue)
NetworkTableEntry.getValue()
instead, e.g. `NetworkTable.getEntry(key).getValue();`ITable.getDouble(String, double).public void setPersistent(java.lang.String key)
setPersistent in interface ITablekey - the key namepublic void clearPersistent(java.lang.String key)
clearPersistent in interface ITablekey - the key namepublic boolean isPersistent(java.lang.String key)
isPersistent in interface ITablekey - the key namepublic void setFlags(java.lang.String key, int flags)
public void clearFlags(java.lang.String key, int flags)
clearFlags in interface ITablekey - the key nameflags - the flags to clear (bitmask)public int getFlags(java.lang.String key)
public void delete(java.lang.String key)
@Deprecated public static void globalDeleteAll()
NetworkTableInstance.deleteAllEntries() instead.@Deprecated public static void flush()
NetworkTableInstance.flush() instead.@Deprecated public static void setUpdateRate(double interval)
NetworkTableInstance.setUpdateRate(double)
instead.interval - update interval in seconds (range 0.01 to 1.0)@Deprecated public static void savePersistent(java.lang.String filename) throws PersistentException
NetworkTableInstance.savePersistent(String)
instead.filename - file namePersistentException - if error saving file@Deprecated public static java.lang.String[] loadPersistent(java.lang.String filename) throws PersistentException
NetworkTableInstance.loadPersistent(String)
instead.filename - file namePersistentException - if error reading file@Deprecated public boolean putDouble(java.lang.String key, double value)
putNumber(String, double) instead.@Deprecated public double getDouble(java.lang.String key, double defaultValue)
getNumber(String, double) instead.public java.lang.String getPath()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object