Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TimepointEventHandler.cs
1using System;
2using Waher.Content;
4
6{
11 {
16 : base()
17 {
18 }
19
29 : base(Arguments, EventIndex)
30 {
31 this.EventType = nameof(TimepointEventHandler);
32 this.Timepoint = Timepoint;
33 this.Recurrence = Recurrence;
34 }
35
39 public DateTime Timepoint { get; set; }
40
44 public Duration Recurrence { get; set; }
45
47 public override bool Equals(object obj)
48 {
49 return
50 base.Equals(obj) &&
51 obj is TimepointEventHandler O &&
52 this.Timepoint == O.Timepoint &&
53 this.Recurrence == O.Recurrence;
54 }
55
57 public override int GetHashCode()
58 {
59 int Result = base.GetHashCode();
60
61 Result ^= Result << 5 ^ this.Timepoint.GetHashCode();
62 Result ^= Result << 5 ^ this.Recurrence.GetHashCode();
63
64 return Result;
65 }
66 }
67}
Abstract base class for persisted state-machine event handlers.
Definition: EventHandler.cs:18
int EventIndex
Zero-based index of event handler in state.
Definition: EventHandler.cs:60
TimepointEventHandler(EvaluationArguments Arguments, int EventIndex, DateTime Timepoint, Duration Recurrence)
Event handler for timepoint events.
Contains information required for evaluating script in a state-machine.
Represents a duration value, as defined by the xsd:duration data type: http://www....
Definition: Duration.cs:13
override int GetHashCode()
Definition: Duration.cs:463