Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
StateMachineRoot.cs
1
using
System.Threading.Tasks;
2
using
System.Xml;
3
using
Waher.Content.Xml
;
4
5
namespace
Waher.Service.IoTBroker.StateMachines.Model
6
{
10
public
class
StateMachineRoot
:
StateMachineNode
11
{
15
public
StateMachineRoot
()
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
}
Waher.Content.Xml.XML
Helps with common XML-related tasks.
Definition:
XML.cs:19
Waher.Content.Xml.XML.Attribute
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition:
XML.cs:914
Waher.Service.IoTBroker.StateMachines.Model.StateMachineNode
Abstract base class for State-Machine nodes.
Definition:
StateMachineNode.cs:24
Waher.Service.IoTBroker.StateMachines.Model.StateMachineRoot
Root of the State-Machine definition
Definition:
StateMachineRoot.cs:11
Waher.Service.IoTBroker.StateMachines.Model.StateMachineRoot.Create
override IStateMachineNode Create()
Creates a new node of the corresponding type.
Definition:
StateMachineRoot.cs:34
Waher.Service.IoTBroker.StateMachines.Model.StateMachineRoot.LocalName
override string LocalName
Local name
Definition:
StateMachineRoot.cs:28
Waher.Service.IoTBroker.StateMachines.Model.StateMachineRoot.StartState
string StartState
Start State of state-machine.
Definition:
StateMachineRoot.cs:23
Waher.Service.IoTBroker.StateMachines.Model.StateMachineRoot.StateMachineRoot
StateMachineRoot()
Root of the State-Machine definition
Definition:
StateMachineRoot.cs:15
Waher.Service.IoTBroker.StateMachines.Model.StateMachineRoot.Parse
override Task Parse(XmlElement Xml)
Parses the State-machine node.
Definition:
StateMachineRoot.cs:43
Waher.Service.IoTBroker.StateMachines.StateMachine
Class representing a state machine.
Definition:
StateMachine.cs:37
Waher.Service.IoTBroker.StateMachines.Model.IStateMachineNode
Interface for State-Machine nodes
Definition:
IStateMachineNode.cs:11
Waher.Content.Xml
Definition:
XmlCodec.cs:11
Waher.Service.IoTBroker.StateMachines.Model
Definition:
Action.cs:7
Waher.Service.IoTBroker
StateMachines
Model
StateMachineRoot.cs
Generated by
1.9.5