All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TimeSeriesDataSetInfo.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file TimeSeriesDataSetInfo.h
22 
23  \brief This file contains a class called TimeSeriesDataSetInfo
24 */
25 
26 #ifndef __TERRALIB_ST_INTERNAL_TIMESERIESDATASETINFO_H
27 #define __TERRALIB_ST_INTERNAL_TIMESERIESDATASETINFO_H
28 
29 //ST
30 #include "../../Config.h"
31 #include "../observation/ObservationDataSetInfo.h"
32 
33 //STL
34 #include <vector>
35 
36 namespace te { namespace da { class DataSourceInfo; } }
37 
38 namespace te
39 {
40  namespace st
41  {
42  /*!
43  \class TimeSeriesDataSetInfo
44 
45  \brief A class that contains infos about a DataSet that contains
46  observations of one or more time series.
47 
48  Time series: Geometry, Time -> Value.
49 
50  This class contains information about a DataSet that
51  contains observations of one or more time series.
52  This information includes:
53  (1) the DataSource which it is from and the DataSet name
54  (2) the DataSet properties that contain the time and the observed
55  attribute values (it can be one or more observed attributes) and the
56  identity of each time series.
57 
58  \sa ObservationDataSetInfo
59  */
61  {
62  public:
63 
64  /*!
65  \brief Constructor.
66 
67  \param dsinfo Infos about the DataSource.
68  \param dsName The DataSet name.
69  \param tPropIdx The property index that contains the times associated to the time series.
70  \param vPropIdx The property index that contains the attribute values associated to the time series.
71  \param gPropIdx The property index that contains the geometry associated to the time series.
72  \param idPropIdx The property index that contains the identification of each time series.
73  \param id The identification of the time series that this DataSet contains.
74  */
75  TimeSeriesDataSetInfo(const te::da::DataSourceInfo& dsinfo, const std::string& dsName,
76  int tPropIdx, int vPropIdx, int gPropIdx, int idPropIdx, const std::string& id);
77 
78  /*!
79  \brief Constructor.
80 
81  \param dsinfo Infos about the DataSource.
82  \param dsName The DataSet name.
83  \param tPropIdx The property index that contains the times associated to the time series.
84  \param vPropIdxs The property indexes that contain the attribute values associated to the time series.
85  \param gPropIdx The property index that contains the geometry associated to the time series.
86  \param idPropIdx The property index that contains the identification of each time series.
87  \param id The identification of the time series that this DataSet contains.
88  */
89  TimeSeriesDataSetInfo(const te::da::DataSourceInfo& dsinfo, const std::string& dsName,
90  int tPropIdx, const std::vector<int>& vPropIdxs, int gPropIdx,
91  int idPropIdx, const std::string& id);
92 
93  /*!
94  \brief Constructor.
95 
96  \param info Infos about the DataSource and DataSet that contains the trajectory observations
97  \param idPropIdx The property index that contains the identification of each trajectory.
98  \param id The identification of the trajectory hat this DataSet contains.
99  */
100  TimeSeriesDataSetInfo(const ObservationDataSetInfo& info, int idPropIdx, const std::string& id);
101 
102  /*!
103  \brief It returns information about the DataSet that contians the time series observations
104 
105  \return A reference to the internal ObservationDataSetInfo.
106  */
107  const ObservationDataSetInfo& getObservationDataSetInfo() const;
108 
109  /*!
110  \brief It returns information about the DataSource from which the DataSet comes.
111 
112  \return A reference to the internal DataSourceInfo.
113  */
114  const te::da::DataSourceInfo& getDataSourceInfo() const;
115 
116  /*!
117  \brief It returns the indexes of the DataSet properties that contains the times associated to the time series.
118 
119  \return The indexes of the DataSet properties that contains the time.
120  */
121  const std::vector<int>& getTimePropIdxs() const;
122 
123  /*!
124  \brief It returns the indexes of the DataSet properties that contains the values associated to the time series.
125 
126  \return The indexes of the DataSet properties that contains the observed values.
127  */
128  const std::vector<int>& getValuePropIdxs() const;
129 
130  /*!
131  \brief It returns the index of the DataSet property that contains the location
132  of the time series.
133 
134  \return The index of the DataSet property that contains the location
135  of the time series.
136  */
137  int getGeomPropIdx() const;
138 
139  /*!
140  \brief It returns the index of the DataSet property that contains the
141  identification of each time series.
142 
143  \return The index of the DataSet property that contains
144  the identification of each time series.
145  */
146  int getIdPropIdx() const;
147 
148  /*!
149  \brief It returns the time series id that this DataSet contains
150 
151  \return The time series id.
152  */
153  std::string getId() const;
154 
155  /*! \brief Virtual destructor. */
156  virtual ~TimeSeriesDataSetInfo();
157 
158  protected:
159 
160  ObservationDataSetInfo m_obsDsInfo; //!< Infos about the DataSource and DataSet that contains the time series observations
161  std::vector<int> m_vlPropIdxs; //!< The indexes of the properties that contain the time series values.
162  int m_idPropIdx; //!< The property index that contains the identification of each time series.
163  std::string m_id; //!< The time series id that this DataSet contains
164  };
165  } // end namespace st
166 } // end namespace te
167 
168 #endif // __TERRALIB_ST_INTERNAL_TIMESERIESDATASETINFO_H
169 
A class that contains infos about a DataSet that contains observations of one or more time series...
A class that contains infos about a DataSet that contains observations.
A class that represents a data source component.
ObservationDataSetInfo m_obsDsInfo
Infos about the DataSource and DataSet that contains the time series observations.
#define TESTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:136
std::vector< int > m_vlPropIdxs
The indexes of the properties that contain the time series values.
int m_idPropIdx
The property index that contains the identification of each time series.
std::string m_id
The time series id that this DataSet contains.