|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.psu.geovista.app.spreadsheet.formula.Formula
| Constructor Summary | |
Formula(Cell owner,
java.lang.String input,
int row,
int col)
edu.psu.geovista.app.spreadsheet.formula.Formula contructor. |
|
Formula(java.lang.String input,
int row,
int col,
ParserException e)
edu.psu.geovista.app.spreadsheet.formula.Formula contructor. |
|
| Method Summary | |
boolean |
addOwner(Cell cell)
|
java.lang.Number |
evaluate()
|
java.lang.Number |
evaluate(java.util.LinkedList postfix)
It evaluates the postfix expression by a stack. |
FunctionManager |
getFunctionManager()
|
Cell |
getOwner()
|
java.util.HashSet |
getOwners()
From the edu.psu.geovista.app.spreadsheet.formula.Node list; Creates the dependency set. |
java.lang.Number |
getValue()
Return value * |
boolean |
isBad()
Check for bad edu.psu.geovista.app.spreadsheet.formula. |
boolean |
needsRecalc()
Check whether needs a recalc |
static java.lang.Number |
processCellValue(java.lang.Object o)
|
void |
setBad()
|
void |
setNeedsRecalc(boolean needs)
Mark it as needsRecalc |
java.lang.String |
toString()
This returns the string value of the edu.psu.geovista.app.spreadsheet.formula. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Formula(java.lang.String input,
int row,
int col,
ParserException e)
input - the edu.psu.geovista.app.spreadsheet.formula stringrow - the current row where the edu.psu.geovista.app.spreadsheet.formula is storedcol - the current column where the forluma is storede - a edu.psu.geovista.app.spreadsheet.exception.ParserException
public Formula(Cell owner,
java.lang.String input,
int row,
int col)
throws ParserException
input - the edu.psu.geovista.app.spreadsheet.formula stringrow - the current row where the edu.psu.geovista.app.spreadsheet.formula is storedcol - the current column where the forluma is stored#toPostfix| Method Detail |
public java.lang.Number getValue()
public boolean isBad()
public void setBad()
public boolean needsRecalc()
public void setNeedsRecalc(boolean needs)
public java.util.HashSet getOwners()
public Cell getOwner()
public boolean addOwner(Cell cell)
public java.lang.String toString()
public FunctionManager getFunctionManager()
public java.lang.Number evaluate()
throws ParserException,
NoReferenceException
ParserException
NoReferenceException
public java.lang.Number evaluate(java.util.LinkedList postfix)
throws ParserException,
NoReferenceException
postfix - the edu.psu.geovista.app.spreadsheet.formula in postfix form
ParserException
NoReferenceException
public static java.lang.Number processCellValue(java.lang.Object o)
throws ParserException,
NoReferenceException
ParserException
NoReferenceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||