OpenJAUS SAE SDK  6.0.0
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
openjaus::mobility_v1_0::GlobalPathSegmentRecord Class Reference

#include <GlobalPathSegmentRecord.h>

Inherits openjaus::model::fields::Record.

Public Member Functions

 GlobalPathSegmentRecord ()
 
 GlobalPathSegmentRecord (const GlobalPathSegmentRecord &source)
 
 ~GlobalPathSegmentRecord ()
 
void copy (GlobalPathSegmentRecord &source)
 
virtual uint64 to (system::BufferWriter &dst) const
 Serializes the contents of this object into the Buffer connected to the provided BufferWriter. More...
 
virtual uint64 from (system::BufferReader &src)
 Deserializes the contents the Buffer connected to the provided BufferReader into this object. More...
 
virtual uint64 length (void) const
 Gets the serialized length of this object. More...
 
std::string toXml (unsigned char ojIndentLevel=0) const
 
void setPresenceVector (uint8_t value)
 
uint8_t getPresenceVector (void) const
 
bool isP1AltitudeEnabled (void) const
 
void enableP1Altitude (void)
 
void disableP1Altitude (void)
 
bool isP2AltitudeEnabled (void) const
 
void enableP2Altitude (void)
 
void disableP2Altitude (void)
 
bool isPathToleranceEnabled (void) const
 
void enablePathTolerance (void)
 
void disablePathTolerance (void)
 
double getP1Latitude_deg (void)
 
bool setP1Latitude_deg (double value)
 
double getP1Longitude_deg (void)
 
bool setP1Longitude_deg (double value)
 
double getP1Altitude_m (void)
 
bool setP1Altitude_m (double value)
 
double getP2Latitude_deg (void)
 
bool setP2Latitude_deg (double value)
 
double getP2Longitude_deg (void)
 
bool setP2Longitude_deg (double value)
 
double getP2Altitude_m (void)
 
bool setP2Altitude_m (double value)
 
double getWeightingFactor (void)
 
bool setWeightingFactor (double value)
 
double getPathTolerance (void)
 
bool setPathTolerance (double value)
 
- Public Member Functions inherited from openjaus::model::fields::Record
 Record ()
 
virtual ~Record ()
 
const std::vector< Field *> & getFields () const
 Accessor to get the value of fields. More...
 
bool setFields (const Field &fields)
 Accessor to set value of fields. More...
 
virtual std::string toString () const
 
- Public Member Functions inherited from openjaus::model::fields::ComplexField
virtual ~ComplexField ()
 
- Public Member Functions inherited from openjaus::model::fields::Field
 Field ()
 
virtual ~Field ()
 
std::string getName () const
 Accessor to get the value of name. More...
 
bool setName (std::string name)
 Accessor to set value of name. More...
 
- Public Member Functions inherited from openjaus::system::Transportable
 Transportable ()
 
virtual ~Transportable ()
 

Static Public Attributes

static const uint8_t PV_NO_FIELDS = 0x0
 
static const uint8_t PV_P1ALTITUDE = 0x1
 
static const uint8_t PV_P2ALTITUDE = 0x2
 
static const uint8_t PV_PATHTOLERANCE = 0x4
 
static const uint8_t PV_ALL_FIELDS = PV_NO_FIELDS | PV_P1ALTITUDE | PV_P2ALTITUDE | PV_PATHTOLERANCE
 

Protected Attributes

JausLatitudeScaledInteger p1Latitude_deg
 
JausLongitudeScaledInteger p1Longitude_deg
 
JausAltitudeScaledInteger p1Altitude_m
 
JausLatitudeScaledInteger p2Latitude_deg
 
JausLongitudeScaledInteger p2Longitude_deg
 
JausAltitudeScaledInteger p2Altitude_m
 
WeightingFactorRefScaledInteger weightingFactor
 
PathToleranceRefScaledInteger pathTolerance
 
uint8_t presenceVector
 
