|
LRAUV
revA
|
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL, which is returned if a dataValue request is made and this Accessor's associated DataElement is unavailable for some reason (not initialized, orphaned, or failed). More...
#include <UniversalDataReader.h>


Public Member Functions | |
| UniversalDataReader (Component *owner, UniversalDataElement &universalElement, const DataValue *defaultValue, bool deleteDefaultValue=true) | |
| UniversalDataReader (Component *owner, UniversalDataElement &universalElement, const Unit &defaultUnit) | |
| virtual | ~UniversalDataReader () |
| float | getAccuracy (const Unit &unit) |
| Returns the DataElement's current accuracy (i.e., for the next write) More... | |
| float | getWrittenAccuracy (const Unit &unit) |
| Returns the DataElement's accuracy at the time of the last write;. More... | |
| virtual void | requestData (bool requestingData) |
| void | requestData (RequestStrategy requestStrategy) |
| UniversalDataElement & | getUniversalElement () |
Public Member Functions inherited from DataReader | |
| DataReader (Component *owner, DataElement &element, const DataValue *defaultValue, bool deleteDefaultValue=true) | |
| DataReader (Component *owner, DataElement &element, const Unit &defaultUnit) | |
| virtual | ~DataReader () |
| const Unit * | getDefaultUnit () |
| bool | isUnavailable (void) |
| Status and state functions. More... | |
| bool | isInvalid (void) |
| bool | isOrphaned (void) |
| bool | isActive (void) |
| bool | read (const Unit &unit, unsigned char &readTo) |
| Get functions. More... | |
| bool | read (const Unit &unit, double &readTo) |
| bool | read (const Unit &unit, float &readTo) |
| bool | read (const Unit &unit, int &readTo) |
| bool | read (bool &readTo) |
| bool | read (Timespan &readTo) |
| bool | read (DataValue &readTo) |
| int | asInt (const Unit &unit) |
| double | asDouble (const Unit &unit) __attribute__((deprecated)) |
| Str | asString (const Unit &unit) |
| const Timestamp & | getTimestamp (void) const |
| Returns the Timestamp of the last write to this reader's DataElement. More... | |
| bool | wasTouchedSinceLastRun (const Component *component) |
| Returns true if the value was touched since the last run of the indicated component. More... | |
| bool | isRequestingData (void) |
| RequestStrategy | getRequestStrategy (void) |
| void | setImplementor (bool implementor=true) |
| bool | isImplementor () |
Public Member Functions inherited from DataAccessor | |
| virtual | ~DataAccessor () |
| virtual DataElement & | getElement (void) const |
| virtual Component * | getOwner (void) const |
| virtual const ElementURI & | getUri (void) const |
| AccessorType | getAccessorType () const |
| DataAccess * | getDataAccess () const |
| Logger::TimePrecisionType | getTimePrecision () const |
Private Member Functions | |
| UniversalDataReader (const UniversalDataReader &old) | |
Private Attributes | |
| UniversalDataElement & | universalElement_ |
A DataAccessor that reads values from the Slate Contains a default dataValue that must not be NULL, which is returned if a dataValue request is made and this Accessor's associated DataElement is unavailable for some reason (not initialized, orphaned, or failed).
| UniversalDataReader::UniversalDataReader | ( | Component * | owner, |
| UniversalDataElement & | universalElement, | ||
| const DataValue * | defaultValue, | ||
| bool | deleteDefaultValue = true |
||
| ) |
| UniversalDataReader::UniversalDataReader | ( | Component * | owner, |
| UniversalDataElement & | universalElement, | ||
| const Unit & | defaultUnit | ||
| ) |
|
virtual |
|
private |
| float UniversalDataReader::getAccuracy | ( | const Unit & | unit | ) |
Returns the DataElement's current accuracy (i.e., for the next write)
References DataAccessor::element_, DataElement::getAccuracy(), DataElement::isActive(), and DataElement::NO_ACCURACY.
Referenced by DeadReckonWithRespectToWater::readVehicleVelocity(), DeadReckonWithRespectToSeafloor::readVehicleVelocity(), DeadReckonUsingCompactModelForecast::readVehicleVelocity(), DeadReckonUsingMultipleVelocitySources::readVehicleVelocity(), TempGradientCalculator::run(), YawRateCalculator::run(), PitchRateCalculator::run(), and DepthRateCalculator::run().
|
inline |
References universalElement_.
| float UniversalDataReader::getWrittenAccuracy | ( | const Unit & | unit | ) |
Returns the DataElement's accuracy at the time of the last write;.
References DataAccessor::element_, and DataElement::getWrittenAccuracy().
Referenced by Navigator::readExternalFix().
|
inlinevirtual |
Reimplemented from DataReader.
References DataAccessor::MIN_POWER, and DataAccessor::NO_STRATEGY.
Referenced by DeadReckonUsingSpeedCalculator::initialize(), DeadReckonWithRespectToWater::initialize(), DeadReckonUsingDVLWaterTrack::initialize(), DeadReckonWithRespectToSeafloor::initialize(), DeadReckonUsingCompactModelForecast::initialize(), Pitch::initialize(), GoToSurface::initialize(), Point::initialize(), AltitudeEnvelope::initialize(), HFRadarModelPoint::initialize(), DepthRateCalculator::initialize(), YawRateCalculator::initialize(), HFRCMReconstructedInterpolator::initialize(), YoYo::initialize(), OffshoreEnvelope::initialize(), WaterDepthEnvelope::initialize(), HFRCMSurfaceCurrentAtVehicleLocation::initialize(), DeadReckonUsingMultipleVelocitySources::initialize(), Lane::initialize(), Waypoint::isSatisfied(), Circle::isSatisfied(), KeepStation::isSatisfied(), Lane::readParams(), Tracking::requestVehiclePose(), DepthRateCalculator::uninitialize(), AltitudeEnvelope::uninitialize(), HFRadarModelPoint::uninitialize(), YoYo::uninitialize(), GoToSurface::uninitialize(), Point::uninitialize(), Pitch::uninitialize(), Lane::uninitialize(), WaterDepthEnvelope::uninitialize(), and OffshoreEnvelope::uninitialize().
|
virtual |
Reimplemented from DataReader.
References DataReader::requestStrategy_.
|
private |
Referenced by getUniversalElement().