Class EDU.emporia.mathbeans.SymbolicParametricCurve
All Packages Class Hierarchy This Package Previous Next Index
Class EDU.emporia.mathbeans.SymbolicParametricCurve
Object
|
+----ParametricCurve
|
+----EDU.emporia.mathbeans.SymbolicParametricCurve
- public class SymbolicParametricCurve
- extends ParametricCurve
This can be used to generate a parametric curve defined by formulas expressed in terms
of t.
- Version:
- 1.0
- Author:
- Joe Yanik
- Since:
- 7/7/00
-
tValue
- The Variable object used by the parser to represent the current value of t
-
xExpression
- The expression object used by the parser to evaluate the x-value
-
xFormula
- The String representing the formula for the x-parameter.
-
yExpression
- The expression object used by the parser to find the y-value
-
yFormula
- The String representing the formula for the y-parameter.
-
EDU.emporia.mathbeans.SymbolicParametricCurve()
- The no-argument constructor
-
getPoint(double)
- Gets the point on the curve corresponding to the given parameter
-
getTitle()
- The title to be displayed that describes the curve
-
getXFormula()
- Gets the formula to be used to determine the x-parameter.
-
getYFormula()
- Gets the formula to be used to determine the y-parameter.
-
setXFormula(String)
- Method to set the formula to be used to determine the x-parameter.
-
setYFormula(String)
- Method to set the formula to be used to determine the y-parameter.
-
toString()
- Describes the curve
tValue
protected EDU.emporia.mathtools.Variable tValue
- The Variable object used by the parser to represent the current value of t
xExpression
protected EDU.emporia.mathtools.Expr xExpression
- The expression object used by the parser to evaluate the x-value
xFormula
protected java.lang.String xFormula
- The String representing the formula for the x-parameter. (Should be in terms of t)
yExpression
protected EDU.emporia.mathtools.Expr yExpression
- The expression object used by the parser to find the y-value
yFormula
protected java.lang.String yFormula
- The String representing the formula for the y-parameter. (Should be in terms of t)
SymbolicParametricCurve
public SymbolicParametricCurve()
- The no-argument constructor
getPoint
public EDU.emporia.mathtools.Point2D getPoint(double a)
- Gets the point on the curve corresponding to the given parameter
- Parameters:
- a - The t-value that determines the point
- Returns:
- The point on the curve at the parameter
- Overrides:
- getPoint in class ParametricCurve
getTitle
public java.lang.String getTitle()
- The title to be displayed that describes the curve
- Returns:
- The title
- Overrides:
- getTitle in class ParametricCurve
getXFormula
public java.lang.String getXFormula()
- Gets the formula to be used to determine the x-parameter. (Should be
in terms of t).
- Returns:
- The String expression in terms of t that represents the x-parameter
getYFormula
public java.lang.String getYFormula()
- Gets the formula to be used to determine the y-parameter. (Should be
in terms of t).
- Returns:
- The String expression in terms of t that represents the y-parameter
setXFormula
public void setXFormula(String xFormula) throws Graphable_error
- Method to set the formula to be used to determine the x-parameter. (Should be
in terms of t).
- Parameters:
- xFormula - The String expression in terms of t that represents the x-parameter
- Throws: Graphable_error
- Will be thrown if the formula cannot be parsed
setYFormula
public void setYFormula(String yFormula) throws Graphable_error
- Method to set the formula to be used to determine the y-parameter. (Should be
in terms of t).
- Parameters:
- yFormula - The String expression in terms of t that represents the y-parameter
- Throws: Graphable_error
- Will be thrown if the formula cannot be parsed
toString
public java.lang.String toString()
- Describes the curve
- Returns:
- String description of the curve
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index