org.syrup.helpers
Class ContextImpl

java.lang.Object
  extended byorg.syrup.helpers.ContextImpl
All Implemented Interfaces:
Context

public class ContextImpl
extends java.lang.Object
implements Context

A generic Context Implementation.

Author:
Robbert van Dalen

Constructor Summary
ContextImpl(PTask t, EndPoint in1, EndPoint in2, EndPoint out1, EndPoint out2)
          Constructor for the ContextImpl object
 
Method Summary
 Link in_1_link()
          The first input Link of this Context's PTask.
 Link in_2_link()
          The second input Link of this Context's PTask.
 Link out_1_link()
          The first output Link of this Context's PTask.
 Link out_2_link()
          The second output Link of this Context's PTask.
 PTask task()
          The PTask this Context represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextImpl

public ContextImpl(PTask t,
                   EndPoint in1,
                   EndPoint in2,
                   EndPoint out1,
                   EndPoint out2)
Constructor for the ContextImpl object

Parameters:
t - The PTask that this Context represents.
in1 - The first input Link.
in2 - The second input Link.
out1 - The first output Link.
out2 - The second output Link.
Method Detail

task

public PTask task()
Description copied from interface: Context
The PTask this Context represents.

Specified by:
task in interface Context
Returns:
The PTask.

in_1_link

public Link in_1_link()
Description copied from interface: Context
The first input Link of this Context's PTask.

Specified by:
in_1_link in interface Context
Returns:
The first input Link.

in_2_link

public Link in_2_link()
Description copied from interface: Context
The second input Link of this Context's PTask.

Specified by:
in_2_link in interface Context
Returns:
The second input Link.

out_1_link

public Link out_1_link()
Description copied from interface: Context
The first output Link of this Context's PTask.

Specified by:
out_1_link in interface Context
Returns:
The first output Link.

out_2_link

public Link out_2_link()
Description copied from interface: Context
The second output Link of this Context's PTask.

Specified by:
out_2_link in interface Context
Returns:
The second output Link.