Class ValueEventData

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

public final class ValueEventData extends Object
NetworkTables value event data.
  • Field Details

    • topic

      public final int topic
      Topic handle. Topic.getHandle() can be used to map this to the corresponding Topic object.
    • subentry

      public final int subentry
      Subscriber/entry handle. Subscriber.getHandle() or entry.getHandle() can be used to map this to the corresponding Subscriber or Entry object.
    • value

      public final NetworkTableValue value
      The new value.
  • Constructor Details

    • ValueEventData

      public ValueEventData(NetworkTableInstance inst, int topic, int subentry, NetworkTableValue value)
      Constructor. This should generally only be used internally to NetworkTables.
      Parameters:
      inst - Instance
      topic - Topic handle
      subentry - Subscriber/entry handle
      value - The new value
  • Method Details

    • getTopic

      public Topic getTopic()
      Get the topic as an object.
      Returns:
      Topic for this notification.