2using System.Collections.Generic;
4using System.Threading.Tasks;
14 private LinkedListNode<IActivityNode> node;
29 public LinkedListNode<IActivityNode>
Node => this.node;
53 throw new Exception(
"Activity node not found: " + this.
Reference);
65 return Task.FromResult<LinkedListNode<IActivityNode>>(this.node);
74 public override void ExportPlantUml(StreamWriter Output,
int Indentation,
char QuoteChar)
76 Indent(Output, Indentation);
79 Output.WriteLine(
')');
81 Indent(Output, Indentation);
82 Output.WriteLine(
"detach");
Root node of a simulation model
bool TryGetActivityNode(string Id, out LinkedListNode< IActivityNode > ActivityNode)
Tries to get a registered activity node from the model.
Jumps to another node in the activity.
override void ExportPlantUml(StreamWriter Output, int Indentation, char QuoteChar)
Exports PlantUML
override Task Start()
Starts the node.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
GoTo(ISimulationNode Parent, Model Model)
Jumps to another node in the activity.
override string LocalName
Local name of XML element defining contents of class.
LinkedListNode< IActivityNode > Node
Referenced node
override Task< LinkedListNode< IActivityNode > > Execute(Variables Variables)
Executes a node.
Base class for activity nodes with a reference.
string Reference
Reference
static void Indent(StreamWriter Output, int Indentation)
Adds indentation to the current row.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.