|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectise.antelope.tasks.Op
public class Op
Represents a mathematical operation.
Copyright 2003, Dale Anson, all rights reserved
Constructor Summary | |
---|---|
Op()
|
|
Op(java.lang.String op)
|
|
Op(java.lang.String op,
java.lang.String type)
|
Method Summary | |
---|---|
void |
addConfiguredNum(Num num)
Add a number to this operation. |
void |
addConfiguredOp(Op op)
Add a nested operation. |
Num |
calculate()
Perform this operation. |
void |
setDatatype(java.lang.String p)
Sets the datatype of this calculation. |
void |
setOp(java.lang.String op)
Set the operation. |
void |
setStrict(boolean b)
Use the StrictMath library. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Op()
public Op(java.lang.String op)
public Op(java.lang.String op, java.lang.String type)
Method Detail |
---|
public void setOp(java.lang.String op)
public void addConfiguredNum(Num num)
num
- a number to use in this operationpublic void setDatatype(java.lang.String p)
public void addConfiguredOp(Op op)
op
- the operation to add.public void setStrict(boolean b)
public Num calculate()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |