Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ControlClientExtension.cs
1using System;
2using System.Threading.Tasks;
5
7{
12 {
19 : base(Parent, Model)
20 {
21 }
22
26 public override string LocalName => nameof(ControlClientExtension);
27
35 {
37 }
38
45 public override Task<object> Add(IActor Instance, Waher.Networking.XMPP.XmppClient Client)
46 {
47 ControlClient Extension = new ControlClient(Client);
48 Client.SetTag("ControlClient", Extension);
49
50 return Task.FromResult<object>(Extension);
51 }
52
53 }
54}
Root node of a simulation model
Definition: Model.cs:49
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
override Task< object > Add(IActor Instance, Waher.Networking.XMPP.XmppClient Client)
Adds the extension to the client.
ControlClientExtension(ISimulationNode Parent, Model Model)
Control Client XMPP extension
override string LocalName
Local name of XML element defining contents of class.
Abstract base class for IoT XMPP extensions.
Implements an XMPP control client interface.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
Definition: XmppClient.cs:59
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
Definition: IActor.cs:11
Definition: App.xaml.cs:4