package de.tudresden.inf.lat.born.owlapi.processor;

import java.io.InputStream;

import de.tudresden.inf.lat.born.owlapi.annotator.AnnotatorConfiguration;

/**
 * 
 * @author Julian Mendez
 *
 */
public class ProcessorConfiguration {

	private InputStream ontologyInputStream;
	private InputStream bayesianNetworkInputStream;
	private InputStream queryInputStream;
	private String outputFileName;
	private String problogDirectory;
	private boolean problogNeeded = true;
	private boolean showingLog = true;

	public InputStream getOntologyInputStream() {
		return ontologyInputStream;
	}

	public void setOntologyInputStream(InputStream ontologyInputStream) {
		this.ontologyInputStream = ontologyInputStream;
	}

	public InputStream getBayesianNetworkInputStream() {
		return bayesianNetworkInputStream;
	}

	public void setBayesianNetworkInputStream(
			InputStream bayesianNetworkInputStream) {
		this.bayesianNetworkInputStream = bayesianNetworkInputStream;
	}

	public InputStream getQueryInputStream() {
		return queryInputStream;
	}

	public void setQueryInputStream(InputStream queryInputStream) {
		this.queryInputStream = queryInputStream;
	}

	public String getOutputFileName() {
		return outputFileName;
	}

	public void setOutputFileName(String outputFileName) {
		this.outputFileName = outputFileName;
	}

	public String getProblogDirectory() {
		return problogDirectory;
	}

	public void setProblogDirectory(String problogDirectory) {
		this.problogDirectory = problogDirectory;
	}

	public boolean isShowingLog() {
		return showingLog;
	}

	public void setShowingLog(boolean showingLog) {
		this.showingLog = showingLog;
	}

	public boolean isProblogNeeded() {
		return problogNeeded;
	}

	public void setProblogNeeded(boolean problogNeeded) {
		this.problogNeeded = problogNeeded;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		} else if (!(obj instanceof AnnotatorConfiguration)) {
			return false;
		} else {
			ProcessorConfiguration other = (ProcessorConfiguration) obj;
			return getOntologyInputStream().equals(
					other.getOntologyInputStream())
					&& getBayesianNetworkInputStream().equals(
							other.getBayesianNetworkInputStream())
					&& getQueryInputStream()
							.equals(other.getQueryInputStream())
					&& getOutputFileName().equals(other.getOutputFileName())
					&& getProblogDirectory()
							.equals(other.getProblogDirectory())
					&& (isShowingLog() == other.isShowingLog())
					&& (isProblogNeeded() == other.isProblogNeeded());
		}
	}

	@Override
	public int hashCode() {
		return toString().hashCode();
	}

	@Override
	public String toString() {
		return this.ontologyInputStream + " " + this.bayesianNetworkInputStream
				+ " " + this.queryInputStream + " " + this.outputFileName + " "
				+ this.problogDirectory + " " + this.showingLog + " "
				+ this.problogNeeded;
	}

}

@@ -845,20 +845,16 @@
 tStream(
-%0A%09%09%09
 InputStr
@@ -2067,22 +2067,16 @@
 .equals(
-%0A%09%09%09%09%09
 other.ge
@@ -2146,24 +2146,16 @@
 .equals(
-%0A%09%09%09%09%09%09%09
 other.ge
@@ -2214,24 +2214,16 @@
 Stream()
-%0A%09%09%09%09%09%09%09
 .equals(
@@ -2346,16 +2346,8 @@
 ry()
-%0A%09%09%09%09%09%09%09
 .equ
@@ -2427,22 +2427,17 @@
 ngLog())
-%0A%09%09%09%09%09
+ 
 && (isPr
@@ -2671,21 +2671,17 @@
 utStream
-%0A%09%09%09%09
+ 
 + %22 %22 + 
@@ -2703,25 +2703,29 @@
 Stream + %22 %22
- 
+%0A%09%09%09%09
 + this.outpu
@@ -2735,29 +2735,25 @@
 leName + %22 %22
-%0A%09%09%09%09
+ 
 + this.probl
@@ -2789,29 +2789,25 @@
 ingLog + %22 %22
-%0A%09%09%09%09
+ 
 + this.probl

Make cosmetic change