2using System.Collections.Generic;
3using System.Threading.Tasks;
50 public override async Task
FromXml(XmlElement Definition)
52 await base.FromXml(Definition);
54 List<ControlParameterNode> Parameters =
new List<ControlParameterNode>();
59 Parameters.Add(Parameter);
62 this.parameters = Parameters.ToArray();
80 Client.SetTag(
"ControlServer", Extension);
82 Extension.OnGetControlParameters += (Node) =>
85 new KeyValuePair<string, object>(
"Node", Node),
86 new KeyValuePair<string, object>(
"Client", Client));
88 List<ControlParameter> Parameters =
new List<ControlParameter>();
96 return Task.FromResult<
object>(Extension);
Root node of a simulation model
bool ExternalEvent(IExternalEventsNode Source, string Name, params KeyValuePair< string, object >[] Arguments)
Method called when an external event has been received.
ISimulationNode[] Children
Child nodes.
Abstract base class for control parameter nodes.
abstract void AddParameters(List< ControlParameter > Parameters, IActor Actor)
Adds control parameters.
Control Server XMPP extension
override Task< object > Add(IActor Instance, Waher.Networking.XMPP.XmppClient Client)
Adds the extension to the client.
ControlServerExtension(ISimulationNode Parent, Model Model)
Control Server XMPP extension
override string LocalName
Local name of XML element defining contents of class.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
override async Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
Abstract base class for IoT XMPP extensions.
Implements an XMPP control server interface.
Implements an XMPP provisioning client interface.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
Abstract base class for control parameters.
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...