Package util
Class FormulaeManager
java.lang.Object
util.FormulaeManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deletes all Formulae objects in the storage.void
deleteFormula
(int index) deletes Formulae objects based on their indicesvoid
deleteFormula
(String expr) deletes Formulae objects based on their original expressionsboolean
hasFormula
(Formulae formula) void
recordFormula
(String expr) records formulae as they are stored by the user
-
Field Details
-
formulaStore
-
-
Constructor Details
-
FormulaeManager
public FormulaeManager()
-
-
Method Details
-
recordFormula
records formulae as they are stored by the user- Parameters:
expr
- the formula to store
-
deleteFormula
public void deleteFormula(int index) deletes Formulae objects based on their indices- Parameters:
index
- the position of the Formulae object within the store
-
deleteFormula
deletes Formulae objects based on their original expressions- Parameters:
expr
- The expression
-
hasFormula
- Parameters:
formula
-- Returns:
- true if the Formulae manager already contains this Formulae object.
-
clearFormula
public void clearFormula()deletes all Formulae objects in the storage.
-