Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ConcentratorPartitionNode.cs
1using System.Threading.Tasks;
5
6namespace Waher.Things.Xmpp
7{
12 {
17 : base()
18 {
19 }
20
24 [Page(2, "XMPP", 100)]
25 [Header(7, "Partition:")]
26 [ToolTip(8, "Partition in data source.")]
27 public string RemotePartitionID { get; set; }
28
32 public override string LocalId => this.RemotePartitionID;
33
39 public override Task<string> GetTypeNameAsync(Language Language)
40 {
41 return Language.GetStringAsync(typeof(ConcentratorDevice), 9, "Partition");
42 }
43
49 public override Task<bool> AcceptsParentAsync(INode Parent)
50 {
51 return Task.FromResult(Parent is ConcentratorSourceNode || Parent is XmppBrokerNode);
52 }
53
59 public override Task<bool> AcceptsChildAsync(INode Child)
60 {
61 return Task.FromResult(Child is ConcentratorNode);
62 }
63
64 }
65}
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
INode Parent
Parent Node, or null if a root node.
Base class for all provisioned metering nodes.
Node representing an XMPP concentrator.
Base class for nodes in a remote concentrator.
Node representing a partition in a data source in an XMPP concentrator.
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.
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 ...
ConcentratorPartitionNode()
Node representing a partition in a data source in an XMPP concentrator.
override string LocalId
If provided, an ID for the node, but unique locally between siblings. Can be null,...
Node representing a data source in an XMPP concentrator.
Node representing an XMPP broker.
Interface for nodes that are published through the concentrator interface.
Definition: INode.cs:49