Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
MeteringGroup.cs
1using System.Threading.Tasks;
4using Waher.Things;
5
7{
11 public class MeteringGroup : Group
12 {
17 {
18 }
19
25 public override Task<string> GetTypeNameAsync(Language Language)
26 {
27 return Language.GetStringAsync(typeof(MeteringGroup), 1, "Metering Group");
28 }
29
35 public override Task<bool> AcceptsChildAsync(INode Child)
36 {
37 return Task.FromResult(
38 Child is MeteringNodeReference ||
39 Child is MeteringGroup);
40 }
41
47 public override Task<bool> AcceptsParentAsync(INode Parent)
48 {
49 return Task.FromResult(Parent is Root || Parent is MeteringGroup);
50 }
51 }
52}
INode Parent
Parent Node, or null if a root node.
Definition: GroupNode.cs:621
Represents a group of metering nodes.
override Task< bool > AcceptsChildAsync(INode Child)
If the node accepts a presumptive child, i.e. can receive as a child (if that child accepts the node ...
override Task< bool > AcceptsParentAsync(INode Parent)
If the node accepts a presumptive parent, i.e. can be added to that parent (if that parent accepts th...
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
MeteringGroup()
Represents a group of metering nodes.
Represents a group of nodes.
Definition: Group.cs:13
Class for the root node of the Groups data source.
Definition: Root.cs:11
Contains information about a language.
Definition: Language.cs:17
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Definition: Language.cs:209
Interface for nodes that are published through the concentrator interface.
Definition: INode.cs:49