Package edu.wpi.grip.core.sockets
Class OutputSocketImpl<T>
- java.lang.Object
-
- edu.wpi.grip.core.sockets.SocketImpl<T>
-
- edu.wpi.grip.core.sockets.OutputSocketImpl<T>
-
- Type Parameters:
T
- The type that that this socket holds.
- All Implemented Interfaces:
OutputSocket<T>
,Socket<T>
public class OutputSocketImpl<T> extends SocketImpl<T> implements OutputSocket<T>
A concrete implementation of theOutputSocket
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OutputSocketImpl.FactoryImpl
-
Nested classes/interfaces inherited from interface edu.wpi.grip.core.sockets.OutputSocket
OutputSocket.Factory
-
Nested classes/interfaces inherited from interface edu.wpi.grip.core.sockets.Socket
Socket.Direction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isPreviewed()
void
resetValueToInitial()
Resets the value of this socket to its initial value.void
setPreviewed(boolean previewed)
java.lang.String
toString()
-
Methods inherited from class edu.wpi.grip.core.sockets.SocketImpl
addConnection, flagChanged, getConnections, getDirection, getSocketHint, getSource, getStep, getValue, removeConnection, setSource, setStep, setValueOptional
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.wpi.grip.core.sockets.Socket
addConnection, flagChanged, getConnections, getDirection, getSocketHint, getSource, getStep, getValue, onValueChanged, removeConnection, setSource, setStep, setValue, setValueOptional, simpleString
-
-
-
-
Method Detail
-
isPreviewed
public boolean isPreviewed()
- Specified by:
isPreviewed
in interfaceOutputSocket<T>
- Returns:
- Whether or not this socket is shown in a preview in the GUI.
- See Also:
d(boolean)
-
setPreviewed
public void setPreviewed(boolean previewed)
- Specified by:
setPreviewed
in interfaceOutputSocket<T>
- Parameters:
previewed
- Iftrue
, this socket will be shown in a preview in the GUI.
-
resetValueToInitial
public void resetValueToInitial()
Description copied from interface:OutputSocket
Resets the value of this socket to its initial value.- Specified by:
resetValueToInitial
in interfaceOutputSocket<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classSocketImpl<T>
-
-