Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IBucket.cs
1using System;
2using System.Xml;
4using Waher.Content;
6
8{
12 public interface IBucket : IGraph
13 {
17 string Id
18 {
19 get;
20 }
21
26 {
27 get;
28 }
29
34 {
35 get;
36 set;
37 }
38
43 DateTime Inc();
44
49 DateTime Dec();
50
57 DateTime Sample(DateTime Timestamp, PhysicalQuantity Value);
58
65 DateTime Sample(DateTime Timestamp, double Value);
66
72 DateTime CountOccurrence(DateTime Timestamp);
73
77 void Flush();
78
84 void ExportXml(XmlWriter Output, string RowElement);
85
90 void Add(IFilter Filter);
91 }
92}
Interface for graph nodes
Definition: IGraph.cs:10
Interface for buckets.
Definition: IBucket.cs:13
void ExportXml(XmlWriter Output, string RowElement)
Exports data to XML
void Flush()
Terminates the ongoing collection of data.
Duration BucketTime
Time to accumulate values.
Definition: IBucket.cs:34
DateTime Sample(DateTime Timestamp, double Value)
Adds a sample
DateTime Dec()
Decrements counter.
void Add(IFilter Filter)
Adds a filter to the bucket.
DateTime CountOccurrence(DateTime Timestamp)
Counts one occurrence
long TotalCount
Total Counter
Definition: IBucket.cs:26
DateTime Sample(DateTime Timestamp, PhysicalQuantity Value)
Adds a sample
DateTime Inc()
Increments counter.
Interface for sample filters
Definition: IFilter.cs:9
Represents a duration value, as defined by the xsd:duration data type: http://www....
Definition: Duration.cs:13