Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SensorClientExtension.cs
1using System;
2using System.Threading.Tasks;
5
7{
12 {
19 : base(Parent, Model)
20 {
21 }
22
26 public override string LocalName => nameof(SensorClientExtension);
27
35 {
37 }
38
45 public override Task<object> Add(IActor Instance, Waher.Networking.XMPP.XmppClient Client)
46 {
47 SensorClient Extension = new SensorClient(Client);
48 Client.SetTag("SensorClient", Extension);
49
50 return Task.FromResult<object>(Extension);
51 }
52
53 }
54}
Root node of a simulation model
Definition: Model.cs:49
Abstract base class for IoT XMPP extensions.
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.
override string LocalName
Local name of XML element defining contents of class.
SensorClientExtension(ISimulationNode Parent, Model Model)
Sensor Client XMPP extension
Implements an XMPP sensor client interface.
Definition: SensorClient.cs:21
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