org.shiwa.fgi.iwir
Class DataLink
java.lang.Object
org.shiwa.fgi.iwir.AbstractLink
org.shiwa.fgi.iwir.DataLink
public class DataLink
- extends AbstractLink
The Class Link is used to connect different data ports.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
DataLink
public DataLink(AbstractPort from,
AbstractPort to)
- Instantiates a new data link. Throws an IllegalargumentException if the
parent of the port is not known.
- Parameters:
from
- the fromto
- the to
getFromPort
public AbstractPort getFromPort()
- Gets the source port.
- Returns:
- the from port
getToPort
public AbstractPort getToPort()
- Gets the target port.
- Returns:
- the to port
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractLink