![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Defines the Groups data source. This data source contains a tree structure of groups of nodes More...
Public Member Functions | |
| GroupSource () | |
| 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< GroupNode > | GetNode (string NodeId) |
| Gets a node from the Metering Topology More... | |
| static async Task< GroupNode > | 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 bool | TryGetDataSource (string SourceId, out IDataSource Source) |
| Tries to get a data source, given its Source ID. More... | |
Static Public Attributes | |
| const string | SourceID = "Groups" |
| Source ID for the groups 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 Groups data source. This data source contains a tree structure of groups of nodes
Definition at line 20 of file GroupSource.cs.
| Waher.Groups.GroupSource.GroupSource | ( | ) |
Defines the Metering Topology data source. This data source contains a tree structure of persistent readable and controllable devices
Definition at line 39 of file GroupSource.cs.
| Task< bool > Waher.Groups.GroupSource.CanViewAsync | ( | RequestOrigin | Caller | ) |
If the data source is visible to the caller.
| Caller | Information about caller. |
Implements Waher.Things.IDataSource.
Definition at line 195 of file GroupSource.cs.
|
static |
Deletes old data source events.
| MaxAge | Maximum age of events to keep. |
Definition at line 290 of file GroupSource.cs.
|
static |
Deletes orphaned nodes in the metering topology source.
Definition at line 332 of file GroupSource.cs.
| Task< string > Waher.Groups.GroupSource.GetNameAsync | ( | Language | Language | ) |
Gets the name of data source.
| Language | Language to use. |
Implements Waher.Things.IDataSource.
Definition at line 81 of file GroupSource.cs.
|
static |
Gets a node from the Metering Topology
| NodeRef | Node reference |
Definition at line 111 of file GroupSource.cs.
|
static |
Gets a node from the Metering Topology
| NodeId | Node ID |
Definition at line 101 of file GroupSource.cs.
| async Task< INode > Waher.Groups.GroupSource.GetNodeAsync | ( | IThingReference | NodeRef | ) |
Gets the node, given a reference to it.
| NodeRef | Node reference. |
Implements Waher.Things.IDataSource.
Definition at line 91 of file GroupSource.cs.
|
static |
Tries to get a data source, given its Source ID.
| SourceId | Data Source ID. |
| Source | Source, if found. |
Definition at line 363 of file GroupSource.cs.
|
static |
Source ID for the groups data source.
Definition at line 25 of file GroupSource.cs.
|
get |
Child sources. If no child sources are available, null is returned.
Implements Waher.Things.IDataSource.
Definition at line 53 of file GroupSource.cs.
|
get |
If the source has any child sources.
Implements Waher.Things.IDataSource.
Definition at line 58 of file GroupSource.cs.
|
getset |
When the source was last updated.
Implements Waher.Things.IDataSource.
Definition at line 63 of file GroupSource.cs.
|
staticget |
Root node.
Definition at line 217 of file GroupSource.cs.
|
get |
Root node references. If no root nodes are available, null is returned.
Implements Waher.Things.IDataSource.
Definition at line 203 of file GroupSource.cs.
| EventHandlerAsync<SourceEvent> Waher.Groups.GroupSource.OnEvent = null |
Event raised when a data source event has been raised.
Definition at line 320 of file GroupSource.cs.