Class ConverterFunctions

Known Direct Subclasses:
InfixToPostfixConverter, PostfixEvaluator

public class ConverterFunctions
extends java.lang.Object

ConverterFunctions This class provides general methods used by infixToPostfixConverter provides the basical constructs and methods for mathematical problems of converting from infix to postfix and of calculating the postfix Author: Christiane Adler

Field Summary

protected Stack
helpStack
protected Vector
postfix
protected Vector
sumData

Constructor Summary

ConverterFunctions()

Method Summary

protected Vector
addSummData(Vector vector)
protected Vector
extractSummData(Vector vector)
protected boolean
isDirac(Object object)
protected boolean
isE(Object object)
protected boolean
isImaginary(Object object)
protected boolean
isLeftParenthesis(Object object)
protected boolean
isNumber(Object object)
protected boolean
isOperator(Object object)
protected boolean
isPi(Object object)
protected boolean
isRightParenthesis(Object object)
protected boolean
isSum(Object object)
protected boolean
isTrigonometricFunction(Object object)
protected boolean
isVariable(Object object)

Field Details

helpStack

protected Stack helpStack

postfix

protected Vector postfix

sumData

protected Vector sumData

Constructor Details

ConverterFunctions

protected ConverterFunctions()

Method Details

addSummData

protected Vector addSummData(Vector vector)

extractSummData

protected Vector extractSummData(Vector vector)

isDirac

protected boolean isDirac(Object object)

isE

protected boolean isE(Object object)

isImaginary

protected boolean isImaginary(Object object)

isLeftParenthesis

protected boolean isLeftParenthesis(Object object)

isNumber

protected boolean isNumber(Object object)

isOperator

protected boolean isOperator(Object object)

isPi

protected boolean isPi(Object object)

isRightParenthesis

protected boolean isRightParenthesis(Object object)

isSum

protected boolean isSum(Object object)

isTrigonometricFunction

protected boolean isTrigonometricFunction(Object object)

isVariable

protected boolean isVariable(Object object)