Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ReferenceActivityNode.cs
1using System;
2using System.Threading.Tasks;
3using System.Xml;
5
7{
11 public abstract class ReferenceActivityNode : ActivityNode
12 {
13 private string reference;
14
21 : base(Parent, Model)
22 {
23 }
24
28 public string Reference => this.reference;
29
34 public override Task FromXml(XmlElement Definition)
35 {
36 this.reference = XML.Attribute(Definition, "ref");
37
38 return Task.CompletedTask;
39 }
40 }
41}
Root node of a simulation model
Definition: Model.cs:49
Abstract base class for activity nodes
Definition: ActivityNode.cs:15
Base class for activity nodes with a reference.
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
ReferenceActivityNode(ISimulationNode Parent, Model Model)
Base class for activity nodes with a reference.
Helps with common XML-related tasks.
Definition: XML.cs:19
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:914
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.