![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Defines the Output data source. This data source contains a tree structure of output of nodes More...
Public Member Functions | |
| OutputSource () | |
| Defines the Metering Topology data source. This data source contains a tree structure of persistent readable and controllable devices More... | |
| Task< string > | GetNameAsync (Language Language) |
| Gets the name of data source. More... | |
| async Task< INode > | GetNodeAsync (IThingReference NodeRef) |
| Gets the node, given a reference to it. More... | |
| Task< bool > | CanViewAsync (RequestOrigin Caller) |
| If the data source is visible to the caller. More... | |
Static Public Member Functions | |
| static Task< OutputNode > | GetNode (string NodeId) |
| Gets a node from the Metering Topology More... | |
| static async Task< OutputNode > | GetNode (IThingReference NodeRef) |
| Gets a node from the Metering Topology More... | |
| static async Task< int > | DeleteOldEvents (TimeSpan MaxAge) |
| Deletes old data source events. More... | |
| static async Task< int > | DeleteOrphans () |
| Deletes orphaned nodes in the metering topology source. More... | |
Static Public Attributes | |
| const string | SourceID = "Output" |
| Source ID for the output data source. More... | |
Properties | |
| IEnumerable< IDataSource > | ChildSources [get] |
| Child sources. If no child sources are available, null is returned. More... | |
| bool | HasChildren [get] |
| If the source has any child sources. More... | |
| DateTime | LastChanged [get, set] |
| When the source was last updated. More... | |
| IEnumerable< INode > | RootNodes [get] |
| Root node references. If no root nodes are available, null is returned. More... | |
| static Root | Root [get] |
| Root node. More... | |
Events | |
| EventHandlerAsync< SourceEvent > | OnEvent = null |
| Event raised when a data source event has been raised. More... | |
Defines the Output data source. This data source contains a tree structure of output of nodes
Definition at line 19 of file OutputSource.cs.
| Waher.Output.OutputSource.OutputSource | ( | ) |
Defines the Metering Topology data source. This data source contains a tree structure of persistent readable and controllable devices
Definition at line 36 of file OutputSource.cs.
| Task< bool > Waher.Output.OutputSource.CanViewAsync | ( | RequestOrigin | Caller | ) |
If the data source is visible to the caller.
| Caller | Information about caller. |
Implements Waher.Things.IDataSource.
Definition at line 192 of file OutputSource.cs.
|
static |
Deletes old data source events.
| MaxAge | Maximum age of events to keep. |
Definition at line 287 of file OutputSource.cs.
|
static |
Deletes orphaned nodes in the metering topology source.
Definition at line 329 of file OutputSource.cs.
| Task< string > Waher.Output.OutputSource.GetNameAsync | ( | Language | Language | ) |
Gets the name of data source.
| Language | Language to use. |
Implements Waher.Things.IDataSource.
Definition at line 78 of file OutputSource.cs.
|
static |
Gets a node from the Metering Topology
| NodeRef | Node reference |
Definition at line 108 of file OutputSource.cs.
|
static |
Gets a node from the Metering Topology
| NodeId | Node ID |
Definition at line 98 of file OutputSource.cs.
| async Task< INode > Waher.Output.OutputSource.GetNodeAsync | ( | IThingReference | NodeRef | ) |
Gets the node, given a reference to it.
| NodeRef | Node reference. |
Implements Waher.Things.IDataSource.
Definition at line 88 of file OutputSource.cs.
|
static |
Source ID for the output data source.
Definition at line 24 of file OutputSource.cs.
|
get |
Child sources. If no child sources are available, null is returned.
Implements Waher.Things.IDataSource.
Definition at line 50 of file OutputSource.cs.
|
get |
If the source has any child sources.
Implements Waher.Things.IDataSource.
Definition at line 55 of file OutputSource.cs.
|
getset |
When the source was last updated.
Implements Waher.Things.IDataSource.
Definition at line 60 of file OutputSource.cs.
|
staticget |
Root node.
Definition at line 214 of file OutputSource.cs.
|
get |
Root node references. If no root nodes are available, null is returned.
Implements Waher.Things.IDataSource.
Definition at line 200 of file OutputSource.cs.
| EventHandlerAsync<SourceEvent> Waher.Output.OutputSource.OnEvent = null |
Event raised when a data source event has been raised.
Definition at line 317 of file OutputSource.cs.