sascha@709: package de.intevation.flys.artifacts.model; sascha@709: sascha@709: import java.io.Serializable; sascha@709: felix@1691: /** felix@1691: * Wraps result(s) of a Calculation and eventual error reports. felix@1691: */ sascha@709: public class CalculationResult sascha@709: implements Serializable sascha@709: { sascha@709: protected Object data; sascha@709: protected Calculation report; sascha@709: sascha@709: public CalculationResult() { sascha@709: } sascha@709: felix@1691: /** felix@1691: * @param report report (e.g. error messages). felix@1691: */ sascha@709: public CalculationResult(Object data, Calculation report) { sascha@709: this.data = data; sascha@709: this.report = report; sascha@709: } sascha@709: sascha@709: public Object getData() { sascha@709: return data; sascha@709: } sascha@709: sascha@709: public void setData(Object data) { sascha@709: this.data = data; sascha@709: } sascha@709: sascha@709: public Calculation getReport() { sascha@709: return report; sascha@709: } sascha@709: sascha@709: public void setReport(Calculation report) { sascha@709: this.report = report; sascha@709: } sascha@709: } sascha@709: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :