1 /*
2 * @(#)$Id: BatchProcessContainer.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Ueli Kurmann, igesture@uelikurmann.ch
5 *
6 * Purpose : Used for the configurations of the batch process.
7 *
8 * -----------------------------------------------------------------------
9 *
10 * Revision Information:
11 *
12 * Date Who Reason
13 *
14 * Dec 26, 2006 ukurmann Initial Release
15 * Mar 20, 2007 bsigner Cleanup
16 *
17 * -----------------------------------------------------------------------
18 *
19 * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20 *
21 * This software is the proprietary information of ETH Zurich.
22 * Use is subject to license terms.
23 *
24 */
25
26
27 package org.ximtec.igesture.batch;
28
29 import java.util.ArrayList;
30 import java.util.List;
31
32 import org.ximtec.igesture.batch.core.BatchAlgorithm;
33 import org.ximtec.igesture.core.GestureSet;
34
35
36 /**
37 * Used for the configurations of the batch process.
38 *
39 * @version 1.0 Dec 2006
40 * @author Ueli Kurmann, igesture@uelikurmann.ch
41 * @author Beat Signer, signer@inf.ethz.ch
42 */
43 public class BatchProcessContainer {
44
45 private List<BatchAlgorithm> algorithms;
46
47 private List<GestureSet> sets;
48
49
50 /**
51 * Constructs a new batch process container.
52 *
53 */
54 public BatchProcessContainer() {
55 this.algorithms = new ArrayList<BatchAlgorithm>();
56 this.sets = new ArrayList<GestureSet>();
57 }
58
59
60 /**
61 * Returns the batch algorithm.
62 *
63 * @return the batch algorithm.
64 */
65 public List<BatchAlgorithm> getAlgorithms() {
66 return algorithms;
67 } // getAlgorithms
68
69
70 /**
71 * Adds a batch algorithm.
72 *
73 * @param algorithm the algorithm to be added.
74 */
75 public void addAlgorithm(BatchAlgorithm algorithm) {
76 algorithms.add(algorithm);
77 } // addAlgorithm
78
79
80 /**
81 * Returns a list of gesture sets.
82 *
83 * @return list of gesture sets.
84 */
85 public List<GestureSet> getGestureSets() {
86 return sets;
87 } // getGestureSets
88
89
90 /**
91 * Adds a gesture set.
92 *
93 * @param set the gesture set to be added.
94 */
95 public void addGestureSet(GestureSet set) {
96 sets.add(set);
97 } // addGestureSet
98
99 }