Package networktablesviewer
Class NetworkAbstraction.TopicValue
java.lang.Object
networktablesviewer.NetworkAbstraction.TopicValue
- Enclosing class:
- NetworkAbstraction
Holds information about a Topic
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor for empty topic Should only be used when value and name will be set afterwards externallyTopicValue(edu.wpi.first.networktables.NetworkTableValue val, String nm) Creates a topic value given a Topic and name -
Method Summary
-
Field Details
-
value
public edu.wpi.first.networktables.NetworkTableValue valuevalue for the topic -
name
name of the topic this should match with the name of the topic of the NetworkTableValue -
exists
public boolean existstrue 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
Creates a topic value given a Topic and name- Parameters:
val- NetworkTableValue for the topicnm- The topic name. This should be the same as val's topic's name
-
-
Method Details
-
getString
Gets the string value of the TopicValue- Returns:
- The String value of val
-