org.syrup.helpers
Class ResultImpl

java.lang.Object
  extended byorg.syrup.helpers.ResultImpl
All Implemented Interfaces:
Result

public class ResultImpl
extends java.lang.Object
implements Result

A generic Result implementation.

Author:
Robbert van Dalen

Constructor Summary
ResultImpl(Context c, boolean in1, boolean in2, Data out1, Data out2)
          Constructor for the ResultImpl object
 
Method Summary
 Context context()
          Returns the Context from which the Result is computed.
 boolean in_1_consumed()
          Returns true if the first input has been consumed.
 boolean in_2_consumed()
          Returns true if the second input has been consumed.
 Data out_1_result()
          Returns the first resulting output.
 Data out_2_result()
          Return the second resulting output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultImpl

public ResultImpl(Context c,
                  boolean in1,
                  boolean in2,
                  Data out1,
                  Data out2)
Constructor for the ResultImpl object

Parameters:
c - The Context attribute.
in1 - The in_1_consumed attribute.
in2 - The in_2_consumed attribute.
out1 - The out_1_result attribute.
out2 - The out_2_result attribute.
Method Detail

context

public Context context()
Description copied from interface: Result
Returns the Context from which the Result is computed.

Specified by:
context in interface Result
Returns:
The Context from which the Result is computed.

in_1_consumed

public boolean in_1_consumed()
Description copied from interface: Result
Returns true if the first input has been consumed.

Specified by:
in_1_consumed in interface Result
Returns:
true if the first input has been consumed.

in_2_consumed

public boolean in_2_consumed()
Description copied from interface: Result
Returns true if the second input has been consumed.

Specified by:
in_2_consumed in interface Result
Returns:
true if the second input has been consumed.

out_1_result

public Data out_1_result()
Description copied from interface: Result
Returns the first resulting output.

Specified by:
out_1_result in interface Result
Returns:
The first resulting output.

out_2_result

public Data out_2_result()
Description copied from interface: Result
Return the second resulting output.

Specified by:
out_2_result in interface Result
Returns:
The second resulting output.