XLangSource
Class Process


public class Process

This class contains the logic to actually the start the work. Tries to first get the XML contained values. Then tries ro map these to JavaCC gnerated inputs. Then returns the evaluated value

Author:
eSundar
Version: XLang1.0

Field Summary
 (package private) Vectorexpressions
           
 (package private) static Hashtablemapper
           
 (package private) HashtablenameType
           
 (package private) HashtablenameValue
           
 (package private) static Vectortypes
           

Method Summary
 StringgetLHS(String input)
           Gets the Left Hand Side Evaluation
 StringgetRHS(String input)
           Evaluates the right Hand Side Expession
 voidgoOverExpressions()
           Go Over Individual Elements
 voidmodifyValues(String name, double val)
           Modify each Value
 doubleprocessInputExpression(String input)
           Process each expression
 Stringreformat(String input)
           Reformats an expression
 voidstart()
           Start up the process

Field Detail

expressions

Vector expressions

mapper

static Hashtable mapper

nameType

Hashtable nameType

nameValue

Hashtable nameValue

types

static Vector types
Method Detail

getLHS

public String getLHS(String input)
Gets the Left Hand Side Evaluation

getRHS

public String getRHS(String input)
Evaluates the right Hand Side Expession

goOverExpressions

public void goOverExpressions()
Go Over Individual Elements

modifyValues

public void modifyValues(String name, double val)
Modify each Value

processInputExpression

public double processInputExpression(String input)
throws DataOverflowException,
DataUnderflowException
Process each expression

reformat

public String reformat(String input)
throws DivisionException
Reformats an expression

start

public void start()
Start up the process

Association Links

to Class java.util.Hashtable

to Class java.util.Hashtable

to Class java.util.Hashtable

to Class java.util.Vector

to Class java.util.Vector



Hosted by www.Geocities.ws

1