te::st::ObservationDataSet Class Reference

A class to represent a DataSet that contains observations. More...

#include <ObservationDataSet.h>

Inheritance diagram for te::st::ObservationDataSet:

Public Member Functions

Constructors
 ObservationDataSet (te::da::DataSet *ds, const ObservationDataSetType &obst)
 Constructor. More...
 
 ObservationDataSet (te::da::DataSet *ds, const ObservationDataSetType &obst, te::dt::DateTimePeriod *text)
 Constructor. More...
 
 ObservationDataSet (te::da::DataSet *ds, const ObservationDataSetType &obst, te::dt::DateTimePeriod *text, te::gm::Geometry *sext)
 Constructor. More...
 
te::da::DataSetgetData () const
 It returns the DataSet that contains the observations. More...
 
const ObservationDataSetTypegetType () const
 It returns a reference to the ObservationDataSetType. More...
 
const te::gm::GeometrygetSpatialExtent ()
 It returns the spatial extent of the observations, when there is an observed value of geometry type. More...
 
void setSpatialExtent (te::gm::Geometry *ext)
 It sets the spatial extent of the observations, when there is an observed value of geometry type. More...
 
const te::dt::DateTimePeriodgetTemporalExtent ()
 It returns the temporal extent of the observations. More...
 
void setTemporalExtent (te::dt::DateTimePeriod *ext)
 It sets the temporal extent of the observations, when there is an observed value of geometry type. More...
 
Methods to traverse the observation set and to check the

internal cursor pointer

bool moveNext ()
 
bool movePrevious ()
 
bool moveFirst ()
 
bool moveBeforeFirst ()
 
bool moveLast ()
 
bool isAtBegin () const
 
bool isBeforeBegin () const
 
bool isAtEnd () const
 
bool isAfterEnd () const
 
std::unique_ptr< ObservationgetObservation () const
 It returns the observation pointed by the internal cursor. More...
 

Friends

class ObservationDataSetLayer
 
class TimeSeriesDataSet
 
class TrajectoryDataSet
 

Methods to return the properties associated to observations.

std::unique_ptr< te::da::DataSetm_ds
 
ObservationDataSetType m_obst
 A data set that contains observations. More...
 
const te::dt::DateTimePropertygetBeginTimeProperty () const
 It returns the property of the phenomenon beginning time. More...
 
const te::dt::DateTimePropertygetEndTimeProperty () const
 It returns the property of the phenomenon end time. More...
 
const te::dt::DateTimePropertygetVlBeginTimeProperty () const
 It returns the property of the valid beginning time. More...
 
const te::dt::DateTimePropertygetVlEndTimeProperty () const
 It returns the property of the valid end time. More...
 
const te::dt::DateTimePropertygetRsTimeProperty () const
 It returns the property of the result time. More...
 
virtual ~ObservationDataSet ()
 Virtual destructor. More...
 
std::unique_ptr< te::da::DataSetrelease ()
 It releases all internal pointers, returning its internal DataSet and invalidating itself. More...
 

Detailed Description

A class to represent a DataSet that contains observations.

This class implements a view on a data set. It encapsulates a DataSet as a ObservationDataSet. An observation data set is composed of a finite number of homogeneous observations, that is, every observation has the same number and type of observed values.

See also
DataSet Observation DataSource

Definition at line 82 of file ObservationDataSet.h.

Constructor & Destructor Documentation

◆ ObservationDataSet() [1/3]

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
const ObservationDataSetType obst 
)

Constructor.

It constructs an observation data set, based on the given DataSet and ObservationDataSetType

Parameters
dsthe DataSet
obstextra information about the properies of the DataSet
Note
It will take the ownership of the DataSet pointer

◆ ObservationDataSet() [2/3]

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
const ObservationDataSetType obst,
te::dt::DateTimePeriod text 
)

Constructor.

It constructs an observation data set, based on the given DataSet and ObservationDataSetType

Parameters
dsThe DataSet.
obstextra information about the properies of the DataSet
textthe temporal extent
Note
It will take the ownership of the given pointers

◆ ObservationDataSet() [3/3]

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
const ObservationDataSetType obst,
te::dt::DateTimePeriod text,
te::gm::Geometry sext 
)

Constructor.

It constructs an observation data set, based on the given DataSet and ObservationDataSetType

Parameters
dsThe DataSet.
obstextra information about the properies of the DataSet
textthe temporal extent
sextthe spatial extent
Note
It will take the ownership of the given pointers

◆ ~ObservationDataSet()

virtual te::st::ObservationDataSet::~ObservationDataSet ( )
virtual

Virtual destructor.

Member Function Documentation

◆ getBeginTimeProperty()

const te::dt::DateTimeProperty* te::st::ObservationDataSet::getBeginTimeProperty ( ) const

It returns the property of the phenomenon beginning time.

