Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IEvent.cs
1using System;
2using System.IO;
3using System.Threading.Tasks;
5using Waher.Script;
6
8{
12 public interface IEvent : ISimulationNode
13 {
17 string Id
18 {
19 get;
20 }
21
26 {
27 get;
28 }
29
34 {
35 get;
36 }
37
44 Task Trigger(Variables Variables, Expression Guard = null, int GuardLimit = int.MaxValue);
45
50 void Register(IEventPreparation PreparationNode);
51
57
63 void ExportUseCaseData(StreamWriter Output, int Index);
64
69 Task GetTrigger();
70 }
71}
Abstract base class for distributions
Definition: Distribution.cs:13
Handles an incoming event raised from an external source
Class managing a script expression.
Definition: Expression.cs:39
Collection of variables.
Definition: Variables.cs:25
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
string Description
Event description
Definition: IEvent.cs:34
Task GetTrigger()
Gets a Task object, that will be completed when the event is triggered.
Task Trigger(Variables Variables, Expression Guard=null, int GuardLimit=int.MaxValue)
Triggers the event.
void Register(IExternalEvent ExternalEvent)
Registers an external event.
void Register(IEventPreparation PreparationNode)
Registers an event preparation node.
void ExportUseCaseData(StreamWriter Output, int Index)
Exports use case information
Interface for event preparation nodes