Class TInput
- java.lang.Object
-
- edu.wpi.grip.ui.codegeneration.data.TSocket
-
- edu.wpi.grip.ui.codegeneration.data.TInput
-
public class TInput extends TSocket
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
baseTypeHelper(java.lang.String type)
Can be overridden by a subclass.boolean
hasValue()
Checks to see if the input has a valuejava.lang.String
value()
Gets the value of the output.
-
-
-
Constructor Detail
-
TInput
public TInput(java.lang.String type, java.lang.String name, TOutput output)
creates a new TInput with an output- Parameters:
type
- the type of the TInput.name
- the GRIP name of the TInput.output
- the output the the TInput is connected to.
-
TInput
public TInput(java.lang.String type, java.lang.String name, java.lang.String value)
creates a new TInput with a preset value- Parameters:
type
- the type of the TInput.name
- the GRIP name of the TInput.value
- the preset value of the TInput represented as a string.
-
-
Method Detail
-
value
public java.lang.String value()
Gets the value of the output.- Returns:
- returns the value of the output in the form of a string.
-
baseTypeHelper
protected java.lang.String baseTypeHelper(java.lang.String type)
Description copied from class:TSocket
Can be overridden by a subclass. is overridden by TInput.- Overrides:
baseTypeHelper
in classTSocket
- Parameters:
type
- the original type- Returns:
- the baseType
-
hasValue
public boolean hasValue()
Checks to see if the input has a value- Returns:
- true if there is a value. false if it is null.
-
-