A class to represent an object. More...
#include <Object.h>
Public Member Functions | |
| Object * | clone () const |
| It returns a clone of this object. More... | |
| std::string | getId () const |
| It returns the object identification. More... | |
| std::pair< te::dt::AbstractData *, te::gm::Geometry * > | getState (te::dt::DateTime *t) const |
| It returns the state of the object at a given date and time. More... | |
| TimeSeries * | getTimeSeries () const |
| It returns the time series associated to the object. More... | |
| Trajectory * | getTrajectory () const |
| It returns the trajectory associated to the object. More... | |
| Object & | operator= (const Object &other) |
| Copy assignment operator. More... | |
| void | setId (const std::string &id) |
| It sets the object identification. More... | |
| void | setTimeSeries (TimeSeries *ts) |
| It sets the time series associated to the object. More... | |
| void | setTrajectory (Trajectory *tj) |
| It sets the trajectory associated to the object. More... | |
| virtual | ~Object () |
| Virtual destructor. More... | |
Object Constructors | |
| Object (const std::string &id, TimeSeries *ts, Trajectory *tj) | |
| Constructor. More... | |
| Object (const std::string &id, TimeSeries *ts) | |
| Constructor. More... | |
| Object (const std::string &id, Trajectory *tj) | |
| Constructor. More... | |
| Object (const Object &obj) | |
| Copy constructor. More... | |
Private Attributes | |
| std::string | m_id |
| The time series identification. More... | |
| std::unique_ptr< TimeSeries > | m_timeseries |
| The variation of a property of the object. More... | |
| std::unique_ptr< Trajectory > | m_trajectory |
| The variation of the spatial property of the object. More... | |
A class to represent an object.
An object is an identifiable entity whose spatial and non-spatial properties can change. The spatial property variation is represented by a trajectory and the non-spatial property variation by a time series. This first version will consider only a non-spatial property.
| te::st::Object::Object | ( | const std::string & | id, |
| TimeSeries * | ts, | ||
| Trajectory * | tj | ||
| ) |
Constructor.
| id | The identification of the object. |
| ts | The time series that represents the variation of a non-spatial property. |
| tj | The trajectory that represents the variation of the spatial property. |
Definition at line 39 of file Object.cpp.
Referenced by clone().
| te::st::Object::Object | ( | const std::string & | id, |
| TimeSeries * | ts | ||
| ) |
Constructor.
| id | The identification of the object. |
| ts | The time series that represents the variation of a non-spatial property. |
Definition at line 46 of file Object.cpp.
| te::st::Object::Object | ( | const std::string & | id, |
| Trajectory * | tj | ||
| ) |
Constructor.
| id | The identification of the object. |
| tj | The trajectory that represents the variation of the spatial property. |
Definition at line 53 of file Object.cpp.
| te::st::Object::Object | ( | const Object & | obj | ) |
Copy constructor.
Definition at line 59 of file Object.cpp.
References m_timeseries, and m_trajectory.
|
virtualdefault |
Virtual destructor.
Referenced by getState().
| te::st::Object * te::st::Object::clone | ( | ) | const |
It returns a clone of this object.
Definition at line 81 of file Object.cpp.
References Object().
| std::string te::st::Object::getId | ( | ) | const |
It returns the object identification.
Definition at line 86 of file Object.cpp.
References m_id.
| std::pair< te::dt::AbstractData *, te::gm::Geometry * > te::st::Object::getState | ( | te::dt::DateTime * | t | ) | const |
It returns the state of the object at a given date and time.
| t | The given date and time. |
Definition at line 117 of file Object.cpp.
References m_timeseries, m_trajectory, and ~Object().
| te::st::TimeSeries * te::st::Object::getTimeSeries | ( | ) | const |
It returns the time series associated to the object.
Definition at line 96 of file Object.cpp.
References m_timeseries.
| te::st::Trajectory * te::st::Object::getTrajectory | ( | ) | const |
It returns the trajectory associated to the object.
Definition at line 106 of file Object.cpp.
References m_trajectory.
| te::st::Object & te::st::Object::operator= | ( | const Object & | other | ) |
Copy assignment operator.
Definition at line 68 of file Object.cpp.
References m_id, m_timeseries, and m_trajectory.
| void te::st::Object::setId | ( | const std::string & | id | ) |
It sets the object identification.
| id | The object identification. |
Definition at line 91 of file Object.cpp.
References m_id.
| void te::st::Object::setTimeSeries | ( | TimeSeries * | ts | ) |
It sets the time series associated to the object.
| ts | The time series to be set. |
Definition at line 101 of file Object.cpp.
References m_timeseries.
| void te::st::Object::setTrajectory | ( | Trajectory * | tj | ) |
It sets the trajectory associated to the object.
| ts | The trajectory associated to the object. |
Definition at line 111 of file Object.cpp.
References m_trajectory.
|
private |
The time series identification.
Definition at line 183 of file Object.h.
Referenced by getId(), operator=(), and setId().
|
private |
The variation of a property of the object.
Definition at line 185 of file Object.h.
Referenced by getState(), getTimeSeries(), Object(), operator=(), and setTimeSeries().
|
private |
The variation of the spatial property of the object.
Definition at line 184 of file Object.h.
Referenced by getState(), getTrajectory(), Object(), operator=(), and setTrajectory().