|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFunction
BinaryOperator
public abstract class BinaryOperator
Fonction s'exprimant comme une opération binaire entre deux autres fonctions.
Field Summary | |
---|---|
protected Function |
leftSon
|
protected Function |
rightSon
|
Method Summary | |
---|---|
boolean |
isConstant()
Ssi la fonction ne contient pas de variable. |
boolean |
isOne()
Ssi la fonction est une feuille valant 1. |
boolean |
isZero()
Ssi la fonction est une feuille valant 0. |
protected Function |
simplifySubTrees()
Remplace les sous-arbres par leurs versions simplifiées, retourne une feuille si l'arbre est constant. |
abstract char |
toChar()
Retourne l'opérateur binaire sous forme de caractère ('+' pour une addition '-' pour une soustraction, etc). |
java.lang.String |
toString()
|
Methods inherited from class Function |
---|
derivate, evaluate, integrate, main, simplify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Function leftSon
protected Function rightSon
Method Detail |
---|
public abstract char toChar()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isZero()
Function
isZero
in class Function
public boolean isOne()
Function
isOne
in class Function
public boolean isConstant()
Function
isConstant
in class Function
protected Function simplifySubTrees()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |