Package edu.wpi.grip.core
Interface ConnectionValidator
-
- All Known Implementing Classes:
Pipeline
public interface ConnectionValidatorAllowsConnectionsto 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 booleancanConnect(OutputSocket<?> outputSocket, InputSocket<?> inputSocket)Determines if an output socket can be connected to an input socket.default booleancanConnect(Socket socket1, Socket socket2)Resolves whichSocketis theOutputSocketand which is theInputSocketand callscanConnect(OutputSocket, InputSocket).
-
-
-
Method Detail
-
canConnect
default boolean canConnect(Socket socket1, Socket socket2)
Resolves whichSocketis theOutputSocketand which is theInputSocketand 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
-
-