Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Root.cs
1using System;
2using System.Threading.Tasks;
4
6{
10 public class Root : MeteringNode
11 {
15 public Root()
16 : base()
17 {
18 }
19
25 public override Task<string> GetTypeNameAsync(Language Language)
26 {
27 return Language.GetStringAsync(typeof(MeteringTopology), 14, "Root");
28 }
29
35 public override Task<bool> AcceptsChildAsync(INode Child)
36 {
37 return Task.FromResult(true);
38 }
39
45 public override Task<bool> AcceptsParentAsync(INode Parent)
46 {
47 return Task.FromResult(false);
48 }
49
55 public override Task<bool> CanEditAsync(RequestOrigin Caller)
56 {
57 return Task.FromResult(false);
58 }
59
65 public override Task<bool> CanDestroyAsync(RequestOrigin Caller)
66 {
67 return Task.FromResult(false);
68 }
69 }
70}
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:28
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...
Class for the root node of the Metering topology.
Definition: Root.cs:11
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 ...
Definition: Root.cs:35
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...
Definition: Root.cs:45
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
Definition: Root.cs:25
Root()
Class for the root node of the Metering topology.
Definition: Root.cs:15
override Task< bool > CanDestroyAsync(RequestOrigin Caller)
If the node can be destroyed to by the caller.
Definition: Root.cs:65
override Task< bool > CanEditAsync(RequestOrigin Caller)
If the node can be edited by the caller.
Definition: Root.cs:55
Tokens available in request.
Definition: RequestOrigin.cs:9
Interface for nodes that are published through the concentrator interface.
Definition: INode.cs:49