2using System.Collections.Generic;
4using System.Threading.Tasks;
62 public override Task
FromXml(XmlElement Definition)
67 return base.FromXml(Definition);
81 throw new Exception(
"Actor not an XMPP client.");
94 public override void ExportPlantUml(StreamWriter Output,
int Indentation,
char QuoteChar)
96 base.ExportPlantUml(Output, Indentation, QuoteChar);
98 Indent(Output, Indentation);
100 Output.Write(this.actor.
Value);
101 Output.Write(
".SubscribeTo");
108 Output.WriteLine(
");");
Root node of a simulation model
Abstract base class for activity nodes
async Task< object > GetActorObjectAsync(StringAttribute Actor, Variables Variables)
Gets an actor object, given a string representation, possibly containing script, of the actor.
static void Indent(StreamWriter Output, int Indentation)
Adds indentation to the current row.
Contains the value of a string attribute, possibly with embedded script.
async Task< string > GetValueAsync(Variables Variables)
Gets the value of the attribute.
string Value
String value, from definition
Sends a custom message to a recipient
static void AppendArgument(StreamWriter Output, int Indentation, string Name, string Value, bool Quotes, char QuoteChar)
Appends an argument
Subscribes to the presence of another entity.
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
override void ExportPlantUml(StreamWriter Output, int Indentation, char QuoteChar)
Exports PlantUML
override string LocalName
Local name of XML element defining contents of class.
SubscribeTo(ISimulationNode Parent, Model Model)
Subscribes to the presence of another entity.
override async Task< LinkedListNode< IActivityNode > > Execute(Variables Variables)
Executes a node.
override string Namespace
XML Namespace where the element is defined.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
override string SchemaResource
Points to the embedded XML Schema resource defining the semantics of the XML namespace.
Object used in simulation activities.
Abstract base class for XMPP actors.
XmppClient Client
XMPP Client
const string XmppSchema
TAG.Simulator.XMPP.Schema.ComSimXmpp.xsd
const string XmppNamespace
http://lab.tagroot.io/Schema/ComSim/XMPP.xsd
Helps with common XML-related tasks.
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.