Addition.java 473 Bytes
package noyau;

import java.util.stream.Collectors;

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

}