Class TInput


  • public class TInput
    extends TSocket
    • Constructor Summary

      Constructors 
      Constructor Description
      TInput​(java.lang.String type, java.lang.String name, TOutput output)
      creates a new TInput with an output
      TInput​(java.lang.String type, java.lang.String name, java.lang.String value)
      creates a new TInput with a preset value
    • 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 value
      java.lang.String value()
      Gets the value of the output.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class TSocket
        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.