template<typename _RwType>
class DtRwPropertyWithThreshold< _RwType >
This class is similar to DtRwProperty, but allows you to specify a threshold at which the value should be considered different enough to require an update. wasUpdatedSince() will return false until the threshold is met. The threshold is defined as a percentage of the current value.
|
| | DtRwPropertyWithThreshold (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) |
| |
| | DtRwPropertyWithThreshold (const DtString &name, const DtRwPropertyWithThreshold &orig, DtReaderWriterRegistry *parentRegistry=0) |
| |
| DtRwPropertyWithThreshold & | operator= (const DtRwPropertyWithThreshold &orig) |
| |
| virtual | ~DtRwPropertyWithThreshold () |
| |
| virtual char * | encode (char *) const |
| |
| virtual bool | wasUpdatedSince (DtTime t) const |
| |
| virtual void | enableThresholding (bool enable) |
| |
| virtual void | setThreshold (double percentage) |
| |
| virtual void | setMaxUpdateInterval (DtTime interval) |
| |
| virtual void | setMaxUnchangedUpdateInterval (DtTime interval) |
| |
| | DtRwProperty (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) |
| |
| | DtRwProperty (const DtString &name, const DtRwProperty &orig, DtReaderWriterRegistry *parentRegistry=0) |
| |
| DtRwProperty & | operator= (const DtRwProperty &orig) |
| |
| virtual | ~DtRwProperty () |
| |
| virtual void | copy (const DtPropertyInterface &rhs) |
| |
| virtual DtString | stringRep (const DtString &root="") const |
| |
| virtual const char * | propertyType () const |
| |
| virtual DtSymbolString | propertyName () const |
| |
| virtual void | setPropertyName (const DtString &propertyName) |
| |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=DtReaderWriter::SearchPaths(), const DtVariableBindingsList &variableBindings=DtReaderWriter::nullVariableReference()) |
| |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| |
| virtual bool | merge (const DtPropertyInterface &target, MergeFlags, const DtMergePath &path=DtMergePath(), const std::set< DtString > &ignore=std::set< DtString >()) |
| |
| virtual void | recordUpdateTime () const |
| |
| virtual void | reset () |
| |
| virtual const char * | decode (const char *) |
| |
| virtual void | getSize (int &size) const |
| |
| virtual int | hlaAlignment () const |
| |
| virtual DtReaderWriter * | readerWriter () |
| |
| virtual const DtReaderWriter * | readerWriter () const |
| |
| virtual DtPropertyInterface * | property () |
| |
| virtual const DtPropertyInterface * | property () const |
| |
| virtual bool | isPublished () const |
| |
| virtual void | setIsPublished (bool isPub) |
| |
| virtual unsigned | disRecordType () const |
| |
| virtual void | setDisRecordType (unsigned recType) |
| |
| virtual bool | isDebugEnabled () const |
| |
| virtual void | setDebugEnabled (bool en) |
| |
| virtual | ~DtPropertyInterface () |
| |
| virtual bool | isSimilarProperty (const DtPropertyInterface *rhs, bool strict=true) const |
| |
| virtual bool | isPublishedArg (DtlObjPtr arg, unsigned &disVarRecType) const |
| |
| template<typename ValueType > |
| boost::optional< ValueType > | propertyValue () const |
| |
| template<typename ValueType > |
| bool | setPropertyValue (ValueType val) |
| |
| virtual const DtPropertyInterface * | findPropertyInterface (const DtString &propertyName) const |
| |
| virtual DtPropertyInterface * | findPropertyInterface (const DtString &propertyName) |
| |
| template<typename SpecificPropType > |
| const SpecificPropType * | findProperty (const DtString &propertyName) const |
| |
| template<typename SpecificPropType > |
| SpecificPropType * | findProperty (const DtString &propertyName) |
| |
| template<typename ValueType > |
| boost::optional< ValueType > | findPropertyValue (const DtString &propertyName) const |
| |
| template<typename ValueType > |
| bool | findAndSetPropertyValue (const DtString &propertyName, ValueType val) |
| |
| virtual bool | addProperty (DtPropertyInterface *property) |
| |
| template<typename SpecificPropType > |
| SpecificPropType * | addNewProperty (const DtString &propertyName) |
| |
| virtual bool | removeProperty (const DtString &propertyName) |
| |
| virtual bool | removeProperty (const DtPropertyInterface *property) |
| |
| int | getSize () const |
| |
template<typename _RwType>
Changes the maximum time between updates if data has changed but has not crossed the threshold for an update, but seems to have settled on a new value. For instance, if the threshold his 2%, and a value goes from 99 to 100 where it caps out, it will never hit the 2% mark, and therefore an update would otherwise not be sent for a full minute. This setting indicates how long a value should stabilize, remaining unchanged, before we send it. Should be greater than the tick rate but less than the max update interval.