Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ActionContainer.cs
1using System.Threading.Tasks;
2
4{
8 public abstract class ActionContainer : ActionNode
9 {
10 private IActionNode[] actions;
11
16 : base()
17 {
18 }
19
23 public IActionNode[] Actions => this.actions;
24
28 protected override void OnChildNodesUpdated()
29 {
30 base.OnChildNodesUpdated();
31
32 this.actions = this.GetChildElements<IActionNode>();
33 }
34
39 public override async Task Execute(EvaluationArguments Arguments)
40 {
41 foreach (IActionNode Node in this.actions)
42 await Node.Execute(Arguments);
43 }
44 }
45}
Abstract base class for action nodes that contain other action nodes.
ActionContainer()
Abstract base class for action nodes that contain other action nodes.
override void OnChildNodesUpdated()
Method called whenever ChildNodes is updated.
override async Task Execute(EvaluationArguments Arguments)
Evaluates the action node
Abstract base class for State-Machine action nodes.
Definition: ActionNode.cs:9
Contains information required for evaluating script in a state-machine.
Task Execute(EvaluationArguments Arguments)
Evaluates the action node