27 #include "../../../datatype/DateTime.h"
28 #include "../../../datatype/DateTimePeriod.h"
29 #include "../../../datatype/DateTimeInstant.h"
30 #include "../../../datatype/AbstractData.h"
31 #include "../../../geometry/Geometry.h"
34 #include "../timeseries/TimeSeries.h"
35 #include "../trajectory/Trajectory.h"
99 return m_timeseries.get();
104 m_timeseries.reset(ts);
109 return m_trajectory.get();
114 m_trajectory.reset(tj);
117 std::pair<te::dt::AbstractData*,te::gm::Geometry*>
120 std::auto_ptr<te::dt::AbstractData> v;
121 std::auto_ptr<te::gm::Geometry> g;
123 if(m_timeseries.get()!=0)
124 v = m_timeseries->getValue(t);
126 if(m_trajectory.get()!=0)
127 g = m_trajectory->getGeometry(t);
129 std::pair<te::dt::AbstractData*,te::gm::Geometry*> result(v.release(),g.release());
TimeSeries * getTimeSeries() const
It returns the time series associated to the object.
void setTimeSeries(TimeSeries *ts)
It sets the time series associated to the object.
std::string m_id
The time series identification.
std::auto_ptr< TimeSeries > m_timeseries
The variation of a property of the object.
void setId(const std::string &id)
It sets the object identification.
void setTrajectory(Trajectory *tj)
It sets the trajectory associated to the object.
A class to represent an object.
Object * clone() const
It returns a clone of this object.
std::auto_ptr< Trajectory > m_trajectory
The variation of the spatial property of the object.
Object(const std::string &id, TimeSeries *ts, Trajectory *tj)
Constructor.
Object & operator=(const Object &other)
Copy assignment operator.
A class to represent time series.
This file contains a class to represent an object.
virtual ~Object()
Virtual destructor.
std::string getId() const
It returns the object identification.
A class to represent trajectory.
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.
Trajectory * getTrajectory() const
It returns the trajectory associated to the object.