Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Finished.cs
1using System;
2using System.Collections.Generic;
3using System.IO;
4using System.Threading.Tasks;
5using Waher.Script;
6
8{
12 public class Finished : ActivityNode
13 {
20 : base(Parent, Model)
21 {
22 }
23
27 public override string LocalName => nameof(Finished);
28
36 {
37 return new Finished(Parent, Model);
38 }
39
45 public override Task<LinkedListNode<IActivityNode>> Execute(Variables Variables)
46 {
47 throw new FinishedException();
48 }
49
56 public override void ExportPlantUml(StreamWriter Output, int Indentation, char QuoteChar)
57 {
58 Indent(Output, Indentation);
59 Output.WriteLine("end");
60 }
61 }
62}
Root node of a simulation model
Definition: Model.cs:49
Abstract base class for activity nodes
Definition: ActivityNode.cs:15
Exceptions thrown when the execution of an activity is completed.
Terminates execution of activity.
Definition: Finished.cs:13
override string LocalName
Local name of XML element defining contents of class.
Definition: Finished.cs:27
override Task< LinkedListNode< IActivityNode > > Execute(Variables Variables)
Executes a node.
Definition: Finished.cs:45
override void ExportPlantUml(StreamWriter Output, int Indentation, char QuoteChar)
Exports PlantUML
Definition: Finished.cs:56
Finished(ISimulationNode Parent, Model Model)
Terminates execution of activity.
Definition: Finished.cs:19
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
Definition: Finished.cs:35
static void Indent(StreamWriter Output, int Indentation)
Adds indentation to the current row.
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.