Package subjectdata :: Module SSheetCell :: Class SSheetCell
[show private | hide private]
[frames | no frames]

Class SSheetCell


Class encapsulating a cell in the spreadsheet
Method Summary
  __init__(self, cellCoord)
    Accessors
  setValue(self, value)
Set the value of this cell.
  setFormula(self, formula)
Set the formula and parse it into an AST.
  setAST(self, ast)
Set the AST of this cell.
  getValue(self)
Returns the current evaluated value of this cell.
list of CellCoord getInfluencers(self)
Return a list of CellCoord of the cells that influence this cell for evaluation.
string getFormula(self)
Returns the formula
CellCoord getCoords(self)
Returns the coordinates of this cell
ASTNode getAST(self)
Return the AST associated with this cell

Method Details

setAST(self, ast)

Set the AST of this cell. Will be used when cells are copied into other cells to avoid reparsing the same formula string.
Parameters:
ast - The abstract syntax tree
           (type=ASTNode)

setFormula(self, formula)

Set the formula and parse it into an AST.
Parameters:
formula - the formula
           (type=string)

setValue(self, value)

Set the value of this cell.
Parameters:
value - The value
           (type=CellValue)

getAST(self)

Return the AST associated with this cell
Returns:
ASTNode

getCoords(self)

Returns the coordinates of this cell
Returns:
CellCoord

getFormula(self)

Returns the formula
Returns:
string

getInfluencers(self)

Return a list of CellCoord of the cells that influence this cell for evaluation. (i.e., cells that are referred by this cell)
Returns:
list of CellCoord

getValue(self)

Returns the current evaluated value of this cell.

Generated by Epydoc 2.1 on Tue Aug 17 18:20:07 2004 http://epydoc.sf.net