source: ether_statistics/service/implementation/gov/noaa/pmel/sgt/beans/DataHolder.java @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 2.1 KB
Line 
1/*
2 * $Id: DataHolder.java,v 1.2 2003/08/22 23:02:34 dwd Exp $
3 *
4 * This software is provided by NOAA for full, free and open release.  It is
5 * understood by the recipient/user that NOAA assumes no liability for any
6 * errors contained in the code.  Although this software is released without
7 * conditions or restrictions in its use, it is expected that appropriate
8 * credit be given to its author and to the National Oceanic and Atmospheric
9 * Administration should the software be included by the recipient as an
10 * element in other product development.
11 */
12
13package gov.noaa.pmel.sgt.beans;
14
15import gov.noaa.pmel.sgt.dm.SGTData;
16import gov.noaa.pmel.sgt.Attribute;
17
18/**
19 * Object to associate <code>SGTData</code>, <code>Attribute</code>,
20 * <code>Panel</code>, and <code>DataGroup</code>.
21 *
22 * @author Donald Denbo
23 * @version $Revision: 1.2 $, $Date: 2003/08/22 23:02:34 $
24 * @since 3.0
25 **/
26class DataHolder {
27  /**
28   * @undirected
29   * @supplierCardinality 1
30   * @link aggregation
31   * @label data
32   */
33  private SGTData data_;
34
35  /**
36   * @link aggregation
37   * @undirected
38   * @supplierCardinality 1
39   * @label attr
40   */
41  private Attribute attr_;
42
43  /**
44   * @supplierCardinality 1
45   * @label pHolder
46   */
47  private PanelHolder pHolder_;
48
49  /**
50   * @supplierCardinality 1
51   * @label dataGroup */
52  private DataGroup dataGroup_;
53
54  /**
55   * @label legend
56   */
57  private Legend legend_;
58
59  /**
60   * @label dModel
61   */
62  private DataModel dModel_;
63
64  public DataHolder(DataModel model, SGTData data, Attribute attr,
65                    PanelHolder pHolder, DataGroup dataGroup,
66                    Legend legend) {
67    dModel_ = model;
68    data_ = data;
69    attr_ = attr;
70    pHolder_ = pHolder;
71    dataGroup_ = dataGroup;
72    legend_ = legend;
73  }
74
75  SGTData getData() {
76    return data_;
77  }
78
79  Attribute getAttribute() {
80    return attr_;
81  }
82
83  PanelHolder getPanelHolder() {
84    return pHolder_;
85  }
86
87  DataGroup getDataGroup() {
88    return dataGroup_;
89  }
90
91  Legend getLegend() {
92    return legend_;
93  }
94
95  public void notifyPanel() throws DataTargetMismatchException {
96    dModel_.getPage().findPanel(pHolder_).addData(data_, attr_, dataGroup_, legend_);
97  }
98}
Note: See TracBrowser for help on using the repository browser.