Package edu.wpi.grip.core
Class Connection<T>
- java.lang.Object
-
- edu.wpi.grip.core.Connection<T>
-
public class Connection<T> extends java.lang.Object
A connection is a rule that causes one socket to update to always the value of another socket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Connection.Factory<T>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSocket<T>
getInputSocket()
OutputSocket<? extends T>
getOutputSocket()
void
onConnectionAdded(ConnectionAddedEvent event)
void
onConnectionRemoved(ConnectionRemovedEvent e)
void
onOutputChanged(SocketChangedEvent e)
void
remove()
Removes this connection from the pipeline.void
removeConnection(SourceRemovedEvent e)
void
removeConnection(StepRemovedEvent e)
java.lang.String
toString()
-
-
-
Method Detail
-
getOutputSocket
public OutputSocket<? extends T> getOutputSocket()
-
getInputSocket
public InputSocket<T> getInputSocket()
-
onConnectionAdded
public void onConnectionAdded(ConnectionAddedEvent event)
-
onOutputChanged
public void onOutputChanged(SocketChangedEvent e)
-
onConnectionRemoved
public void onConnectionRemoved(ConnectionRemovedEvent e)
-
removeConnection
public void removeConnection(StepRemovedEvent e)
-
removeConnection
public void removeConnection(SourceRemovedEvent e)
-
remove
public void remove()
Removes this connection from the pipeline.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-