A class to represent a time series data set.  
 More...
#include <TimeSeriesDataSet.h>
A class to represent a time series data set. 
This class represents a view on a DataSet that contains observations of time series. A time series represents the variation of the values of a property over time. 
A TimeSeriesDataSet can contain one or more properties observed over time.
- See also
 - ObservationDataSet ObservationDatasSetType TimeSeriesDataSetType 
 
Definition at line 69 of file TimeSeriesDataSet.h.
 
◆ TimeSeriesDataSet() [1/3]
Constructor. 
- Parameters
 - 
  
    | ds | The data set that contains the time series observations.  | 
    | type | The observation data set type.  | 
    | propNames | The names of the properties that contains the time series values | 
  
   
- Note
 - It will take the ownership of the input pointer. 
 
 
 
◆ TimeSeriesDataSet() [2/3]
Constructor. 
- Parameters
 - 
  
    | ds | The data set that contains the time series observations.  | 
    | type | The observation data set type.  | 
    | propNames | The names of the properties that contains the time series values  | 
    | id | The time series id | 
  
   
- Note
 - It will take the ownership of the input pointer. 
 
 
 
◆ TimeSeriesDataSet() [3/3]
      
        
          | te::st::TimeSeriesDataSet::TimeSeriesDataSet  | 
          ( | 
          ObservationDataSet *  | 
          obs,  | 
        
        
           | 
           | 
          const std::vector< std::string > &  | 
          propNames,  | 
        
        
           | 
           | 
          const std::string &  | 
          id  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | obs | The data set that contains the time series observations.  | 
    | propNames | The names of the properties that contains the time series values  | 
    | id | The time series id | 
  
   
- Note
 - It will take the ownership of the given pointer. 
 
 
 
◆ ~TimeSeriesDataSet()
  
  
      
        
          | virtual te::st::TimeSeriesDataSet::~TimeSeriesDataSet  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
It returns the trajectory geometry property. 
- Returns
 - The trajectory geometry property.
 
- Note
 - The caller will NOT take the ownership of the returned pointer.
 
It returns the trajectory datetime property.
- Returns
 - The trajectory datetime property.
 
- Note
 - The caller will NOT take the ownership of the returned pointer.
 
Virtual destructor. 
 
 
◆ getDouble() [1/2]
      
        
          | double te::st::TimeSeriesDataSet::getDouble  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the observed value as double pointed by the internal cursor. 
- Returns
 - A pointer to the observed value as double pointed by the internal cursor. 
 
 
 
◆ getDouble() [2/2]
      
        
          | double te::st::TimeSeriesDataSet::getDouble  | 
          ( | 
          std::size_t  | 
          idx | ) | 
           const | 
        
      
 
It returns the idx-th observed value as double pointed by the internal cursor. 
- Returns
 - A pointer to the idx-th observed value as double pointed by the internal cursor. 
 
 
 
◆ getGeometry()
      
        
          | std::unique_ptr<te::gm::Geometry> te::st::TimeSeriesDataSet::getGeometry  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the geometry pointed by the internal cursor. 
- Returns
 - A pointer to the geometry pointed by the internal cursor.
 
- Note
 - The caller will take the ownership of the returned pointer. 
  
 
 
◆ getId()
      
        
          | std::string te::st::TimeSeriesDataSet::getId  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the identifier associated to the time series. 
- Returns
 - The identifier associated to the time series. 
 
 
 
◆ getInt() [1/2]
      
        
          | int te::st::TimeSeriesDataSet::getInt  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the observed value as double pointed by the internal cursor. 
- Returns
 - A pointer to the observed value as double pointed by the internal cursor.
 
- Note
 - It returns a 32-bit integer. 
 
 
 
◆ getInt() [2/2]
      
        
          | int te::st::TimeSeriesDataSet::getInt  | 
          ( | 
          std::size_t  | 
          idx | ) | 
           const | 
        
      
 
It returns the idx-th observed value as integer pointed by the internal cursor. 
- Returns
 - A pointer to the idx-th observed value as integer pointed by the internal cursor.
 
- Note
 - It returns a 32-bit integer. 
 
 
 
◆ getObservationSet()
It returns the data set that contains the time series observations. 
- Returns
 - A pointer to the data set that contains the time series observations.
 
- Note
 - The caller will NOT take the ownership of the input pointer. 
 
 
 
◆ getTemporalExtent()
It returns the temporal extent of the time series observations. 
- Returns
 - The temporal extent of the trajectory observations.
 
- Note
 - The caller will NOT take the ownership of the output pointer. 
 
 
 
◆ getTime()
It returns the time pointed by the internal cursor. 
- Returns
 - A pointer to the time pointed by the internal cursor.
 
- Note
 - The caller will take the ownership of the returned pointer. 
  
 
 
◆ getTimeSeries() [1/2]
It returns the time series from the DataSet. 
This method encapsulates all observations of this DataSet as a TimeSeries type associated to a given interpolator.
- Parameters
 - 
  
    | propName | The name of the observed property to be considered  | 
    | interp | The time series interpolator. | 
  
   
- Returns
 - The time series associated to a given interpolator.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
 
 
◆ getTimeSeries() [2/2]
It returns the time series from the DataSet. 
This method encapsulates all observations of this DataSet as a TimeSeries type associated to a given interpolator.
- Parameters
 - 
  
    | interp | The time series interpolator. | 
  
   
- Returns
 - The time series associated to a given interpolator.
 
- Note
 - The caller will take the ownership of the returned pointer. 
 
- 
It uses the first observed property to generate the time series. 
 
 
 
◆ getTimeSeriesSet()
It returns all time series from the DataSet. 
This method encapsulates all observations of this DataSet as a set of TimeSeries associated to a given interpolator.
- Parameters
 - 
  
    | interp | The time series interpolator.  | 
    | vPropName | The property name that contains the attribute values associated to a time series  | 
    | result | The returned set of time series. | 
  
   
- Note
 - The caller will take the ownership of the returned pointers. 
 
 
 
◆ getValue() [1/2]
It returns the observed value pointed by the internal cursor. 
- Returns
 - A pointer to the observed value pointed by the internal cursor.
 
- Note
 - The caller will take the ownership of the returned pointer. 
  
 
 
◆ getValue() [2/2]
It returns the idx-th observed value pointed by the internal cursor. 
- Returns
 - A pointer to the idx-th observed value pointed by the internal cursor.
 
- Note
 - The caller will take the ownership of the returned pointer. 
  
 
 
◆ getValuePropNames()
      
        
          | const std::vector<std::string>& te::st::TimeSeriesDataSet::getValuePropNames  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the indexes of the DataSet properties that contains the values associated to the time series. 
- Returns
 - The indexes of the DataSet properties that contains the observed values. 
 
 
 
◆ isAfterEnd()
      
        
          | bool te::st::TimeSeriesDataSet::isAfterEnd  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ isAtBegin()
      
        
          | bool te::st::TimeSeriesDataSet::isAtBegin  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ isAtEnd()
      
        
          | bool te::st::TimeSeriesDataSet::isAtEnd  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ isBeforeBegin()
      
        
          | bool te::st::TimeSeriesDataSet::isBeforeBegin  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ moveBeforeFirst()
      
        
          | bool te::st::TimeSeriesDataSet::moveBeforeFirst  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ moveFirst()
      
        
          | bool te::st::TimeSeriesDataSet::moveFirst  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ moveLast()
      
        
          | bool te::st::TimeSeriesDataSet::moveLast  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ moveNext()
      
        
          | bool te::st::TimeSeriesDataSet::moveNext  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ movePrevious()
      
        
          | bool te::st::TimeSeriesDataSet::movePrevious  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ release()
It releases all internal pointers, returning its internal DataSet and invalidating itself. 
- Returns
 - A pointer to the internal DataSet that contains the observations.
 
- Note
 - This method is used when the user is interested only in its internal DataSet 
 
- 
The caller will take the ownership of the returned pointer. 
 
 
 
◆ setId()
      
        
          | void te::st::TimeSeriesDataSet::setId  | 
          ( | 
          const std::string &  | 
          id | ) | 
           | 
        
      
 
It sets the identifier associated to the time series. 
- Parameters
 - 
  
    | id | The identifier associated to the time series.  | 
  
   
 
 
◆ setValuePropNames()
      
        
          | void te::st::TimeSeriesDataSet::setValuePropNames  | 
          ( | 
          const std::vector< std::string > &  | 
          n | ) | 
           | 
        
      
 
It sets the names of the DataSet properties that contains the values associated to the time series. 
- Parameters
 - 
  
    | n | The names of the DataSet properties that contains the time series values.  | 
  
   
 
 
◆ size()
      
        
          | std::size_t te::st::TimeSeriesDataSet::size  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the size of the time series observation set. 
- Returns
 - The observation set size of the time series. 
 
 
 
◆ TimeSeriesDataSetLayer
◆ m_id
  
  
      
        
          | std::string te::st::TimeSeriesDataSet::m_id | 
         
       
   | 
  
private   | 
  
 
 
◆ m_obsDs
◆ m_vlPropNames
  
  
      
        
          | std::vector<std::string> te::st::TimeSeriesDataSet::m_vlPropNames | 
         
       
   | 
  
private   | 
  
 
The names of the properties that contain the time series values. 
Definition at line 339 of file TimeSeriesDataSet.h.
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/st/core/timeseries/TimeSeriesDataSet.h