org.syrup.helpers
Class LinkImpl

java.lang.Object
  extended byorg.syrup.helpers.LinkImpl
All Implemented Interfaces:
Link

public class LinkImpl
extends java.lang.Object
implements Link

A generic Link Implementation.

Author:
Robbert van Dalen

Constructor Summary
LinkImpl(OutPort f, InPort t, Data c)
          Constructor for the LinkImpl object
 
Method Summary
 Data content()
          Returns the content held by the Link.
 OutPort from()
          Returns the OutPort of the Link.
 InPort to()
          Returns the InPort of the Link.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkImpl

public LinkImpl(OutPort f,
                InPort t,
                Data c)
Constructor for the LinkImpl object

Parameters:
f - The OutputPort from.
t - The InputPort to.
c - The Data held by the Link.
Method Detail

from

public OutPort from()
Description copied from interface: Link
Returns the OutPort of the Link. May return null to indicate a start point.

Specified by:
from in interface Link
Returns:
The Link's OutPort.

to

public InPort to()
Description copied from interface: Link
Returns the InPort of the Link. May return null to indicate an end point.

Specified by:
to in interface Link
Returns:
The Link's InPort.

content

public Data content()
Description copied from interface: Link
Returns the content held by the Link.

Specified by:
content in interface Link
Returns:
The Link's Content.

toString

public java.lang.String toString()