Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ContractParameterNode.cs
1using System;
2using System.Threading.Tasks;
3using System.Xml;
6
8{
12 public abstract class ContractParameterNode<T> : StateMachineNode
13 where T : Parameter, new()
14 {
19 : base()
20 {
21 }
22
26 public T Parameter { get; set; }
27
32 public override async Task Parse(XmlElement Xml)
33 {
34 this.ChildNodes = Array.Empty<IStateMachineNode>();
35
36 this.Parameter = new T();
37 if (!await this.Parameter.Import(Xml))
38 throw new StateMachineException(this.StateMachine, "Unable to import contract parameter.");
39 }
40 }
41}
Abstract base class for state machine nodes representing a contract parameter of type T .
override async Task Parse(XmlElement Xml)
Parses the State-machine node.
ContractParameterNode()
Abstract base class for state machine nodes representing a contract parameter.
Abstract base class for State-Machine nodes.
Class representing a state machine.
Definition: StateMachine.cs:43