| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Operator
This interface reflects operators such as Operands(+, -, ^ , * ...etc) and Functions such as Abs, Log, Min, Max...etc an Operator takes an Operation for example from which it will get a new Result. For example: The + operand, will take 2 operations as arguments, it will then computes the addition.
The flags bellow are for parssing purposes. They will be used to indicate weather it is the right momment to parse a given argument. For example, 4 +6 * 8The parser will parse multiplication Operands first becasue they have more power. Then the plus operand will be computed. You can Notice that a Function is computed before any other operators. The Power operand is computed before Multiplication operands. I guess the description below show everything!
Field Summary | |
---|---|
static int | COMMA Comma has lower power. |
static int | FUNCTION a Function power is the most. |
static int | INDEFINITE a flag Indicating that the Operator has an Indefinite power. |
static int | LOGICAL Logical has low power. |
static int | MULTIPLY Multiplicity is computed before than PLUS operations. |
static int | NOTHING No Power at all. |
static int | PLUS Plus indication. |
static int | POWER a POWER is stronger than Mulitiplicity operations. |
Method Summary | |
---|---|
java.lang.String | getName() Returns the name of this Operator. |
int | getType() |
Methods inherited from interface hussam.math.operations.Operation |
---|
clone, optimize, result |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final int FUNCTION
static final int POWER
static final int MULTIPLY
static final int PLUS
static final int LOGICAL
static final int COMMA
static final int NOTHING
static final int INDEFINITE
Method Detail |
---|
int getType()
java.lang.String getName()
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |