hussam.math.operations.parser
Interface OperationReader

All Known Implementing Classes:
DynamicExpressionReader, ExpressionReader, HussamExpressionReader, SmartExpressionReader

public interface OperationReader

A machine that reads expressions and converts them to Operations.

Author:
Hussam AlMulhim حسام الملحم
See Also:
Operation

Method Summary
 OperatorSourcegetOperatorSource()
          gets the OperatorSource for all expressions read!
 OperationreadOperation(java.lang.String operationString)
          Reads an expression
 

Method Detail

readOperation

Operation readOperation(java.lang.String operationString)
                        throws MathException
Reads an expression

Parameters:
operationString - the expression to be evaluated.
Returns:
the Operation from which you can call result() to get the result of the expression.
Throws:
MathException - Thrown if the expression has a problemSyntaxErrorException MathLogicException

getOperatorSource

OperatorSource getOperatorSource()
gets the OperatorSource for all expressions read!

Returns:
the OperatorSource for all expressions read.