|
| | SimpleDataElement (const ElementURI &name, DataValue *initialValue, float accuracy) |
| | Constructor for a "Simple" DataElement. More...
|
| |
| virtual | ~SimpleDataElement () |
| | Destructor. More...
|
| |
| virtual DataValue * | getDataValue (void) const |
| | Get the DataValue for this DataElement. More...
|
| |
| virtual float | getAccuracy (const Unit &unit) const throw ( UninitializedException ) |
| | Get the current DataElement accuracy. More...
|
| |
| virtual float | setAccuracy (const Unit &unit, float accuracy) |
| | Set the current DataElement accuracy Implements the pure virtual from DataElement. More...
|
| |
| virtual | ~DataElement () |
| | Destructor. More...
|
| |
| DataReader * | findReader (const ElementURI &uri) |
| | Returns the DataReader associated with this DataElement and the specified ElementURI. More...
|
| |
| DataWriter * | findWriter (const ElementURI &uri) |
| | Returns the DataWriter associated with this DataElement and the specified ElementURI. More...
|
| |
| const ElementURI & | getUri (void) const |
| | Get the full ElementURI for the DataElement. More...
|
| |
| virtual const Timestamp & | getTimestamp () const |
| | Returns the timestamp of last write. More...
|
| |
| virtual bool | isUnavailable (void) const |
| | Is the element "unavailable". More...
|
| |
| virtual bool | isInvalid (void) const |
| | Is the element "invalid". More...
|
| |
| virtual bool | isOwnersFailed (void) const |
| |
| bool | setUnavailable (bool unavailable, DataWriter *notifier) |
| | Set the element's unavailable flag. More...
|
| |
| bool | setUnavailable (bool unavailable, Component *notifier) |
| |
| bool | setInvalid (bool invalid, DataWriter *notifier) |
| | Set the element's invalid flag. More...
|
| |
| bool | setInvalid (bool invalid, Component *notifier) |
| |
| virtual void | setTimestamp (const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Sets the timestamp of last write Used if a more acurate timestamp is available. More...
|
| |
| virtual bool | isOrphaned (void) const |
| | Returns the value of the element's "orphand" flag. More...
|
| |
| virtual bool | isOwnersActive (void) const |
| |
| virtual bool | isActivatable (void) const |
| | Indicates if the element is capable of being "active". More...
|
| |
| virtual bool | isActive (void) const |
| | Indicates if the element is "active". More...
|
| |
| bool | isBest (DataAccessor::RequestStrategy strategy=DataAccessor::MIN_ERROR) const |
| | Indicates if the element is the "best" of a set of measurements that feed into a universal. More...
|
| |
| const Unit * | getUnit (void) const |
| | Returns the Unit associated with this data element or NULL if no Unit is associated. More...
|
| |
| virtual bool | isUniversal () const |
| |
| void | registerUniversal (UniversalDataElement *abstract) |
| | Indicates this DataElement should participate in the selection process for the given Universal. More...
|
| |
| UniversalDataElement * | getUniversal (void) const |
| | Returns the universal data element registered to this data element. More...
|
| |
| void | registerReader (DataReader *reader) |
| | Add the given DataReader to the list of readers for this DataElement. More...
|
| |
| void | unregisterReader (DataReader *reader) |
| | Remove the given DataReader from the list of reader for this DataElement. More...
|
| |
| unsigned int | readerCount () const |
| | The number of readers currently registered to this DataElement. More...
|
| |
| bool | hasReaders (void) const |
| | Does this DataElement have any readers? More...
|
| |
| bool | isDataRequested () |
| | Returns true if one of the registered readers is requesting data. More...
|
| |
| bool | isImplemented () |
| | Returns true if there is a non-failed "implementor" reader of this element. More...
|
| |
| void | registerWriter (DataWriter *writer) |
| | Add the given writer to the list of registered writers for this DataElement. More...
|
| |
| void | unregisterWriter (DataWriter *writer) |
| | Remove the given writer from the list of registered writers for this DataElement. More...
|
| |
| unsigned int | writerCount () const |
| | Number of writers registered to this DataElement. More...
|
| |
| bool | hasWriters (void) const |
| | Does this DataElement have any writers? More...
|
| |
| virtual void | registerRead (DataReader &reader) |
| |
| virtual void | registerWrite (DataWriter &writer, bool changed) |
| |
| void | registerChangePending (DataWriter *writer) |
| |
| void | registerChangeDone (Component *notifier) |
| |
| void | registerChangeDone (void) |
| |
| virtual float | getWrittenAccuracy (const Unit &unit) const |
| | Returns the accuracy at the time of the last write;. More...
|
| |
| virtual bool | setAccuracy (DataWriter &writer, const Unit &unit, const float accuracy) |
| | Set just the accuracy. More...
|
| |
| virtual const Unit * | getBaseUnit () |
| | The base unit that all writers and readers must use when accessing this value. More...
|
| |
| virtual size_t | getTypeSize () |
| | The base size that all writers must specify. More...
|
| |
| virtual bool | wasTouchedSinceLastRun (const Component *component) |
| | Returns true if the value was touched since the last run of the indicated component. More...
|
| |
| float | getPower () |
| | Power used by the component that owns this element. More...
|
| |
| float | getError () |
| | Error in measurements. More...
|
| |
| float | getLatency () |
| | Latency involved in requesting a measurement. More...
|
| |
| float | getFrequency () |
| | Frequency of measurements possible. More...
|
| |
| void | setPower (float power) |
| | Power used by the component that owns this element. More...
|
| |
| void | setLatency (float latency) |
| | Latency involved in requesting a measurement. More...
|
| |
| void | setFrequency (float frequency) |
| | Frequency of measurements possible. More...
|
| |
| virtual bool | get (DataReader &reader, const Unit &unit, bool &readTo) throw ( UninitializedException ) |
| |
| virtual bool | get (DataReader &reader, const Unit &unit, unsigned char &readTo) throw ( UninitializedException ) |
| |
| virtual bool | get (DataReader &reader, const Unit &unit, double &readTo) throw ( UninitializedException ) |
| |
| virtual bool | get (DataReader &reader, const Unit &unit, float &readTo) throw ( UninitializedException ) |
| |
| virtual bool | get (DataReader &reader, const Unit &unit, int &readTo) throw ( UninitializedException ) |
| |
| virtual bool | get (DataReader &reader, DataValue &readTo) throw ( UninitializedException ) |
| |
| virtual const double | asDouble (DataReader &reader, const Unit &unit) throw ( UninitializedException ) |
| |
| virtual const int | asInt (DataReader &reader, const Unit &unit) throw ( UninitializedException ) |
| |
| virtual const Str | asString (DataReader &reader, const Unit &unit) throw ( UninitializedException ) |
| |
| virtual bool | set (DataWriter &writer, const Unit &unit, const bool value, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set functions set int value. More...
|
| |
| virtual bool | set (DataWriter &writer, const Unit &unit, const unsigned char value, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set functions set int value. More...
|
| |
| virtual bool | set (DataWriter &writer, const Unit &unit, const double value, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set functions set int value. More...
|
| |
| virtual bool | set (DataWriter &writer, const Unit &unit, const float value, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set functions set int value. More...
|
| |
| virtual bool | set (DataWriter &writer, const Unit &unit, const int value, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set functions set int value. More...
|
| |
| virtual bool | set (DataWriter &writer, const DataValue &value, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set functions set int value. More...
|
| |
| virtual bool | setWithAccuracy (DataWriter &writer, const Unit &unit, const bool value, const float accuracy, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set w/ Accuracy functions. More...
|
| |
| virtual bool | setWithAccuracy (DataWriter &writer, const Unit &unit, const unsigned char value, const float accuracy, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set w/ Accuracy functions. More...
|
| |
| virtual bool | setWithAccuracy (DataWriter &writer, const Unit &unit, const double value, const float accuracy, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set w/ Accuracy functions. More...
|
| |
| virtual bool | setWithAccuracy (DataWriter &writer, const Unit &unit, const int value, const float accuracy, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set w/ Accuracy functions. More...
|
| |
| virtual bool | setWithAccuracy (DataWriter &writer, const DataValue &value, const float accuracy, const Timestamp ×tamp=Timestamp::NOT_SET_TIME) |
| | Set w/ Accuracy functions. More...
|
| |
A "Simple" DataElement.
Actually, this should be called a "normal" data element, which should make up the bulk of the slate. Contains a single DataValue.