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

Variable Index

 o tValue
The Variable object used by the parser to represent the current value of t
 o xExpression
The expression object used by the parser to evaluate the x-value
 o xFormula
The String representing the formula for the x-parameter.
 o yExpression
The expression object used by the parser to find the y-value
 o yFormula
The String representing the formula for the y-parameter.

Constructor Index

 o EDU.emporia.mathbeans.SymbolicParametricCurve()
The no-argument constructor

Method Index

 o getPoint(double)
Gets the point on the curve corresponding to the given parameter
 o getTitle()
The title to be displayed that describes the curve
 o getXFormula()
Gets the formula to be used to determine the x-parameter.
 o getYFormula()
Gets the formula to be used to determine the y-parameter.
 o setXFormula(String)
Method to set the formula to be used to determine the x-parameter.
 o setYFormula(String)
Method to set the formula to be used to determine the y-parameter.
 o toString()
Describes the curve

Variables

 o tValue
protected EDU.emporia.mathtools.Variable tValue
The Variable object used by the parser to represent the current value of t

 o xExpression
protected EDU.emporia.mathtools.Expr xExpression
The expression object used by the parser to evaluate the x-value

 o xFormula
protected java.lang.String xFormula
The String representing the formula for the x-parameter. (Should be in terms of t)

 o yExpression
protected EDU.emporia.mathtools.Expr yExpression
The expression object used by the parser to find the y-value

 o yFormula
protected java.lang.String yFormula
The String representing the formula for the y-parameter. (Should be in terms of t)

Constructors

 o SymbolicParametricCurve
public SymbolicParametricCurve()
The no-argument constructor

Methods

 o 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
 o getTitle
public java.lang.String getTitle()
The title to be displayed that describes the curve

Returns:
The title
Overrides:
getTitle in class ParametricCurve
 o 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
 o 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
 o 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
 o 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
 o 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