comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CalculationResult.java @ 3814:8083f6384023

merged flys-artifacts/pre2.6-2012-01-04
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:56 +0200
parents 17648043429f
children a441be7f1589
comparison
equal deleted inserted replaced
1491:2a00f4849738 3814:8083f6384023
1 package de.intevation.flys.artifacts.model;
2
3 import java.io.Serializable;
4
5 /**
6 * Wraps result(s) of a Calculation and eventual error reports.
7 */
8 public class CalculationResult
9 implements Serializable
10 {
11 protected Object data;
12 protected Calculation report;
13
14 public CalculationResult() {
15 }
16
17 /**
18 * @param report report (e.g. error messages).
19 */
20 public CalculationResult(Object data, Calculation report) {
21 this.data = data;
22 this.report = report;
23 }
24
25 public Object getData() {
26 return data;
27 }
28
29 public void setData(Object data) {
30 this.data = data;
31 }
32
33 public Calculation getReport() {
34 return report;
35 }
36
37 public void setReport(Calculation report) {
38 this.report = report;
39 }
40 }
41 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org