pstypes
Interface PSConsoleOperator

All Superinterfaces:
PSObject, PSOperator
All Known Implementing Classes:
PSDeq, PSPstack

public interface PSConsoleOperator
extends PSOperator

An object that implements this interface is defined as a console operator.

This interface defines the group of console operators.

Each console operator requires to have a knowledge of where the stack is stored and which output stream should they use to store the results of their execution mechanisms.


Method Summary
 void action(PSStack s, java.io.OutputStream os)
          Executes the action as it is intented.
 
Methods inherited from interface pstypes.PSOperator
getOperatorToken, isValid
 

Method Detail

action

public void action(PSStack s,
                   java.io.OutputStream os)
Executes the action as it is intented.

Precondition : A valid stack is given to method as well as an inialiazed stream.
Postcondition : The implemented action will be executed.

Parameters:
s - The stack where the operands are stored.
os - The stream where the output will be directed.