All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

te::da::DataSetgetData () const
 It returns the DataSet that contains the observations. More...
 
std::auto_ptr< ObservationgetObservation () const
 It returns the observation pointed by the internal cursor. More...
 
const te::gm::EnvelopegetSpatialExtent ()
 It returns the spatial extent of the observations, when there is an observed value of geometry type. More...
 
te::dt::DateTimePeriodgetTemporalExtent ()
 It returns the temporal extent of the observations. More...
 
const ObservationDataSetTypegetType () const
 It returns a reference to the ObservationDataSetType. More...
 
void setSpatialExtent (const te::gm::Envelope &ext)
 It sets the spatial extent of the observations, when there is an observed value of geometry type. 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...
 
virtual ~ObservationDataSet ()
 It returns the property of the phenomenon beginning time. More...
 
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, const te::gm::Envelope &sext)
 Constructor. More...
 
 ObservationDataSet (te::da::DataSet *ds, int phTimeIdx, int obsPropIdx, int geomPropIdx=-1)
 Constructor. More...
 
 ObservationDataSet (te::da::DataSet *ds, const std::vector< int > &phTimeIdxs, const std::vector< int > &obsPropIdxs, int geomPropIdx=-1)
 Constructor. More...
 
 ObservationDataSet (te::da::DataSet *ds, int phTimeIdx, int obsPropIdx, int geomPropIdx, te::dt::DateTimePeriod *text)
 Constructor. More...
 
 ObservationDataSet (te::da::DataSet *ds, int phTimeIdx, int obsPropIdx, int geomPropIdx, te::dt::DateTimePeriod *text, const te::gm::Envelope &sext)
 Constructor. More...
 
 ObservationDataSet (te::da::DataSet *ds, const std::vector< int > &phTimeIdxs, const std::vector< int > &obsPropIdxs, int geomPropIdx, te::dt::DateTimePeriod *text)
 Constructor. More...
 
 ObservationDataSet (te::da::DataSet *ds, const std::vector< int > &phTimeIdxs, const std::vector< int > &obsPropIdxs, int geomPropIdx, te::dt::DateTimePeriod *text, const te::gm::Envelope &sext)
 Constructor. 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
 

Private Attributes

std::auto_ptr< te::da::DataSetm_ds
 
ObservationDataSetType m_obst
 A data set that contains observations. More...
 
te::gm::Envelope m_spExtent
 Its temporal extent. More...
 
std::auto_ptr
< te::dt::DateTimePeriod
m_tpExtent
 An observation data set type that refers to m_ds. 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 80 of file ObservationDataSet.h.

Constructor & Destructor Documentation

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

Definition at line 37 of file ObservationDataSet.cpp.

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

Definition at line 45 of file ObservationDataSet.cpp.

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
const ObservationDataSetType obst,
te::dt::DateTimePeriod text,
const te::gm::Envelope 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

Definition at line 53 of file ObservationDataSet.cpp.

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
int  phTimeIdx,
int  obsPropIdx,
int  geomPropIdx = -1 
)

Constructor.

Parameters
dsThe DataSet.
phTimeIdxThe index of the property that contains the phenomenon time.
obsPropIdxThe index of the property that is observed.
geomPropIdxThe index of the observed property that contains the geometry.
Note
It will take the ownership of the DataSet pointer

Definition at line 62 of file ObservationDataSet.cpp.

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
const std::vector< int > &  phTimeIdxs,
const std::vector< int > &  obsPropIdxs,
int  geomPropIdx = -1 
)

Constructor.

Parameters
dsthe DataSet
phTimeIdxsThe indexes of the property that contains the begin and final phenomenon time.
obsPropIdxThe indexes of the properties that are observed.
geomPropIdxThe index of the observed property that contains the geometry.
Note
It will take the ownership of the DataSet pointer

Definition at line 71 of file ObservationDataSet.cpp.

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
int  phTimeIdx,
int  obsPropIdx,
int  geomPropIdx,
te::dt::DateTimePeriod text 
)

Constructor.

