Package edu.wpi.first.networktables
Class NetworkTablesJNI
java.lang.Object
edu.wpi.first.networktables.NetworkTablesJNI
public final class NetworkTablesJNI extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkTablesJNI.Helper
-
Constructor Summary
Constructors Constructor Description NetworkTablesJNI()
-
Method Summary
Modifier and Type Method Description static int
addListener(int poller, int handle, int mask)
static int
addListener(int poller, int handle, EnumSet<NetworkTableEvent.Kind> kinds)
static int
addListener(int poller, String[] prefixes, int mask)
static int
addListener(int poller, String[] prefixes, EnumSet<NetworkTableEvent.Kind> kinds)
static int
addLogger(int poller, int minLevel, int maxLevel)
static int
createInstance()
static int
createListenerPoller(int inst)
static void
deleteTopicProperty(int topic, String name)
static void
destroyInstance(int inst)
static void
destroyListenerPoller(int poller)
static void
disconnect(int inst)
static void
flush(int inst)
static void
flushLocal(int inst)
static void
forceLoad()
Force load the library.static TimestampedBoolean
getAtomicBoolean(int subentry, boolean defaultValue)
static TimestampedBooleanArray
getAtomicBooleanArray(int subentry, boolean[] defaultValue)
static TimestampedDouble
getAtomicDouble(int subentry, double defaultValue)
static TimestampedDoubleArray
getAtomicDoubleArray(int subentry, double[] defaultValue)
static TimestampedFloat
getAtomicFloat(int subentry, float defaultValue)
static TimestampedFloatArray
getAtomicFloatArray(int subentry, float[] defaultValue)
static TimestampedInteger
getAtomicInteger(int subentry, long defaultValue)
static TimestampedIntegerArray
getAtomicIntegerArray(int subentry, long[] defaultValue)
static TimestampedRaw
getAtomicRaw(int subentry, byte[] defaultValue)
static TimestampedString
getAtomicString(int subentry, String defaultValue)
static TimestampedStringArray
getAtomicStringArray(int subentry, String[] defaultValue)
static boolean
getBoolean(int entry, boolean defaultValue)
static boolean[]
getBooleanArray(int entry, boolean[] defaultValue)
static ConnectionInfo[]
getConnections(int inst)
static int
getDefaultInstance()
static double
getDouble(int entry, double defaultValue)
static double[]
getDoubleArray(int entry, double[] defaultValue)
static int
getEntry(int topic, int type, String typeStr, PubSubOption... options)
static int
getEntry(int topic, int type, String typeStr, PubSubOptions options)
static int
getEntry(int inst, String key)
static int
getEntryFlags(int entry)
static long
getEntryLastChange(int entry)
static String
getEntryName(int entry)
static float
getFloat(int entry, float defaultValue)
static float[]
getFloatArray(int entry, float[] defaultValue)
static int
getInstanceFromHandle(int handle)
static long
getInteger(int entry, long defaultValue)
static long[]
getIntegerArray(int entry, long[] defaultValue)
static int
getNetworkMode(int inst)
static byte[]
getRaw(int entry, byte[] defaultValue)
static OptionalLong
getServerTimeOffset(int inst)
static String
getString(int entry, String defaultValue)
static String[]
getStringArray(int entry, String[] defaultValue)
static int
getTopic(int inst, String name)
static boolean
getTopicExists(int topic)
static int
getTopicFromHandle(int pubsubentry)
static TopicInfo
getTopicInfo(NetworkTableInstance inst, int topic)
static TopicInfo[]
getTopicInfos(NetworkTableInstance instObject, int inst, String prefix, int types)
static TopicInfo[]
getTopicInfosStr(NetworkTableInstance instObject, int inst, String prefix, String[] types)
static String
getTopicName(int topic)
static boolean
getTopicPersistent(int topic)
static String
getTopicProperties(int topic)
static String
getTopicProperty(int topic, String name)
static boolean
getTopicRetained(int topic)
static int[]
getTopics(int inst, String prefix, int types)
static int[]
getTopicsStr(int inst, String prefix, String[] types)
static int
getTopicType(int topic)
static String
getTopicTypeString(int topic)
static int
getType(int entry)
static NetworkTableValue
getValue(int entry)
static boolean
isConnected(int inst)
static long
now()
static int
publish(int topic, int type, String typeStr, PubSubOption... options)
static int
publish(int topic, int type, String typeStr, PubSubOptions options)
static int
publishEx(int topic, int type, String typeStr, String properties, PubSubOption... options)
static int
publishEx(int topic, int type, String typeStr, String properties, PubSubOptions options)
static NetworkTableEvent[]
readListenerQueue(NetworkTableInstance inst, int poller)
static TimestampedBoolean[]
readQueueBoolean(int subentry)
static TimestampedBooleanArray[]
readQueueBooleanArray(int subentry)
static TimestampedDouble[]
readQueueDouble(int subentry)
static TimestampedDoubleArray[]
readQueueDoubleArray(int subentry)
static TimestampedFloat[]
readQueueFloat(int subentry)
static TimestampedFloatArray[]
readQueueFloatArray(int subentry)
static TimestampedInteger[]
readQueueInteger(int subentry)
static TimestampedIntegerArray[]
readQueueIntegerArray(int subentry)
static TimestampedRaw[]
readQueueRaw(int subentry)
static TimestampedString[]
readQueueString(int subentry)
static TimestampedStringArray[]
readQueueStringArray(int subentry)
static NetworkTableValue[]
readQueueValue(int subentry)
static boolean[]
readQueueValuesBoolean(int subentry)
static boolean[][]
readQueueValuesBooleanArray(int subentry)
static double[]
readQueueValuesDouble(int subentry)
static double[][]
readQueueValuesDoubleArray(int subentry)
static float[]
readQueueValuesFloat(int subentry)
static float[][]
readQueueValuesFloatArray(int subentry)
static long[]
readQueueValuesInteger(int subentry)
static long[][]
readQueueValuesIntegerArray(int subentry)
static byte[][]
readQueueValuesRaw(int subentry)
static String[]
readQueueValuesString(int subentry)
static String[][]
readQueueValuesStringArray(int subentry)
static void
release(int pubsubentry)
static void
releaseEntry(int entry)
static void
removeListener(int listener)
static boolean
setBoolean(int entry, long time, boolean value)
static boolean
setBooleanArray(int entry, long time, boolean[] value)
static boolean
setDefaultBoolean(int entry, long time, boolean defaultValue)
static boolean
setDefaultBooleanArray(int entry, long time, boolean[] defaultValue)
static boolean
setDefaultDouble(int entry, long time, double defaultValue)
static boolean
setDefaultDoubleArray(int entry, long time, double[] defaultValue)
static boolean
setDefaultFloat(int entry, long time, float defaultValue)
static boolean
setDefaultFloatArray(int entry, long time, float[] defaultValue)
static boolean
setDefaultInteger(int entry, long time, long defaultValue)
static boolean
setDefaultIntegerArray(int entry, long time, long[] defaultValue)
static boolean
setDefaultRaw(int entry, long time, byte[] defaultValue)
static boolean
setDefaultString(int entry, long time, String defaultValue)
static boolean
setDefaultStringArray(int entry, long time, String[] defaultValue)
static boolean
setDouble(int entry, long time, double value)
static boolean
setDoubleArray(int entry, long time, double[] value)
static void
setEntryFlags(int entry, int flags)
static boolean
setFloat(int entry, long time, float value)
static boolean
setFloatArray(int entry, long time, float[] value)
static boolean
setInteger(int entry, long time, long value)
static boolean
setIntegerArray(int entry, long time, long[] value)
static boolean
setRaw(int entry, long time, byte[] value)
static void
setServer(int inst, String[] serverNames, int[] ports)
static void
setServer(int inst, String serverName, int port)
static void
setServerTeam(int inst, int team, int port)
static boolean
setString(int entry, long time, String value)
static boolean
setStringArray(int entry, long time, String[] value)
static void
setTopicPersistent(int topic, boolean value)
static void
setTopicProperties(int topic, String properties)
static void
setTopicProperty(int topic, String name, String value)
static void
setTopicRetained(int topic, boolean value)
static void
startClient3(int inst, String identity)
static void
startClient4(int inst, String identity)
static int
startConnectionDataLog(int inst, DataLog log, String name)
static void
startDSClient(int inst, int port)
static int
startEntryDataLog(int inst, DataLog log, String prefix, String logPrefix)
static void
startLocal(int inst)
static void
startServer(int inst, String persistFilename, String listenAddress, int port3, int port4)
static void
stopClient(int inst)
static void
stopConnectionDataLog(int logger)
static void
stopDSClient(int inst)
static void
stopEntryDataLog(int logger)
static void
stopLocal(int inst)
static void
stopServer(int inst)
static int
subscribe(int topic, int type, String typeStr, PubSubOption... options)
static int
subscribe(int topic, int type, String typeStr, PubSubOptions options)
static int
subscribeMultiple(int inst, String[] prefixes, PubSubOption... options)
static int
subscribeMultiple(int inst, String[] prefixes, PubSubOptions options)
static void
unpublish(int pubentry)
static void
unsubscribe(int sub)
static void
unsubscribeMultiple(int sub)
-
Constructor Details
-
NetworkTablesJNI
public NetworkTablesJNI()
-
-
Method Details
-
forceLoad
Force load the library.- Throws:
IOException
- if the library fails to load
-
getDefaultInstance
-
createInstance
-
destroyInstance
-
getInstanceFromHandle
-
getEntry
-
getEntry
-
getEntry
-
getEntryName
-
getEntryLastChange
-
getType
-
getTopics
-
getTopicsStr
-
getTopicInfos
public static TopicInfo[] getTopicInfos(NetworkTableInstance instObject, int inst, String prefix, int types) -
getTopicInfosStr
public static TopicInfo[] getTopicInfosStr(NetworkTableInstance instObject, int inst, String prefix, String[] types) -
getTopic
-
getTopicName
-
getTopicType
-
setTopicPersistent
-
getTopicPersistent
-
setTopicRetained
-
getTopicRetained
-
getTopicTypeString
-
getTopicExists
-
getTopicProperty
-
setTopicProperty
-
deleteTopicProperty
-
getTopicProperties
-
setTopicProperties
-
subscribe
-
subscribe
-
unsubscribe
-
publish
-
publish
-
publishEx
public static int publishEx(int topic, int type, String typeStr, String properties, PubSubOptions options) -
publishEx
public static int publishEx(int topic, int type, String typeStr, String properties, PubSubOption... options) -
unpublish
-
releaseEntry
-
release
-
getTopicFromHandle
-
subscribeMultiple
-
subscribeMultiple
-
unsubscribeMultiple
-
getAtomicBoolean
-
readQueueBoolean
-
readQueueValuesBoolean
-
setBoolean
-
getBoolean
-
setDefaultBoolean
-
getAtomicInteger
-
readQueueInteger
-
readQueueValuesInteger
-
setInteger
-
getInteger
-
setDefaultInteger
-
getAtomicFloat
-
readQueueFloat
-
readQueueValuesFloat
-
setFloat
-
getFloat
-
setDefaultFloat
-
getAtomicDouble
-
readQueueDouble
-
readQueueValuesDouble
-
setDouble
-
getDouble
-
setDefaultDouble
-
getAtomicString
-
readQueueString
-
readQueueValuesString
-
setString
-
getString
-
setDefaultString
-
getAtomicRaw
-
readQueueRaw
-
readQueueValuesRaw
-
setRaw
-
getRaw
-
setDefaultRaw
-
getAtomicBooleanArray
-
readQueueBooleanArray
-
readQueueValuesBooleanArray
-
setBooleanArray
-
getBooleanArray
-
setDefaultBooleanArray
-
getAtomicIntegerArray
-
readQueueIntegerArray
-
readQueueValuesIntegerArray
-
setIntegerArray
-
getIntegerArray
-
setDefaultIntegerArray
-
getAtomicFloatArray
-
readQueueFloatArray
-
readQueueValuesFloatArray
-
setFloatArray
-
getFloatArray
-
setDefaultFloatArray
-
getAtomicDoubleArray
-
readQueueDoubleArray
-
readQueueValuesDoubleArray
-
setDoubleArray
-
getDoubleArray
-
setDefaultDoubleArray
-
getAtomicStringArray
-
readQueueStringArray
-
readQueueValuesStringArray
-
setStringArray
-
getStringArray
-
setDefaultStringArray
-
readQueueValue
-
getValue
-
setEntryFlags
-
getEntryFlags
-
getTopicInfo
-
createListenerPoller
-
destroyListenerPoller
-
addListener
public static int addListener(int poller, String[] prefixes, EnumSet<NetworkTableEvent.Kind> kinds) -
addListener
-
addListener
-
addListener
-
readListenerQueue
-
removeListener
-
getNetworkMode
-
startLocal
-
stopLocal
-
startServer
public static void startServer(int inst, String persistFilename, String listenAddress, int port3, int port4) -
stopServer
-
startClient3
-
startClient4
-
stopClient
-
setServer
-
setServer
-
setServerTeam
-
disconnect
-
startDSClient
-
stopDSClient
-
flushLocal
-
flush
-
getConnections
-
isConnected
-
getServerTimeOffset
-
now
-
startEntryDataLog
-
stopEntryDataLog
-
startConnectionDataLog
-
stopConnectionDataLog
-
addLogger
-