Class BinaryOperator

java.lang.Object
  extended byOperator
      extended byBinaryOperator
All Implemented Interfaces:
java.lang.Comparable

public class BinaryOperator
extends Operator

Operateur : + - * /

Author:
Tachouct Mustapha

Field Summary
 
Fields inherited from class Operator
ADD, DIV, MUL, NEG, op, POW, SUB
 
Constructor Summary
(package private) BinaryOperator(char c)
           
(package private) BinaryOperator(java.lang.String str)
           
 
Method Summary
 double compute(double a, double b)
          retourne le resultat de l'operation
 java.lang.Double compute(java.lang.Double a, java.lang.Double b)
          retourne le resultat de l'operation
 Polynome compute(Polynome P, Polynome Q)
          retourne le resultat de l'operation entre 2 polynome
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class Operator
compareTo, compute, compute, compute, compute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryOperator

BinaryOperator(char c)

BinaryOperator

BinaryOperator(java.lang.String str)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Operator

compute

public double compute(double a,
                      double b)
retourne le resultat de l'operation


compute

public java.lang.Double compute(java.lang.Double a,
                                java.lang.Double b)
retourne le resultat de l'operation


compute

public Polynome compute(Polynome P,
                        Polynome Q)
retourne le resultat de l'operation entre 2 polynome


main

public static void main(java.lang.String[] args)