public class Comparative extends PostfixMathCommand
Modifier and Type | Field and Description |
---|---|
static int |
EQ |
static int |
GE |
static int |
GT |
static int |
LE |
static int |
LT |
static int |
NE |
Constructor and Description |
---|
Comparative(int id_in)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
eq(Object param1,
Object param2) |
boolean |
ge(Object param1,
Object param2) |
double |
getTolerance()
Returns the tolerance used for comparing complex numbers
|
boolean |
gt(Object param1,
Object param2) |
boolean |
le(Object param1,
Object param2) |
boolean |
lt(Object param1,
Object param2) |
boolean |
ne(Object param1,
Object param2) |
void |
run(Stack inStack)
Throws an exception because this method should never be called under
normal circumstances.
|
void |
setTolerance(double d)
Sets the tolerance used for comparing complex numbers
|
checkNumberOfParameters, getNumberOfParameters, setCurNumberOfParameters
public static final int LT
public static final int GT
public static final int LE
public static final int GE
public static final int NE
public static final int EQ
public Comparative(int id_in)
id_in
- The id of the comparative operator.public void run(Stack inStack) throws ParseException
PostfixMathCommand
run
in interface PostfixMathCommandI
run
in class PostfixMathCommand
ParseException
public boolean lt(Object param1, Object param2) throws ParseException
ParseException
public boolean gt(Object param1, Object param2) throws ParseException
ParseException
public boolean le(Object param1, Object param2) throws ParseException
ParseException
public boolean ge(Object param1, Object param2) throws ParseException
ParseException
public boolean eq(Object param1, Object param2) throws ParseException
ParseException
public boolean ne(Object param1, Object param2) throws ParseException
ParseException
public double getTolerance()
public void setTolerance(double d)
d
- Jas4pp 1.5 © Java Analysis Studio for Particle Physics