![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Interface for commands. More...
Public Member Functions | |
Task< string > | GetNameAsync (Language Language) |
Gets the name of data source. More... | |
Task< string > | GetConfirmationStringAsync (Language Language) |
Gets a confirmation string, if any, of the command. If no confirmation is necessary, null, or the empty string can be returned. More... | |
Task< string > | GetFailureStringAsync (Language Language) |
Gets a failure string, if any, of the command. If no specific failure string is available, null, or the empty string can be returned. More... | |
Task< string > | GetSuccessStringAsync (Language Language) |
Gets a success string, if any, of the command. If no specific success string is available, null, or the empty string can be returned. More... | |
Task< bool > | CanExecuteAsync (RequestOrigin Caller) |
If the command can be executed by the caller. More... | |
Task | ExecuteCommandAsync () |
Executes the command. More... | |
Task | StartQueryExecutionAsync (Query Query, Language Language) |
Starts the execution of a query. More... | |
ICommand | Copy () |
Creates a copy of the command object. More... | |
Properties | |
string | CommandID [get] |
ID of command. More... | |
CommandType | Type [get] |
Type of command. More... | |
string | SortCategory [get] |
Sort Category, if available. More... | |
string | SortKey [get] |
Sort Key, if available. More... | |
Interface for commands.
Definition at line 31 of file ICommand.cs.
Task< bool > Waher.Things.ICommand.CanExecuteAsync | ( | RequestOrigin | Caller | ) |
If the command can be executed by the caller.
Caller | Information about caller. |
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, and Waher.Things.Xmpp.Commands.ReconnectCommand.
ICommand Waher.Things.ICommand.Copy | ( | ) |
Creates a copy of the command object.
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, Waher.Things.Xmpp.Commands.ReconnectCommand, Waher.Things.Xmpp.Commands.ScanNode, Waher.Things.Xmpp.Commands.ScanRootSources, Waher.Things.Xmpp.Commands.ScanSource, and Waher.Things.Xmpp.Commands.SubscribeToPresence.
Task Waher.Things.ICommand.ExecuteCommandAsync | ( | ) |
Executes the command.
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, Waher.Things.Xmpp.Commands.ReconnectCommand, Waher.Things.Xmpp.Commands.ScanNode, Waher.Things.Xmpp.Commands.ScanRootSources, Waher.Things.Xmpp.Commands.ScanSource, and Waher.Things.Xmpp.Commands.SubscribeToPresence.
Task< string > Waher.Things.ICommand.GetConfirmationStringAsync | ( | Language | Language | ) |
Gets a confirmation string, if any, of the command. If no confirmation is necessary, null, or the empty string can be returned.
Language | Language to use. |
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, and Waher.Things.Xmpp.Commands.ReconnectCommand.
Task< string > Waher.Things.ICommand.GetFailureStringAsync | ( | Language | Language | ) |
Gets a failure string, if any, of the command. If no specific failure string is available, null, or the empty string can be returned.
Language | Language to use. |
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, and Waher.Things.Xmpp.Commands.ReconnectCommand.
Task< string > Waher.Things.ICommand.GetNameAsync | ( | Language | Language | ) |
Gets the name of data source.
Language | Language to use. |
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, Waher.Things.Xmpp.Commands.ReconnectCommand, Waher.Things.Xmpp.Commands.ScanNode, Waher.Things.Xmpp.Commands.ScanRootSources, Waher.Things.Xmpp.Commands.ScanSource, and Waher.Things.Xmpp.Commands.SubscribeToPresence.
Task< string > Waher.Things.ICommand.GetSuccessStringAsync | ( | Language | Language | ) |
Gets a success string, if any, of the command. If no specific success string is available, null, or the empty string can be returned.
Language | Language to use. |
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, and Waher.Things.Xmpp.Commands.ReconnectCommand.
Starts the execution of a query.
Query | Query data receptor. |
Language | Language to use. |
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, and Waher.Things.Xmpp.Commands.ReconnectCommand.
|
get |
ID of command.
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, Waher.Things.Xmpp.Commands.ReconnectCommand, Waher.Things.Xmpp.Commands.ScanNode, Waher.Things.Xmpp.Commands.ScanRootSources, Waher.Things.Xmpp.Commands.ScanSource, and Waher.Things.Xmpp.Commands.SubscribeToPresence.
Definition at line 36 of file ICommand.cs.
|
get |
Sort Category, if available.
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, and Waher.Things.Xmpp.Commands.ReconnectCommand.
Definition at line 52 of file ICommand.cs.
|
get |
Sort Key, if available.
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, and Waher.Things.Xmpp.Commands.ReconnectCommand.
Definition at line 60 of file ICommand.cs.
|
get |
Type of command.
Implemented in Waher.Service.IoTBroker.Sources.PersistedData.Commands.EventStatistics, Waher.Service.IoTBroker.Sources.PersistedData.Commands.SearchEvents, Waher.Service.IoTBroker.Sources.ProgramData.CreateFolderCommand, Waher.Service.IoTBroker.Sources.ProgramData.CreateTextFileCommand, Waher.Service.IoTBroker.Sources.ProgramData.EditTextCommand, Waher.Service.IoTBroker.Sources.Protocols.Commands.HttpStatistics, Waher.Service.IoTBroker.Sources.Protocols.Commands.XmppStatistics, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsRoot, Waher.Things.Ieee1451.Ieee1451_1_6.DiscoverNcapsTopic, Waher.Things.Metering.Commands.ClearMessages, Waher.Things.Metering.Commands.LogMessage, Waher.Things.Script.ScriptCommand, Waher.Things.Script.ScriptQuery, Waher.Things.Xmpp.Commands.ConnectedDeviceCommand, Waher.Things.Xmpp.Commands.ReconnectCommand, Waher.Things.Xmpp.Commands.ScanNode, Waher.Things.Xmpp.Commands.ScanRootSources, Waher.Things.Xmpp.Commands.ScanSource, and Waher.Things.Xmpp.Commands.SubscribeToPresence.
Definition at line 44 of file ICommand.cs.