1
2
3 package org.textensor.stochdiff.model;
4
5 import java.util.ArrayList;
6 import java.util.HashMap;
7
8 import org.textensor.report.E;
9 import org.textensor.stochdiff.inter.AddableTo;
10
11 public class OutputScheme implements AddableTo
12 {
13 public ArrayList<OutputSet> outputSets;
14 public HashMap<String, OutputSet> outputSetHM;
15
16 public void add(Object obj)
17 {
18 if (outputSets == null)
19 {
20 outputSets = new ArrayList<OutputSet>();
21 }
22 if (obj instanceof OutputSet)
23 {
24 OutputSet outset = (OutputSet)obj;
25 outputSets.add(outset);
26 }
27 else
28 {
29 E.error("cant add " + obj);
30 }
31 }
32
33
34 public void print()
35 {
36 System.out.println("<OutputScheme>");
37 for (int i = 0; i < outputSets.size(); i++)
38 {
39 outputSets.get(i).print();
40 }
41 }
42
43 }