Class TSocket
- java.lang.Object
-
- edu.wpi.grip.ui.codegeneration.data.TSocket
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTSocket(java.lang.String type, java.lang.String name)The default constructor for a Socket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbaseType()This checks if a step is mutable and returns the type.protected java.lang.StringbaseTypeHelper(java.lang.String type)Can be overridden by a subclass.booleanmutable()Checks to see if the socket is mutable.java.lang.Stringname()the String that represents the socket.booleannumber()checks to see if the socket is a number type.voidsetType(java.lang.String type)Sets the type of the socket to a value.java.lang.Stringtype()gets the type of the socket.
-
-
-
Method Detail
-
setType
public void setType(java.lang.String type)
Sets the type of the socket to a value.- Parameters:
type- The new type of the socket
-
type
public java.lang.String type()
gets the type of the socket.- Returns:
- the type of the socket.
-
name
public java.lang.String name()
the String that represents the socket.- Returns:
- the name of the socket.
-
baseType
public java.lang.String baseType()
This checks if a step is mutable and returns the type. Used in Templates.- Returns:
- The type of the socket.
-
baseTypeHelper
protected java.lang.String baseTypeHelper(java.lang.String type)
Can be overridden by a subclass. is overridden by TInput.- Parameters:
type- the original type- Returns:
- the baseType
-
mutable
public boolean mutable()
Checks to see if the socket is mutable.- Returns:
- true if mutable. false if not mutable.
-
number
public boolean number()
checks to see if the socket is a number type.- Returns:
- true if it is a number.
-
-