com.rychlik.calculator
Class StackMachine.TernaryMathFunction
java.lang.Object
|
+--com.rychlik.calculator.StackMachine.MathFunction
|
+--com.rychlik.calculator.StackMachine.TernaryMathFunction
- All Implemented Interfaces:
- java.io.Serializable, StackMachine.Instruction
- Direct Known Subclasses:
- StackMachine.If
- Enclosing class:
- StackMachine
- public abstract class StackMachine.TernaryMathFunction
- extends StackMachine.MathFunction
Describe class TernaryMathFunction here.
- See Also:
- Serialized Form
Method Summary |
int |
arity()
Describe arity method here. |
abstract double |
eval(double x,
double y,
double z)
Describe eval method here. |
void |
execute()
Describe execute method here. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StackMachine.TernaryMathFunction
public StackMachine.TernaryMathFunction()
arity
public int arity()
- Describe
arity method here.
- Returns:
- an
int value
execute
public void execute()
throws ParseException
- Describe
execute method here.
- Throws:
ParseException - if an error occurs
eval
public abstract double eval(double x,
double y,
double z)
- Describe
eval method here.
- Parameters:
x - a double valuey - a double valuez - a double value
- Returns:
- a
double value
|