- Protected Attributes inherited from openjaus::model::fields::Record
std::vector< Field *> fields
 
- Protected Attributes inherited from openjaus::model::fields::Field
std::string name
 

Constructor & Destructor Documentation

◆ GlobalPathSegmentRecord() [1/2]

openjaus::mobility_v1_0::GlobalPathSegmentRecord::GlobalPathSegmentRecord ( )

◆ GlobalPathSegmentRecord() [2/2]

openjaus::mobility_v1_0::GlobalPathSegmentRecord::GlobalPathSegmentRecord ( const GlobalPathSegmentRecord source)

◆ ~GlobalPathSegmentRecord()

openjaus::mobility_v1_0::GlobalPathSegmentRecord::~GlobalPathSegmentRecord ( )

Member Function Documentation

◆ copy()

void openjaus::mobility_v1_0::GlobalPathSegmentRecord::copy ( GlobalPathSegmentRecord source)

◆ disableP1Altitude()

void openjaus::mobility_v1_0::GlobalPathSegmentRecord::disableP1Altitude ( void  )

◆ disableP2Altitude()

void openjaus::mobility_v1_0::GlobalPathSegmentRecord::disableP2Altitude ( void  )

◆ disablePathTolerance()

void openjaus::mobility_v1_0::GlobalPathSegmentRecord::disablePathTolerance ( void  )

◆ enableP1Altitude()

void openjaus::mobility_v1_0::GlobalPathSegmentRecord::enableP1Altitude ( void  )

◆ enableP2Altitude()

void openjaus::mobility_v1_0::GlobalPathSegmentRecord::enableP2Altitude ( void  )

◆ enablePathTolerance()

void openjaus::mobility_v1_0::GlobalPathSegmentRecord::enablePathTolerance ( void  )

◆ from()

uint64 openjaus::mobility_v1_0::GlobalPathSegmentRecord::from ( system::BufferReader src)
virtual

Deserializes the contents the Buffer connected to the provided BufferReader into this object. The BufferReader position will be advanced inside this method such that calling from() again will attempt to read the next Transportable object from the Buffer.

Parameters
src

Reimplemented from openjaus::model::fields::Record.

◆ getP1Altitude_m()

double openjaus::mobility_v1_0::GlobalPathSegmentRecord::getP1Altitude_m ( void  )

◆ getP1Latitude_deg()

double openjaus::mobility_v1_0::GlobalPathSegmentRecord::getP1Latitude_deg ( void  )

◆ getP1Longitude_deg()

double openjaus::mobility_v1_0::GlobalPathSegmentRecord::getP1Longitude_deg ( void  )

◆ getP2Altitude_m()

double openjaus::mobility_v1_0::GlobalPathSegmentRecord::getP2Altitude_m ( void  )

◆ getP2Latitude_deg()

double openjaus::mobility_v1_0::GlobalPathSegmentRecord::getP2Latitude_deg ( void  )

◆ getP2Longitude_deg()

double openjaus::mobility_v1_0::GlobalPathSegmentRecord::getP2Longitude_deg ( void  )

◆ getPathTolerance()

double openjaus::mobility_v1_0::GlobalPathSegmentRecord::getPathTolerance ( void  )

◆ getPresenceVector()

uint8_t openjaus::mobility_v1_0::GlobalPathSegmentRecord::getPresenceVector ( void  ) const

◆ getWeightingFactor()

double openjaus::mobility_v1_0::GlobalPathSegmentRecord::getWeightingFactor ( void  )

◆ isP1AltitudeEnabled()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::isP1AltitudeEnabled ( void  ) const

◆ isP2AltitudeEnabled()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::isP2AltitudeEnabled ( void  ) const

◆ isPathToleranceEnabled()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::isPathToleranceEnabled ( void  ) const

◆ length()

uint64 openjaus::mobility_v1_0::GlobalPathSegmentRecord::length ( void  ) const
virtual

