Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
StateMachineRoot.cs
1using System.Threading.Tasks;
2using System.Xml;
4
6{
11 {
16 : base()
17 {
18 }
19
23 public string StartState { get; set; }
24
28 public override string LocalName => nameof(this.StateMachine);
29
34 public override IStateMachineNode Create()
35 {
36 return new StateMachineRoot();
37 }
38
43 public override Task Parse(XmlElement Xml)
44 {
45 this.StartState = XML.Attribute(Xml, "startState");
46
47 return base.Parse(Xml);
48 }
49
50 }
51}
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
Abstract base class for State-Machine nodes.
override IStateMachineNode Create()
Creates a new node of the corresponding type.
StateMachineRoot()
Root of the State-Machine definition
override Task Parse(XmlElement Xml)
Parses the State-machine node.
Class representing a state machine.
Definition: StateMachine.cs:37