Soustraction.java 438 Bytes
package noyau;

public class Soustraction extends OperationBinaire{
	
	Soustraction(Case g,Case d){
		gauche=g;
		droite=d;
	}
	
	
	
	public double eval() {
		
		if (!creerCycle(gauche) && !creerCycle(droite))
			return gauche.getValue() - droite.getValue();
		else 
			return 0;
	}
	
	
	
	
	public String toString(){
		
		return gauche.getId() +" - " + droite.getId() ;
	}
	
	
	public String getFormuleDeveloppe(){
		
		return "";
	}

}