"

2013 FRC Java API

"

edu.wpi.first.wpilibj.networktables2.client
Class NetworkTableClient

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.NetworkTableNode
      extended by edu.wpi.first.wpilibj.networktables2.client.NetworkTableClient
All Implemented Interfaces:
AbstractNetworkTableEntryStore.TableListenerManager, ClientConnectionListenerManager, IRemote

public class NetworkTableClient
extends NetworkTableNode

A client node in NetworkTables 2.0

Author:
Mitchell

Field Summary
 
Fields inherited from class edu.wpi.first.wpilibj.networktables2.NetworkTableNode
entryStore
 
Constructor Summary
NetworkTableClient(IOStreamFactory streamFactory)
          Create a new NetworkTable Client
NetworkTableClient(IOStreamFactory streamFactory, NetworkTableEntryTypeManager typeManager, NTThreadManager threadManager)
          Create a new NetworkTable Client
 
Method Summary
 void close()
          close all networking activity related to this node
 boolean isConnected()
          Get the current state of the objects connection
 boolean isServer()
          If the object is acting as a server
 void reconnect()
          force the client to disconnect and reconnect to the server again.
 void stop()
           
 
Methods inherited from class edu.wpi.first.wpilibj.networktables2.NetworkTableNode
addConnectionListener, addTableListener, containsKey, fireConnectedEvent, fireDisconnectedEvent, fireTableListeners, getBoolean, getDouble, getEntryStore, getString, getValue, init, putBoolean, putComplex, putDouble, putString, putValue, putValue, putValue, removeConnectionListener, removeTableListener, retrieveValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkTableClient

public NetworkTableClient(IOStreamFactory streamFactory,
                          NetworkTableEntryTypeManager typeManager,
                          NTThreadManager threadManager)
Create a new NetworkTable Client

Parameters:
streamFactory -
threadManager -
transactionPool -

NetworkTableClient

public NetworkTableClient(IOStreamFactory streamFactory)
Create a new NetworkTable Client

Parameters:
streamFactory -
Method Detail

reconnect

public void reconnect()
force the client to disconnect and reconnect to the server again. Will connect if the client is currently disconnected


close

public void close()
Description copied from class: NetworkTableNode
close all networking activity related to this node

Specified by:
close in class NetworkTableNode

stop

public void stop()

isConnected

public boolean isConnected()
Description copied from interface: IRemote
Get the current state of the objects connection

Returns:
the current connection state

isServer

public boolean isServer()
Description copied from interface: IRemote
If the object is acting as a server

Returns:
if the object is a server

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"