org.shiwa.fgi.iwir
Class DataLink

java.lang.Object
  extended by org.shiwa.fgi.iwir.AbstractLink
      extended by org.shiwa.fgi.iwir.DataLink

public class DataLink
extends AbstractLink

The Class Link is used to connect different data ports.


Constructor Summary
DataLink(AbstractPort from, AbstractPort to)
          Instantiates a new data link.
 
Method Summary
 AbstractPort getFromPort()
          Gets the source port.
 AbstractPort getToPort()
          Gets the target port.
 java.lang.String toString()
           
 
Methods inherited from class org.shiwa.fgi.iwir.AbstractLink
equals, getFrom, getTo, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 from
to - the to
Method Detail

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