ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
larcfm::GeneralState Class Reference

#include <GeneralState.h>

Public Member Functions

 GeneralState (const std::string &name, const Position &s, const Velocity &v, double time)
 
 GeneralState (const std::string &name, const SimpleMovingPoly &p, double time)
 
 GeneralState (const std::string &name, const SimpleMovingPoly &p, double time, bool cont)
 
 GeneralState (const std::string &name, const SimplePoly &p, const Velocity &v, double time, bool cont)
 
 GeneralState (const MovingPolygon3D &p, bool containment)
 
 GeneralState (const GeneralState &g)
 
Position representativePosition () const
 
Velocity representativeVelocity () const
 
std::string getName () const
 
GeneralState copy () const
 
bool hasPointMass () const
 
bool hasPolygon () const
 
Position getPosition () const
 
Velocity getVelocity () const
 
SimpleMovingPoly getPolygon () const
 
double getTime () const
 
bool isContainment () const
 
General3DState get3DState (const EuclideanProjection &proj)
 
General3DState getLast3DState () const
 
General3DState pred (double t) const
 
GeneralState linearPred (double t) const
 
GeneralState linear (double dt) const
 
bool checkLatLon (bool ll) const
 
bool isLatLon () const
 
bool isInvalid () const
 
std::string toString () const
 

Static Public Member Functions

static GeneralState make (const General3DState &g, const std::string &name, double time)
 
static GeneralState make (const General3DState &g, const EuclideanProjection &proj, const std::string &name, double time)
 

Static Public Attributes

static const GeneralState INVALID = GeneralState()
 

Private Attributes

std::string id
 
Position si
 
Velocity vi
 
SimpleMovingPoly mp
 
double t
 
bool containment
 
bool pointDefined
 
bool polyDefined
 
General3DState state
 

Detailed Description

A "general state" object that holds Euclidean or Lat/Lon information about position and velocity for an object. Currently this can either be a (point-mass) aircraft or a (possible morphing) polygon. This is intended to be traffic information that will be converted to a General3DState object to be sent to a GeneralDetector object.

Member Function Documentation

◆ getLast3DState()

General3DState larcfm::GeneralState::getLast3DState ( ) const

Return the last computed 3D state (via get3DState)

◆ linear()

GeneralState larcfm::GeneralState::linear ( double  dt) const

Return a new general state advanced by (relative) time dt

◆ linearPred()

GeneralState larcfm::GeneralState::linearPred ( double  t) const

Return a new general state advanced to new (absolute) time t

◆ make() [1/2]

GeneralState larcfm::GeneralState::make ( const General3DState g,
const EuclideanProjection &  proj,
const std::string &  name,
double  time 
)
static

Creates a LatLon GeneralState

Parameters
g
proj

◆ make() [2/2]

GeneralState larcfm::GeneralState::make ( const General3DState g,
const std::string &  name,
double  time 
)
static

Creates a Euclidean GeneralState

Parameters
g

◆ pred()

General3DState larcfm::GeneralState::pred ( double  t) const

Return most recent 3d projection advanced to new time t (or invalid if get3DState has not been called)

◆ representativePosition()

Position larcfm::GeneralState::representativePosition ( ) const

Return a representative position for this state (averagePoint in the case of polygons)


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