All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
te::st::TrajectoryDataSetType Class Reference

A class that contains complemental information about a DataSet that holds observations of a trajectory. More...

#include <TrajectoryDataSetType.h>

Public Member Functions

int getBeginTimePropIdx () const
 It returns the property index that contains the begin time associated to the trajectory. More...
 
int getEndTimePropIdx () const
 It returns the property index that contains the final time associated to the trajectory. More...
 
int getGeomPropIdx () const
 It returns the property index that contains the trajectory geometries. More...
 
std::string getId () const
 It returns the trajectory id. More...
 
int getIdPropIdx () const
 It returns the property index that contains the object identifications. More...
 
int getTimePropIdx () const
 It returns the property index that contains the times associated to the trajectory. More...
 
const ObservationDataSetTypegetType () const
 It returns the observation set type. More...
 
void setId (const std::string &id)
 It sets the trajectory id. More...
 
void setIdPropIdx (int idx)
 It sets the property index that contains the object identifications. More...
 
 TrajectoryDataSetType (int tPropIdx, int gPropIdx, int idPropIdx, const std::string &id)
 Constructor. More...
 
 TrajectoryDataSetType (const std::vector< int > &tPropIdxs, int gPropIdx, int idPropIdx, const std::string &id)
 Constructor. More...
 
 TrajectoryDataSetType (const ObservationDataSetType &type, int idPropIdx, const std::string &id)
 Constructor. More...
 
virtual ~TrajectoryDataSetType ()
 Virtual destructor. More...
 

Protected Attributes

std::string m_id
 The trajectory id. More...
 
int m_idPropIdx
 The property index that contains the object identification. More...
 
ObservationDataSetType m_obsType
 The internal observation set type. More...
 

Detailed Description

A class that contains complemental information about a DataSet that holds observations of a trajectory.

A trajectory represents the variation of spatial locations or extents of an object over time.

See Also
ObservationDataSet ObservationDataSetType

Definition at line 51 of file TrajectoryDataSetType.h.

Constructor & Destructor Documentation

te::st::TrajectoryDataSetType::TrajectoryDataSetType ( int  tPropIdx,
int  gPropIdx,
int  idPropIdx,
const std::string &  id 
)

Constructor.

Parameters
tPropIdxThe index of the property that contains the times of a trajectory.
gPropIdxThe index of the property that contains the geometries of a trajectory.
idPropIdxThe index of the property that contains the identity of the trajectory.
idThe trajectory id.

Definition at line 30 of file TrajectoryDataSetType.cpp.

te::st::TrajectoryDataSetType::TrajectoryDataSetType ( const std::vector< int > &  tPropIdxs,
int  gPropIdx,
int  idPropIdx,
const std::string &  id 
)

Constructor.

Parameters
tPropIdxsThe indexes of the properties that contains the beginning and final times of a trajectory.
gPropIdxThe index of the property that contains the geometries of a trajectory.
idPropIdxThe index of the property that contains the identity of the trajectory.
idThe trajectory id.
Note
This constructor is used when each observation of a trajectory is associated to a period and the DataSet uses two properties to store these periods.

Definition at line 38 of file TrajectoryDataSetType.cpp.

te::st::TrajectoryDataSetType::TrajectoryDataSetType ( const ObservationDataSetType type,
int  idPropIdx,
const std::string &  id 
)

Constructor.

Parameters
typeThe ObservationSetType
idPropIdxThe property index that contains the object identification.
idThe trajectory id.
Note
idPropIdx equal to "-1" means that the DataSet contains observations of only one trajectory.

Definition at line 46 of file TrajectoryDataSetType.cpp.

te::st::TrajectoryDataSetType::~TrajectoryDataSetType ( )
virtual

Virtual destructor.

Definition at line 101 of file TrajectoryDataSetType.cpp.

Member Function Documentation

int te::st::TrajectoryDataSetType::getBeginTimePropIdx ( ) const

It returns the property index that contains the begin time associated to the trajectory.

Returns
The property index that contains the begin times associated to the trajectory.

Definition at line 70 of file TrajectoryDataSetType.cpp.

int te::st::TrajectoryDataSetType::getEndTimePropIdx ( ) const

It returns the property index that contains the final time associated to the trajectory.

Returns
The property index that contains the end time associated to the trajectory.

Definition at line 75 of file TrajectoryDataSetType.cpp.

int te::st::TrajectoryDataSetType::getGeomPropIdx ( ) const

It returns the property index that contains the trajectory geometries.

Returns
The property index that contains the trajectory geometries.

Definition at line 60 of file TrajectoryDataSetType.cpp.

std::string te::st::TrajectoryDataSetType::getId ( ) const

It returns the trajectory id.

Returns
The trajectory id.

Definition at line 91 of file TrajectoryDataSetType.cpp.

int te::st::TrajectoryDataSetType::getIdPropIdx ( ) const

It returns the property index that contains the object identifications.

Returns
The property index that contains the object identifications.

Definition at line 80 of file TrajectoryDataSetType.cpp.

int te::st::TrajectoryDataSetType::getTimePropIdx ( ) const

It returns the property index that contains the times associated to the trajectory.

Returns
The property index that contains the times associated to the trajectory.

Definition at line 65 of file TrajectoryDataSetType.cpp.

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

It returns the observation set type.

Returns
The observation set type.

Definition at line 55 of file TrajectoryDataSetType.cpp.

void te::st::TrajectoryDataSetType::setId ( const std::string &  id)

It sets the trajectory id.

Parameters
idThe trajectory id.

Definition at line 96 of file TrajectoryDataSetType.cpp.

void te::st::TrajectoryDataSetType::setIdPropIdx ( int  idx)

It sets the property index that contains the object identifications.

Parameters
idxThe property index that contains the object identifications.

Definition at line 85 of file TrajectoryDataSetType.cpp.

Member Data Documentation

std::string te::st::TrajectoryDataSetType::m_id
protected

The trajectory id.

Definition at line 160 of file TrajectoryDataSetType.h.

int te::st::TrajectoryDataSetType::m_idPropIdx
protected

The property index that contains the object identification.

Definition at line 159 of file TrajectoryDataSetType.h.

ObservationDataSetType te::st::TrajectoryDataSetType::m_obsType
protected

The internal observation set type.

Definition at line 158 of file TrajectoryDataSetType.h.


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