2using System.Collections.Generic;
4using System.Threading.Tasks;
16 private LinkedList<IActivityNode> activityNodes =
null;
33 public string Id => this.id;
39 public override Task
FromXml(XmlElement Definition)
43 return base.FromXml(Definition);
56 return base.Initialize();
65 if (this.activityNodes is
null)
66 this.activityNodes =
new LinkedList<IActivityNode>();
75 protected LinkedListNode<IActivityNode>
FirstNode => this.activityNodes?.First;
80 protected int Count => this.count;
95 public virtual void ExportPlantUml(StreamWriter Output,
int Indentation,
char QuoteChar)
97 if (!(this.activityNodes is
null))
Root node of a simulation model
void Register(IDistribution Distribution)
Registers a distribution with the runtime environment of the model.
Represents an activity that can be executed as the result of triggered events.
void Register(IActivityNode Node)
Registers a child activity node.
Abstract base class for activity nodes
void Register(IActivityNode Node)
Registers a child activity node.
abstract Task< LinkedListNode< IActivityNode > > Execute(Variables Variables)
Executes a node.
virtual void ExportPlantUml(StreamWriter Output, int Indentation, char QuoteChar)
Exports PlantUML
LinkedListNode< IActivityNode > FirstNode
First child activity node.
override Task FromXml(XmlElement Definition)
Sets properties and attributes of class in accordance with XML definition.
override Task Initialize()
Initialized the node before simulation.
ActivityNode(ISimulationNode Parent, Model Model)
Abstract base class for activity nodes
string Id
ID of activity node.
Counts an instance of an event.
Abstract base class for simulation nodes with children
Helps with common XML-related tasks.
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.
Interface for activity nodes
void ExportPlantUml(StreamWriter Output, int Indentation, char QuoteChar)
Exports PlantUML