Reimplemented from openjaus::model::fields::Record.

◆ setP1Altitude_m()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::setP1Altitude_m ( double  value)

◆ setP1Latitude_deg()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::setP1Latitude_deg ( double  value)

◆ setP1Longitude_deg()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::setP1Longitude_deg ( double  value)

◆ setP2Altitude_m()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::setP2Altitude_m ( double  value)

◆ setP2Latitude_deg()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::setP2Latitude_deg ( double  value)

◆ setP2Longitude_deg()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::setP2Longitude_deg ( double  value)

◆ setPathTolerance()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::setPathTolerance ( double  value)

◆ setPresenceVector()

void openjaus::mobility_v1_0::GlobalPathSegmentRecord::setPresenceVector ( uint8_t  value)

◆ setWeightingFactor()

bool openjaus::mobility_v1_0::GlobalPathSegmentRecord::setWeightingFactor ( double  value)

◆ to()

uint64 openjaus::mobility_v1_0::GlobalPathSegmentRecord::to ( system::BufferWriter dst) const
virtual

Serializes the contents of this object into the Buffer connected to the provided BufferWriter. The BufferWriter position will be advanced inside this method such that calling to() again will write the Transportable object into the Buffer a second time.

Parameters
dst

Reimplemented from openjaus::model::fields::Record.

◆ toXml()

std::string openjaus::mobility_v1_0::GlobalPathSegmentRecord::toXml ( unsigned char  ojIndentLevel = 0) const

Member Data Documentation

◆ p1Altitude_m

JausAltitudeScaledInteger openjaus::mobility_v1_0::GlobalPathSegmentRecord::p1Altitude_m
protected

◆ p1Latitude_deg

JausLatitudeScaledInteger openjaus::mobility_v1_0::GlobalPathSegmentRecord::p1Latitude_deg
protected

◆ p1Longitude_deg

JausLongitudeScaledInteger openjaus::mobility_v1_0::GlobalPathSegmentRecord::p1Longitude_deg
protected

◆ p2Altitude_m

JausAltitudeScaledInteger openjaus::mobility_v1_0::GlobalPathSegmentRecord::p2Altitude_m
protected

◆ p2Latitude_deg

JausLatitudeScaledInteger openjaus::mobility_v1_0::GlobalPathSegmentRecord::p2Latitude_deg
protected

◆ p2Longitude_deg

JausLongitudeScaledInteger openjaus::mobility_v1_0::GlobalPathSegmentRecord::p2Longitude_deg
protected

◆ pathTolerance

PathToleranceRefScaledInteger openjaus::mobility_v1_0::GlobalPathSegmentRecord::pathTolerance
protected

◆ presenceVector

uint8_t openjaus::mobility_v1_0::GlobalPathSegmentRecord::presenceVector
protected

◆ PV_ALL_FIELDS

const uint8_t openjaus::mobility_v1_0::GlobalPathSegmentRecord::PV_ALL_FIELDS = PV_NO_FIELDS | PV_P1ALTITUDE | PV_P2ALTITUDE | PV_PATHTOLERANCE
static

◆ PV_NO_FIELDS

const uint8_t openjaus::mobility_v1_0::GlobalPathSegmentRecord::PV_NO_FIELDS = 0x0
static

◆ PV_P1ALTITUDE

const uint8_t openjaus::mobility_v1_0::GlobalPathSegmentRecord::PV_P1ALTITUDE = 0x1
static

◆ PV_P2ALTITUDE

const uint8_t openjaus::mobility_v1_0::GlobalPathSegmentRecord::PV_P2ALTITUDE = 0x2
static

◆ PV_PATHTOLERANCE

const uint8_t openjaus::mobility_v1_0::GlobalPathSegmentRecord::PV_PATHTOLERANCE = 0x4
static

◆ weightingFactor

WeightingFactorRefScaledInteger openjaus::mobility_v1_0::GlobalPathSegmentRecord::weightingFactor
protected

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