#include <TimeFeature.h>
Inheritance diagram for TimeFeature:
Public Types | |
enum | FeatureKind { Timestamp, Second, Minute, Hour, Day, Weekday, Yearday, Month, Year } |
Public Member Functions | |
virtual double | getPosition () const |
virtual double | getDistance (Feature *f) const |
virtual void | moveTowards (Feature *f, double factor) |
virtual string | serialize () const |
virtual void | unserialize (string value) |
virtual featureparams | write () const |
virtual void | read (featureparams *param) |
virtual Feature * | clone () const |
virtual void | aggregate (aggregatelist samples) |
virtual FeatureType | getType () const |
virtual const string | getName () const |
virtual time_t | getVal () const |
const time_t | getMin () const |
const time_t | getMax () const |
virtual string | toString () const |
Protected Member Functions | |
TimeFeature (FeatureKind kind, time_t *minval, time_t *maxval) | |
TimeFeature (FeatureKind kind, time_t *minval, time_t *maxval, time_t timestamp) | |
Friends | |
class | TimeFeatureProvider |
|
Possible kinds of time features |
|
|
|
|
|
Aggregate a sample values from other sources
Implements Feature. |
|
Clone a feature A feature must be able to clone itself. This is typically implemented with a copy constructor, but should return a new object. Implements Feature. |
|
Calculates the distance between two features
Implements Feature. |
|
Query a features name
Implements Feature. |
|
Query a features position
Implements Feature. |
|
Query a features type
Implements Feature. |
|
|
|
Move feature Moves the feature towards a given sample value by the specified factor (factor times the distance). If the factor is 0, the old feature value must not change. If the factor is 1, the new feature value should be equivalent to the sample s.
Implements Feature. |
|
Load feature from persistant data Initializes the persistant feature data from the given representation.
Implements PersistantFeature. |
|
Serialize a samples data to a string
Implements Feature. |
|
This is only for testing. Implements Feature. |
|
Unserialize a samples data from a string
Implements Feature. |
|
Externalize feature
Implements PersistantFeature. |