Returns
The property of the phenomenon beginning time.
Note
The caller will NOT take the ownership of the returned pointer.

◆ getData()

te::da::DataSet* te::st::ObservationDataSet::getData ( ) const

It returns the DataSet that contains the observations.

Returns
A pointer to the internal DataSet that contains the observations.
Note
The caller will NOT take the ownership of the returned pointer.

◆ getEndTimeProperty()

const te::dt::DateTimeProperty* te::st::ObservationDataSet::getEndTimeProperty ( ) const

It returns the property of the phenomenon end time.

Returns
The property of the phenomenon end time.
Note
The caller will NOT take the ownership of the returned pointer.

◆ getObservation()

std::unique_ptr<Observation> te::st::ObservationDataSet::getObservation ( ) const

It returns the observation pointed by the internal cursor.

Returns
The observation pointed by the internal cursor.
Note
The caller will take the ownership of the output pointer.

◆ getRsTimeProperty()

const te::dt::DateTimeProperty* te::st::ObservationDataSet::getRsTimeProperty ( ) const

It returns the property of the result time.

Returns
The property of the result time.
Note
The caller will NOT take the ownership of the returned pointer.

◆ getSpatialExtent()

const te::gm::Geometry* te::st::ObservationDataSet::getSpatialExtent ( )

It returns the spatial extent of the observations, when there is an observed value of geometry type.

Returns
The spatial extent of the observations.
Note
The caller will NOT take the ownership of the returned pointer.

◆ getTemporalExtent()

const te::dt::DateTimePeriod* te::st::ObservationDataSet::getTemporalExtent ( )

It returns the temporal extent of the observations.

Returns
The temporal extent of the observations.
Note
The caller will NOT take the ownership of the returned pointer.

◆ getType()

const ObservationDataSetType& te::st::ObservationDataSet::getType ( ) const

It returns a reference to the ObservationDataSetType.

Returns
A reference to the internal ObservationDataSetType.

◆ getVlBeginTimeProperty()

const te::dt::DateTimeProperty* te::st::ObservationDataSet::getVlBeginTimeProperty ( ) const

It returns the property of the valid beginning time.

Returns
The property of the valid beginning time.
Note
The caller will NOT take the ownership of the returned pointer.

◆ getVlEndTimeProperty()

const te::dt::DateTimeProperty* te::st::ObservationDataSet::getVlEndTimeProperty ( ) const

It returns the property of the valid end time.

Returns
The property of the valid end time.
Note
The caller will NOT take the ownership of the returned pointer.

◆ isAfterEnd()

bool te::st::ObservationDataSet::isAfterEnd ( ) const

◆ isAtBegin()

bool te::st::ObservationDataSet::isAtBegin ( ) const

◆ isAtEnd()

bool te::st::ObservationDataSet::isAtEnd ( ) const

◆ isBeforeBegin()

bool te::st::ObservationDataSet::isBeforeBegin ( ) const

◆ moveBeforeFirst()

bool te::st::ObservationDataSet::moveBeforeFirst ( )

◆ moveFirst()

bool te::st::ObservationDataSet::moveFirst ( )

◆ moveLast()

bool te::st::ObservationDataSet::moveLast ( )

◆ moveNext()

bool te::st::ObservationDataSet::moveNext ( )

◆ movePrevious()

bool te::st::ObservationDataSet::movePrevious ( )

◆ release()

std::unique_ptr<te::da::DataSet> te::st::ObservationDataSet::release ( )
protected

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.

◆ setSpatialExtent()

void te::st::ObservationDataSet::setSpatialExtent ( te::gm::Geometry ext)

It sets the spatial extent of the observations, when there is an observed value of geometry type.

Parameters
extThe spatial extent of the observations.
Note
It will take the ownership of the given pointer.

◆ setTemporalExtent()

void te::st::ObservationDataSet::setTemporalExtent ( te::dt::DateTimePeriod ext)

It sets the temporal extent of the observations, when there is an observed value of geometry type.

Parameters
extThe temporal extent of the observations.
Note
It will take the ownership of the given pointer.

Friends And Related Function Documentation

◆ ObservationDataSetLayer

friend class ObservationDataSetLayer
friend

Definition at line 84 of file ObservationDataSet.h.

◆ TimeSeriesDataSet

friend class TimeSeriesDataSet
friend

Definition at line 86 of file ObservationDataSet.h.

◆ TrajectoryDataSet

friend class TrajectoryDataSet
friend

Definition at line 85 of file ObservationDataSet.h.

Member Data Documentation

◆ m_ds

std::unique_ptr<te::da::DataSet> te::st::ObservationDataSet::m_ds
private

Definition at line 286 of file ObservationDataSet.h.

◆ m_obst

ObservationDataSetType te::st::ObservationDataSet::m_obst
private

A data set that contains observations.

Definition at line 287 of file ObservationDataSet.h.


The documentation for this class was generated from the following file: