1using System.Collections.Generic;
3using System.Threading.Tasks;
13 private readonly LinkedList<IConditionNode> conditions =
new LinkedList<IConditionNode>();
47 this.conditions.AddLast(Node);
72 public override void ExportPlantUml(StreamWriter Output,
int Indentation,
char QuoteChar)
84 Indent(Output, Indentation);
85 Output.WriteLine(
"endif");
Root node of a simulation model
Abstract base class for activity nodes
override async Task< LinkedListNode< IActivityNode > > Execute(Variables Variables)
Executes a node.
async Task< bool > IsTrue(Variables Variables)
If the node condition is true.
Conditional execution in an activity.
override async Task< LinkedListNode< IActivityNode > > Execute(Variables Variables)
Executes a node.
void Register(IConditionNode Node)
Register a conditional node.
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.
Conditional(ISimulationNode Parent, Model Model)
Conditional execution in an activity.
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.
Interface for condition nodes
void ExportPlantUml(StreamWriter Output, int Indentation, bool First, char QuoteChar)
Exports PlantUML
Interface for elements taking Condition nodes.