1 /*
2 * @(#)$Id: BatchResultSet.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Ueli Kurmann, igesture@uelikurmann.ch
5 *
6 * Purpose : Container for a set of batch results.
7 *
8 * -----------------------------------------------------------------------
9 *
10 * Revision Information:
11 *
12 * Date Who Reason
13 *
14 * Dec 26, 2006 ukurmann Initial Release
15 * Mar 22, 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
33 /**
34 * Container for a set of batch results.
35 *
36 * @version 1.0 Dec 2006
37 * @author Ueli Kurmann, igesture@uelikurmann.ch
38 * @author Beat Signer, signer@inf.ethz.ch
39 */
40 public class BatchResultSet {
41
42 List<BatchResult> results;
43
44
45 /**
46 * Constructs a new batch result set.
47 */
48 public BatchResultSet() {
49 results = new ArrayList<BatchResult>();
50 }
51
52
53 /**
54 * Adds a batch result.
55 *
56 * @param result the batch result to be added.
57 */
58 public void addResult(BatchResult result) {
59 results.add(result);
60 } // addResult
61
62
63 /**
64 * Returns a list with all batch results.
65 *
66 * @return the list with all batch results.
67 */
68 public List<BatchResult> getBatchResults() {
69 return results;
70 } // getBatchResults
71
72 }