muskel
Interface InputManager

All Known Implementing Classes:
IntegerStreamInputManager

public interface InputManager

this is the interface that must be implemented to supply the class providing the program input stream


Method Summary
 boolean hasNext()
          this is the method used to check whether there are other tasks available onto the input stream
 java.lang.Object next()
          this is the metod used by the manager to get the next task to compute, if any.
 

Method Detail

next

java.lang.Object next()
this is the metod used by the manager to get the next task to compute, if any. In case there is no more tasks, a null is returned as the EndOfStream mark

Returns:
null if there is no more tasks, the task to be computed otherwise

hasNext

boolean hasNext()
this is the method used to check whether there are other tasks available onto the input stream

Returns:
true is there is at least one more task, false otherwise