![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Class handling the reception of data from a query. More...
Public Member Functions | |
| Query (string CommandId, string QueryId, object State, Language Language, INode NodeReference, RequestOrigin Origin) | |
| Class handling the reception of data from a query. More... | |
| int | NextSequenceNumber () |
| Gets the next sequence number. More... | |
| virtual async Task | Abort () |
| Aborts the query. More... | |
| Task | Start () |
| Starts query execution. More... | |
| async Task | Done () |
| Query execution completed. More... | |
| Task | NewTable (string TableId, string TableName, params Column[] Columns) |
| Defines a new table in the query output. More... | |
| Task | NewRecords (string TableId, params Record[] Records) |
| Reports a new set of records in a table. More... | |
| Task | TableDone (string TableId) |
| Reports a table as being complete. More... | |
| Task | NewObject (object Object) |
| Reports a new object. More... | |
| Task | LogMessage (Exception Exception) |
| Logs an Exception as a query message. More... | |
| Task | LogMessage (QueryEventLevel Level, Exception Exception) |
| Logs an Exception as a query message. More... | |
| Task | LogMessage (QueryEventType Type, QueryEventLevel Level, string Body) |
| Logs a query message. More... | |
| Task | SetTitle (string Title) |
| Sets the title of the report. More... | |
| Task | SetStatus (string Status) |
| Sets the current status of the query execution. More... | |
| Task | BeginSection (string Header) |
| Begins a new section. Sections can be nested. Each call to BeginSection(string) must be followed by a call to EndSection(). More... | |
| Task | EndSection () |
| Ends a section. Each call to BeginSection(string) must be followed by a call to EndSection(). More... | |
| void | Information (string Comment) |
| Called to inform the viewer of something. More... | |
| void | Warning (string Warning) |
| Called to inform the viewer of a warning state. More... | |
| void | Error (string Error) |
| Called to inform the viewer of an error state. More... | |
| void | Exception (Exception Exception) |
| Called to inform the viewer of an exception state. More... | |
| void | Exception (string Exception) |
| Called to inform the viewer of an exception state. More... | |
| void | Information (DateTime Timestamp, string Comment) |
| Called to inform the viewer of something. More... | |
| void | Warning (DateTime Timestamp, string Warning) |
| Called to inform the viewer of a warning state. More... | |
| void | Error (DateTime Timestamp, string Error) |
| Called to inform the viewer of an error state. More... | |
| void | Exception (DateTime Timestamp, string Exception) |
| Called to inform the viewer of an exception state. More... | |
| void | Exception (DateTime Timestamp, Exception Exception) |
| Called to inform the viewer of an exception state. More... | |
Properties | |
| string | CommandID [get] |
| Command ID More... | |
| string | QueryID [get] |
| Query ID More... | |
| object | State [get] |
| State object. More... | |
| Language | Language [get] |
| Language of query. More... | |
| INode | NodeReference [get] |
| Node reference. More... | |
| RequestOrigin | Origin [get] |
| Origin of request to execute the query. More... | |
| bool | IsStarted [get] |
| If the query has been started. More... | |
| bool | IsAborted [get] |
| If the query is aborted. More... | |
| bool | IsDone [get] |
| If the query is done. More... | |
| int | SequenceNumber [get] |
| Curernt sequence number counter. More... | |
| int | NrSectionsBegun [get] |
| Number of sectios begun. More... | |
| int | NrSectionsEnded [get] |
| Number of sectios ended. More... | |
| int | NrTablesStarted [get] |
| Number of tables started. More... | |
| int | NrTablesCompleted [get] |
| Number of tables compeleted. More... | |
| int | NrObjectsReported [get] |
| Number of objects reported. More... | |
| int | NrMessagesReported [get] |
| Number of messages reported. More... | |
| int | NrRecordsReported [get] |
| Number of records reported. More... | |
| int | NrTotalItemsReported [get] |
| Number of items (total) reported. More... | |
| bool | HasTitle [get] |
| If a title has been set More... | |
| bool | HasReported [get] |
| If anything has been reported. More... | |
| bool | DecoupledEvents [get] |
| If events raised from the communication layer are decoupled, i.e. executed in parallel with the source that raised them. More... | |
Events | |
| EventHandlerAsync< QueryEventArgs > | OnAborted = null |
| Event raised when the query has been aborted. More... | |
| EventHandlerAsync< QueryEventArgs > | OnStarted = null |
| Event raised when the query has been aborted. More... | |
| EventHandlerAsync< QueryEventArgs > | OnDone = null |
| Event raised when query has been completed. More... | |
| EventHandlerAsync< QueryNewTableEventArgs > | OnNewTable = null |
| Event raised when a new table has been created. More... | |
| EventHandlerAsync< QueryNewRecordsEventArgs > | OnNewRecords = null |
| Event raised when new records are reported for a table. More... | |
| EventHandlerAsync< QueryTableEventArgs > | OnTableDone = null |
| Event raised when a table is completed. More... | |
| EventHandlerAsync< QueryObjectEventArgs > | OnNewObject = null |
| Event raised when new records are reported for a table. More... | |
| EventHandlerAsync< QueryMessageEventArgs > | OnMessage = null |
| Event raised when a new message has been received. More... | |
| EventHandlerAsync< QueryTitleEventArgs > | OnTitle = null |
| Event raised when the report title has been set. More... | |
| EventHandlerAsync< QueryStatusEventArgs > | OnStatus = null |
| Event raised when the current status changes. More... | |
| EventHandlerAsync< QueryTitleEventArgs > | OnBeginSection = null |
| Event raised when a new section is created. More... | |
| EventHandlerAsync< QueryEventArgs > | OnEndSection = null |
| Event raised when a section is closed. More... | |
| Waher.Things.Queries.Query.Query | ( | string | CommandId, |
| string | QueryId, | ||
| object | State, | ||
| Language | Language, | ||
| INode | NodeReference, | ||
| RequestOrigin | Origin | ||
| ) |
|
virtual |
Aborts the query.
Reimplemented in Waher.Things.Queries.CompoundQuery.
| Task Waher.Things.Queries.Query.BeginSection | ( | string | Header | ) |
Begins a new section. Sections can be nested. Each call to BeginSection(string) must be followed by a call to EndSection().
| Header | Section Title. |
| async Task Waher.Things.Queries.Query.Done | ( | ) |
| Task Waher.Things.Queries.Query.EndSection | ( | ) |
Ends a section. Each call to BeginSection(string) must be followed by a call to EndSection().
| void Waher.Things.Queries.Query.Error | ( | DateTime | Timestamp, |
| string | Error | ||
| ) |
Called to inform the viewer of an error state.
| Timestamp | Timestamp of event. |
| Error | Error. |
Implements Waher.Events.IObservableLayer.
| void Waher.Things.Queries.Query.Error | ( | string | Error | ) |
Called to inform the viewer of an error state.
| Error | Error. |
Implements Waher.Events.IObservableLayer.
| void Waher.Things.Queries.Query.Exception | ( | DateTime | Timestamp, |
| Exception | Exception | ||
| ) |
Called to inform the viewer of an exception state.
| Timestamp | Timestamp of event. |
| Exception | Exception. |
Implements Waher.Events.IObservableLayer.
| void Waher.Things.Queries.Query.Exception | ( | DateTime | Timestamp, |
| string | Exception | ||
| ) |
Called to inform the viewer of an exception state.
| Timestamp | Timestamp of event. |
| Exception | Exception. |
Implements Waher.Events.IObservableLayer.
| void Waher.Things.Queries.Query.Exception | ( | Exception | Exception | ) |
Called to inform the viewer of an exception state.
| Exception | Exception. |
Implements Waher.Events.IObservableLayer.
| void Waher.Things.Queries.Query.Exception | ( | string | Exception | ) |
Called to inform the viewer of an exception state.
| Exception | Exception. |
Implements Waher.Events.IObservableLayer.
| void Waher.Things.Queries.Query.Information | ( | DateTime | Timestamp, |
| string | Comment | ||
| ) |
Called to inform the viewer of something.
| Timestamp | Timestamp of event. |
| Comment | Comment. |
Implements Waher.Events.IObservableLayer.
| void Waher.Things.Queries.Query.Information | ( | string | Comment | ) |
Called to inform the viewer of something.
| Comment | Comment. |
Implements Waher.Events.IObservableLayer.
| Task Waher.Things.Queries.Query.LogMessage | ( | Exception | Exception | ) |
| Task Waher.Things.Queries.Query.LogMessage | ( | QueryEventLevel | Level, |
| Exception | Exception | ||
| ) |
| Task Waher.Things.Queries.Query.LogMessage | ( | QueryEventType | Type, |
| QueryEventLevel | Level, | ||
| string | Body | ||
| ) |
| Task Waher.Things.Queries.Query.NewObject | ( | object | Object | ) |
| Task Waher.Things.Queries.Query.NewRecords | ( | string | TableId, |
| params Record[] | Records | ||
| ) |
| Task Waher.Things.Queries.Query.NewTable | ( | string | TableId, |
| string | TableName, | ||
| params Column[] | Columns | ||
| ) |
| int Waher.Things.Queries.Query.NextSequenceNumber | ( | ) |
| Task Waher.Things.Queries.Query.SetStatus | ( | string | Status | ) |
| Task Waher.Things.Queries.Query.SetTitle | ( | string | Title | ) |
| Task Waher.Things.Queries.Query.Start | ( | ) |
| Task Waher.Things.Queries.Query.TableDone | ( | string | TableId | ) |
| void Waher.Things.Queries.Query.Warning | ( | DateTime | Timestamp, |
| string | Warning | ||
| ) |
Called to inform the viewer of a warning state.
| Timestamp | Timestamp of event. |
| Warning | Warning. |
Implements Waher.Events.IObservableLayer.
| void Waher.Things.Queries.Query.Warning | ( | string | Warning | ) |
Called to inform the viewer of a warning state.
| Warning | Warning. |
Implements Waher.Events.IObservableLayer.
|
get |
If events raised from the communication layer are decoupled, i.e. executed in parallel with the source that raised them.
Implements Waher.Events.IObservableLayer.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
| EventHandlerAsync<QueryEventArgs> Waher.Things.Queries.Query.OnAborted = null |
| EventHandlerAsync<QueryTitleEventArgs> Waher.Things.Queries.Query.OnBeginSection = null |
| EventHandlerAsync<QueryEventArgs> Waher.Things.Queries.Query.OnDone = null |
| EventHandlerAsync<QueryEventArgs> Waher.Things.Queries.Query.OnEndSection = null |
| EventHandlerAsync<QueryMessageEventArgs> Waher.Things.Queries.Query.OnMessage = null |
| EventHandlerAsync<QueryObjectEventArgs> Waher.Things.Queries.Query.OnNewObject = null |
| EventHandlerAsync<QueryNewRecordsEventArgs> Waher.Things.Queries.Query.OnNewRecords = null |
| EventHandlerAsync<QueryNewTableEventArgs> Waher.Things.Queries.Query.OnNewTable = null |
| EventHandlerAsync<QueryEventArgs> Waher.Things.Queries.Query.OnStarted = null |
| EventHandlerAsync<QueryStatusEventArgs> Waher.Things.Queries.Query.OnStatus = null |
| EventHandlerAsync<QueryTableEventArgs> Waher.Things.Queries.Query.OnTableDone = null |
| EventHandlerAsync<QueryTitleEventArgs> Waher.Things.Queries.Query.OnTitle = null |