org.syrup.helpers
Class OutPortImpl

java.lang.Object
  extended byorg.syrup.helpers.OutPortImpl
All Implemented Interfaces:
OutPort, Port

public class OutPortImpl
extends java.lang.Object
implements OutPort

An generic OutPort implementation.

Author:
Robbert van Dalen

Constructor Summary
OutPortImpl(Task t, boolean p)
          Constructor for the OutPortImpl 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

OutPortImpl

public OutPortImpl(Task t,
                   boolean p)
Constructor for the OutPortImpl 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()