Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Thread.cs
1using System;
2using System.Collections.Generic;
3using System.Threading.Tasks;
4using Waher.Script;
5
7{
11 public class Thread : ActivityNode
12 {
19 : base(Parent, Model)
20 {
21 }
22
26 public override string LocalName => nameof(Thread);
27
35 {
36 return new Thread(Parent, Model);
37 }
38
44 public override async Task<LinkedListNode<IActivityNode>> Execute(Variables Variables)
45 {
47 return null;
48 }
49
50 }
51}
Root node of a simulation model
Definition: Model.cs:49
Represents an activity that can be executed as the result of triggered events.
Definition: Activity.cs:17
static async Task ExecuteActivity(Variables Variables, LinkedListNode< IActivityNode > Start)
Executes an activity by executing a possibly branching sequence of nodes.
Definition: Activity.cs:143
Abstract base class for activity nodes
Definition: ActivityNode.cs:15
LinkedListNode< IActivityNode > FirstNode
First child activity node.
Definition: ActivityNode.cs:75
Represents a thread in parallel execution.
Definition: Thread.cs:12
override async Task< LinkedListNode< IActivityNode > > Execute(Variables Variables)
Executes a node.
Definition: Thread.cs:44
override string LocalName
Local name of XML element defining contents of class.
Definition: Thread.cs:26
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
Definition: Thread.cs:34
Thread(ISimulationNode Parent, Model Model)
Represents a thread in parallel execution.
Definition: Thread.cs:18
Collection of variables.
Definition: Variables.cs:25
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.