|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.PipeConnector
public class PipeConnector
A Pipe Connector provides a connection between an input and output port.
Field Summary | |
---|---|
protected PipePort |
dest
destination port. |
protected PipeModuleEdge |
gedge
graph edge representing this connector. |
protected PipePort |
src
source port. |
protected int |
srcIndex
index into source if port can accept multiple connections. |
Constructor Summary | |
---|---|
|
PipeConnector()
Default constructor. |
protected |
PipeConnector(PipePort head,
PipePort tail)
Default constructor. |
protected |
PipeConnector(PipePort head,
PipePort tail,
PipeModuleEdge edge)
Create connection between a source and destination. |
Method Summary | |
---|---|
static PipeConnector |
connect(PipePort head,
PipePort tail)
Connect source port to destination. |
static PipeConnector |
connect(PipePort head,
PipePort tail,
PipeModuleEdge edge)
Connect source port to destination. |
void |
disconnect()
Remove this connection from the source and destination port. |
PipePort |
getDestination()
Get destination port. |
PipeModuleEdge |
getGraphEdge()
Get graph edge. |
PipePort |
getSource()
Get source port. |
int |
getSourceIndex()
Get source index if port accepts multiple connections. |
static boolean |
isCompatible(PipePort head,
PipePort tail)
Returns true if source port can be safely connected to destination port and the connection will not create loops in the graph. |
void |
setDestination(PipePort dst)
Set destination port. |
void |
setGraphEdge(PipeModuleEdge edge)
Set graph edge used to render this connector. |
void |
setSource(PipePort src)
Set source port. |
void |
setSourceIndex(int i)
Set the index into the source if the source is a variable collection of different parameters. |
java.lang.String |
toString()
Get description of connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected PipePort src
protected PipePort dest
protected int srcIndex
protected transient PipeModuleEdge gedge
Constructor Detail |
---|
public PipeConnector()
protected PipeConnector(PipePort head, PipePort tail)
head
- source porttail
- destination portprotected PipeConnector(PipePort head, PipePort tail, PipeModuleEdge edge)
head
- source porttail
- destination portedge
- graph edgeMethod Detail |
---|
public static PipeConnector connect(PipePort head, PipePort tail)
head
- source porttail
- destination port
public static PipeConnector connect(PipePort head, PipePort tail, PipeModuleEdge edge)
head
- source porttail
- destination portedge
- graph edge
public static boolean isCompatible(PipePort head, PipePort tail)
head
- source porttail
- destination port
public void disconnect()
public PipePort getDestination()
public PipeModuleEdge getGraphEdge()
public PipePort getSource()
public int getSourceIndex()
public void setDestination(PipePort dst)
dst
- destination portpublic void setGraphEdge(PipeModuleEdge edge)
edge
- the edgepublic void setSource(PipePort src)
src
- source portpublic void setSourceIndex(int i)
i
- indexpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |