/** * Returns a description of this Cepstrum component in the format: * <cepstrum name> {<DataProcessor1>, <DataProcessor2> ... * <DataProcessorN>} * * @return a description of this Cepstrum */ @Override public String toString() { StringBuilder description = new StringBuilder(super.toString()) .append(" {"); for (DataProcessor dp : selectedDataProcessors) description.append(dp).append(", "); description.setLength(description.length() - 2); return description.append('}').toString(); }
/** * Returns a description of this FrontEnd in the format: <front end name> {<DataProcessor1>, <DataProcessor2> ... * <DataProcessorN>} * * @return a description of this FrontEnd */ @Override public String toString() { if (last == null) return super.toString() + " {}"; LinkedList<DataProcessor> list = new LinkedList<DataProcessor>(); for (DataProcessor current = last; current != null; current = current.getPredecessor()) list.addFirst(current); // add processors in their correct order StringBuilder description = new StringBuilder(super.toString()).append(" {"); for (DataProcessor dp : list) description.append(dp).append(", "); description.setLength(description.length() - 2); return description.append('}').toString(); }
/** * Returns a description of this Cepstrum component in the format: * <cepstrum name> {<DataProcessor1>, <DataProcessor2> ... * <DataProcessorN>} * * @return a description of this Cepstrum */ @Override public String toString() { StringBuilder description = new StringBuilder(super.toString()) .append(" {"); for (DataProcessor dp : selectedDataProcessors) description.append(dp).append(", "); description.setLength(description.length() - 2); return description.append('}').toString(); }
/** * Returns a description of this FrontEnd in the format: <front end name> {<DataProcessor1>, <DataProcessor2> ... * <DataProcessorN>} * * @return a description of this FrontEnd */ @Override public String toString() { if (last == null) return super.toString() + " {}"; LinkedList<DataProcessor> list = new LinkedList<DataProcessor>(); for (DataProcessor current = last; current != null; current = current.getPredecessor()) list.addFirst(current); // add processors in their correct order StringBuilder description = new StringBuilder(super.toString()).append(" {"); for (DataProcessor dp : list) description.append(dp).append(", "); description.setLength(description.length() - 2); return description.append('}').toString(); }