Class NetworkTableEvent

java.lang.Object
edu.wpi.first.networktables.NetworkTableEvent

public final class NetworkTableEvent
extends Object
NetworkTables event.

There are different kinds of events. When creating a listener, a combination of event kinds can be listened to by building an EnumSet of NetworkTableEvent.Kind.

  • Field Details

  • Constructor Details

  • Method Details

    • is

      public boolean is​(NetworkTableEvent.Kind kind)
      Determine if event is of a particular kind. For example, kPublish if the topic was not previously published. Also indicates the data included with the event:
      • kConnected or kDisconnected: connInfo
      • kPublish, kUnpublish, or kProperties: topicInfo
      • kValueRemote, kValueLocal: valueData
      • kLogMessage: logMessage
      Parameters:
      kind - Kind
      Returns:
      True if event matches kind
    • getInstance

      Gets the instance associated with this event.
      Returns:
      Instance