Package edu.wpi.grip.core
Interface ConnectionValidator
-
- All Known Implementing Classes:
Pipeline
public interface ConnectionValidator
AllowsConnections
to be validated to ensure that the pipeline will remain valid.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
canConnect(OutputSocket<?> outputSocket, InputSocket<?> inputSocket)
Determines if an output socket can be connected to an input socket.default boolean
canConnect(Socket socket1, Socket socket2)
Resolves whichSocket
is theOutputSocket
and which is theInputSocket
and callscanConnect(OutputSocket, InputSocket)
.
-
-
-
Method Detail
-
canConnect
default boolean canConnect(Socket socket1, Socket socket2)
Resolves whichSocket
is theOutputSocket
and which is theInputSocket
and callscanConnect(OutputSocket, InputSocket)
.- Parameters:
socket1
- The first socketsocket2
- The second socket- Returns:
- The return value of
canConnect(OutputSocket, InputSocket)
-
canConnect
boolean canConnect(OutputSocket<?> outputSocket, InputSocket<?> inputSocket)
Determines if an output socket can be connected to an input socket.- Parameters:
outputSocket
- The output socket to connect to the input socketinputSocket
- The input socket to accept the output value of the output socket- Returns:
- True if a valid connection can be made from these two Sockets
-
-