Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NodeCollection.cs
1using System.Threading.Tasks;
3
5{
10 {
15 : base()
16 {
17 }
18
24 public override Task<string> GetTypeNameAsync(Language Language)
25 {
26 return Language.GetStringAsync(typeof(MeteringTopology), 108, "Node Collection");
27 }
28
34 public override Task<bool> AcceptsChildAsync(INode Child)
35 {
36 return Task.FromResult(true);
37 }
38
44 public override Task<bool> AcceptsParentAsync(INode Parent)
45 {
46 return Task.FromResult(
47 Parent is Root ||
49 }
50 }
51}
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
Base class for all metering nodes.
Definition: MeteringNode.cs:30
INode Parent
Parent Node, or null if a root node.
Defines the Metering Topology data source. This data source contains a tree structure of persistent r...
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< string > GetTypeNameAsync(Language Language)
Gets the type name of 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...
Class for the root node of the Metering topology.
Definition: Root.cs:10
Interface for nodes that are published through the concentrator interface.
Definition: INode.cs:49