ADD: updated Tracklist and TracklistItem with tests
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "SimCore/SimCore.hpp"
|
||||
#include <SimCore/Position.hpp>
|
||||
#include <chrono>
|
||||
#include <cstddef>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
@@ -28,30 +29,12 @@ namespace TrackList {
|
||||
|
||||
|
||||
|
||||
class TracklistItem
|
||||
class TracklistItem: public SimCore::SimTrack
|
||||
{
|
||||
public:
|
||||
TracklistItem(std::shared_ptr<SimCore::SimTrack> track,SensorData sensorData);
|
||||
TracklistItem(std::shared_ptr<SimCore::SimTrack> track);
|
||||
|
||||
SimCore::Identifier getID();
|
||||
|
||||
void setPosition(SimCore::Position position);
|
||||
SimCore::Position getPosition();
|
||||
|
||||
void setSpeed(double speed);
|
||||
double getSpeed();
|
||||
|
||||
void setCourse(double course);
|
||||
double getCourse();
|
||||
|
||||
void setPitch(double pitch);
|
||||
double getpitch();
|
||||
|
||||
double getBearing();
|
||||
double getRange();
|
||||
|
||||
SimCore::ObjectSource getObjectSource();
|
||||
|
||||
std::chrono::time_point<std::chrono::steady_clock> getLastUpdateTimestamp();
|
||||
|
||||
@@ -65,30 +48,14 @@ namespace TrackList {
|
||||
|
||||
void addSensorDataToSensorList(SensorData sensorData);
|
||||
|
||||
size_t getSensorCount();
|
||||
|
||||
|
||||
private:
|
||||
const SimCore::Identifier trackID_;
|
||||
|
||||
/// position of the track
|
||||
SimCore::Position position_;
|
||||
/// speed the track
|
||||
double speed_ = 0;
|
||||
/// course of the track
|
||||
double course_ = 0;
|
||||
|
||||
double pitch_ = 0;
|
||||
|
||||
/// bearing
|
||||
double bearing_;
|
||||
///range in meters
|
||||
double range_;
|
||||
//environment (AIR,SURFACE,SUBSURFACE,SPACE)
|
||||
SimCore::Kind::EntityKind kind_;
|
||||
|
||||
|
||||
std::chrono::time_point<std::chrono::steady_clock> lastUpdateTimestamp_;
|
||||
|
||||
SimCore::ObjectSource ObjectSource_;
|
||||
|
||||
std::vector<SensorData> SensorList;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user