src-gu/mir-reasoner/src/common_classes/Taxon.java
/** Prints the full taxonomy contained in this Taxon object. 
	 * @param T The Taxon object to be printed.	*/
Prints the full taxonomy contained in this Taxon object.
@param T The Taxon object to be printed.
Prints the full taxonomy contained in this Taxon object . @param T The Taxon object to be printed .
public void printTaxon(PrintStream output){ 
		String msg = toString() + " -> ";
		if (children.isEmpty()){
			output.println(msg);
			return;
		}
		else{
			msg += '(';
			for (Taxon a : children)
				msg += a + ", ";
			msg = msg.substring(0, msg.length()-2);
			output.println(msg + ')');
			for (Taxon c : children)
				c.printTaxon(output);
		}
	}
public void printTaxon ( PrintStream output ) { String msg = toString ( ) + " -> " ; if ( children . isEmpty ( ) ) { output . println ( msg ) ; return ; } else { msg += '(' ; for ( Taxon a : children ) msg += a + ", " ; msg = msg . substring ( 0 , msg . length ( ) - 2 ) ; output . println ( msg + ')' ) ; for ( Taxon c : children ) c . printTaxon ( output ) ; } }
Prints the full taxonomy contained in this Taxon object.
Prints the full taxonomy contained in this Taxon object .
// TODO for testing