Constructor and Description |
---|
Binary(Term terme1,
Operator op1,
Term terme2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compute()
Compute expression
in a value passing mode.
|
Term |
engine()
The good solution.
|
Term |
getLeft()
Gets the left.
|
Operator |
getOp()
Gets the op.
|
Term |
getRight()
Get right expression.
|
boolean |
isComputable()
expression est-elle calculable.
|
boolean |
isUnit()
Test if unit.
|
boolean |
isZero()
Test if zero.
|
Term |
oneReduction()
One simplification important TODO a completer.
|
java.lang.String |
toString()
impression.
|
public Term getLeft()
public Term getRight()
BinaryI
getRight
in interface BinaryI
BinaryI.getRight()
public java.lang.String toString()
public boolean isComputable()
isComputable
in interface Term
public int compute()
public boolean isZero()
Term
isZero
in interface Term
un binaire ne peut etre egale a zero sinon c un entier
public boolean isUnit()
Term
isUnit
in interface Term
un binaire n'est pas un entier
public Term oneReduction()
oneReduction
in interface Term