2using System.Collections.Generic;
4using System.Threading.Tasks;
48 throw new Exception(
"Activity not found: " + this.
Reference);
70 public override void ExportPlantUml(StreamWriter Output,
int Indentation,
char QuoteChar)
72 Indent(Output, Indentation);
75 Output.WriteLine(
')');
Root node of a simulation model
bool TryGetActivity(string Id, out IActivity Activity)
Tries to get a registered activity from the model.
override Task Start()
Starts the node.
Call(ISimulationNode Parent, Model Model)
Calls another activity.
override string LocalName
Local name of XML element defining contents of class.
override void ExportPlantUml(StreamWriter Output, int Indentation, char QuoteChar)
Exports PlantUML
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
override async 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.
Task ExecuteTask(Variables Variables)
Executes the activity.