Class InfixToPostfixConverter


public class InfixToPostfixConverter
extends ConverterFunctions

InfixToPostfixConverter This Class provides all methodes needed to convert an Infix term into an postfix term Author: Christiane Adler

Field Summary

private Object[][]
prio

Fields inherited from class .ConverterFunctions

helpStack, postfix, sumData

Constructor Summary

InfixToPostfixConverter()

Method Summary

void
convertToPostfix(Vector infix)
private int
getOperatorPrio(Object object)
Vector
getPostfix()
private boolean
precedence(Object operator1, Object operator2)
void
printPostfix()

Methods inherited from class .ConverterFunctions

addSummData, extractSummData, isDirac, isE, isImaginary, isLeftParenthesis, isNumber, isOperator, isPi, isRightParenthesis, isSum, isTrigonometricFunction, isVariable

Field Details

prio

private Object[][] prio

Constructor Details

InfixToPostfixConverter

public InfixToPostfixConverter()

Method Details

convertToPostfix

public void convertToPostfix(Vector infix)

getOperatorPrio

private int getOperatorPrio(Object object)

getPostfix

public Vector getPostfix()

precedence

private boolean precedence(Object operator1,
                           Object operator2)

printPostfix

public void printPostfix()