Class NetworkAbstraction.TopicValue

java.lang.Object
networktablesviewer.NetworkAbstraction.TopicValue
Enclosing class:
NetworkAbstraction

public class NetworkAbstraction.TopicValue extends Object
Holds information about a Topic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    true if the topic is being published
    name of the topic this should match with the name of the topic of the NetworkTableValue
    edu.wpi.first.networktables.NetworkTableValue
    value for the topic
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor for empty topic Should only be used when value and name will be set afterwards externally
    TopicValue(edu.wpi.first.networktables.NetworkTableValue val, String nm)
    Creates a topic value given a Topic and name
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the string value of the TopicValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      public edu.wpi.first.networktables.NetworkTableValue value
      value for the topic
    • name

      public String name
      name of the topic this should match with the name of the topic of the NetworkTableValue
    • exists

      public boolean exists
      true if the topic is being published
  • Constructor Details

    • TopicValue

      public TopicValue()
      Empty constructor for empty topic Should only be used when value and name will be set afterwards externally
    • TopicValue

      public TopicValue(edu.wpi.first.networktables.NetworkTableValue val, String nm)
      Creates a topic value given a Topic and name
      Parameters:
      val - NetworkTableValue for the topic
      nm - The topic name. This should be the same as val's topic's name
  • Method Details

    • getString

      public String getString()
      Gets the string value of the TopicValue
      Returns:
      The String value of val