Parameters
dsThe DataSet
phTimeIdxThe index of the property that contains the phenomenon time.
obsPropIdxThe index of the property that is observed.
geomPropIdxThe index of the observed property that contains the geometry.
textThe temporal extent
sextThe spatial extent
Note
It will take the ownership of the DataSet pointer

Definition at line 80 of file ObservationDataSet.cpp.

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
int  phTimeIdx,
int  obsPropIdx,
int  geomPropIdx,
te::dt::DateTimePeriod text,
const te::gm::Envelope sext 
)

Constructor.

Parameters
dsThe DataSet
phTimeIdxThe index of the property that contains the phenomenon time.
obsPropIdxThe index of the property that is observed.
geomPropIdxThe index of the observed property that contains the geometry.
textThe temporal extent
sextThe spatial extent
Note
It will take the ownership of the DataSet pointer

Definition at line 88 of file ObservationDataSet.cpp.

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
const std::vector< int > &  phTimeIdxs,
const std::vector< int > &  obsPropIdxs,
int  geomPropIdx,
te::dt::DateTimePeriod text 
)

Constructor.

Parameters
dsThe DataSet
phTimeIdxsThe index of the property that contains the begin and end times.
obsPropIdxsThe indexes of the properties that are observed.
geomPropIdxThe index of the observed property that contains the geometry.
textThe temporal extent
sextThe spatial extent
Note
It will take the ownership of the DataSet pointer

Definition at line 97 of file ObservationDataSet.cpp.

te::st::ObservationDataSet::ObservationDataSet ( te::da::DataSet ds,
const std::vector< int > &  phTimeIdxs,
const std::vector< int > &  obsPropIdxs,
int  geomPropIdx,
te::dt::DateTimePeriod text,
const te::gm::Envelope sext 
)

Constructor.

Parameters
dsThe DataSet
phTimeIdxsThe index of the property that contains the begin and end times.
obsPropIdxsThe indexes of the properties that are observed.
geomPropIdxThe index of the observed property that contains the geometry.
textThe temporal extent
sextThe spatial extent
Note
It will take the ownership of the DataSet pointer

Definition at line 105 of file ObservationDataSet.cpp.

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

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.

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.

It returns the properties of the observed values.

Parameters
outputthe properties of the observed values.
Note
The caller will NOT take the ownership of the output pointers.

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.

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.

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.

Virtual destructor.

Definition at line 216 of file ObservationDataSet.cpp.

Member Function Documentation

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.

Definition at line 115 of file ObservationDataSet.cpp.

std::auto_ptr< te::st::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.

Definition at line 195 of file ObservationDataSet.cpp.

const te::gm::Envelope & 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.

Definition at line 125 of file ObservationDataSet.cpp.

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.

Definition at line 140 of file ObservationDataSet.cpp.

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

It returns a reference to the ObservationDataSetType.

Returns
A reference to the internal ObservationDataSetType.

Definition at line 120 of file ObservationDataSet.cpp.

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

Definition at line 190 of file ObservationDataSet.cpp.

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

Definition at line 175 of file ObservationDataSet.cpp.

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

Definition at line 185 of file ObservationDataSet.cpp.

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

Definition at line 180 of file ObservationDataSet.cpp.

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

Definition at line 165 of file ObservationDataSet.cpp.

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

Definition at line 160 of file ObservationDataSet.cpp.

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

Definition at line 170 of file ObservationDataSet.cpp.

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

Definition at line 150 of file ObservationDataSet.cpp.

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

Definition at line 155 of file ObservationDataSet.cpp.

void te::st::ObservationDataSet::setSpatialExtent ( const te::gm::Envelope 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.

Definition at line 135 of file ObservationDataSet.cpp.

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.

Definition at line 145 of file ObservationDataSet.cpp.

Member Data Documentation

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

Definition at line 356 of file ObservationDataSet.h.

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

A data set that contains observations.

Definition at line 357 of file ObservationDataSet.h.

te::gm::Envelope te::st::ObservationDataSet::m_spExtent
private

Its temporal extent.

Definition at line 359 of file ObservationDataSet.h.

std::auto_ptr<te::dt::DateTimePeriod> te::st::ObservationDataSet::m_tpExtent
private

An observation data set type that refers to m_ds.

Definition at line 358 of file ObservationDataSet.h.


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