org.syrup.helpers
Class InPortImpl

java.lang.Object
  extended byorg.syrup.helpers.InPortImpl
All Implemented Interfaces:
InPort, Port

public class InPortImpl
extends java.lang.Object
implements InPort

An generic InPort implementation.

Author:
Robbert van Dalen

Constructor Summary
InPortImpl(Task t, boolean p)
          Constructor for the InPortImpl object
 
Method Summary
 boolean isSecond()
          Returns true if the Port number is 2.
 Task task()
          Returns the associated Task.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InPortImpl

public InPortImpl(Task t,
                  boolean p)
Constructor for the InPortImpl object

Parameters:
t - The associated Task.
p - The port number.
Method Detail

task

public Task task()
Description copied from interface: Port
Returns the associated Task.

Specified by:
task in interface Port
Returns:
The associated Task.

isSecond

public boolean isSecond()
Description copied from interface: Port
Returns true if the Port number is 2. Returns false otherwise.

Specified by:
isSecond in interface Port
Returns:
The Port number.

toString

public java.lang.String toString()