Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EventPreparation.cs
1using System;
2using System.Collections.Generic;
3using System.IO;
4using System.Threading.Tasks;
5using Waher.Script;
6
8{
13 {
20 : base(Parent, Model)
21 {
22 }
23
27 public override Task Initialize()
28 {
29 if (this.Parent is IEvent Event)
30 Event.Register(this);
31
32 return base.Initialize();
33 }
34
40 public abstract Task Prepare(Variables Variables, List<KeyValuePair<string, object>> Tags);
41
46 public abstract void Release(Variables Variables);
47
54 public abstract void ExportPlantUml(StreamWriter Output, string Name, int Index);
55 }
56}
Root node of a simulation model
Definition: Model.cs:49
Abstract base class for events
Definition: Event.cs:19
void Register(IEventPreparation PreparationNode)
Registers an event preparation node.
Definition: Event.cs:92
Abstract base class for event preparation nodes (with children).
abstract void Release(Variables Variables)
Releases resources at the end of an event.
abstract Task Prepare(Variables Variables, List< KeyValuePair< string, object > > Tags)
Prepares Variables for the execution of an event.
override Task Initialize()
Initialized the node before simulation.
EventPreparation(ISimulationNode Parent, Model Model)
Abstract base class for event preparation nodes (with children).
abstract void ExportPlantUml(StreamWriter Output, string Name, int Index)
Exports the node to PlantUML script in a markdown document.
Abstract base class for simulation nodes with children
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.
Interface for event preparation nodes