Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TimepointEventHandler.cs
1
using
System;
2
using
Waher.Content
;
3
using
Waher.Service.IoTBroker.StateMachines.Model
;
4
5
namespace
Waher.Service.IoTBroker.StateMachines.EventHandlers
6
{
10
public
class
TimepointEventHandler
:
EventHandler
11
{
15
public
TimepointEventHandler
()
16
: base()
17
{
18
}
19
27
public
TimepointEventHandler
(
EvaluationArguments
Arguments,
int
EventIndex
,
28
DateTime
Timepoint
,
Duration
Recurrence
)
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
}
Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler
Abstract base class for persisted state-machine event handlers.
Definition:
EventHandler.cs:18
Waher.Service.IoTBroker.StateMachines.EventHandlers.EventHandler.EventIndex
int EventIndex
Zero-based index of event handler in state.
Definition:
EventHandler.cs:60
Waher.Service.IoTBroker.StateMachines.EventHandlers.TimepointEventHandler
Event handler for timepoint events.
Definition:
TimepointEventHandler.cs:11
Waher.Service.IoTBroker.StateMachines.EventHandlers.TimepointEventHandler.Equals
override bool Equals(object obj)
Definition:
TimepointEventHandler.cs:47
Waher.Service.IoTBroker.StateMachines.EventHandlers.TimepointEventHandler.TimepointEventHandler
TimepointEventHandler()
Event handler for timepoint events.
Definition:
TimepointEventHandler.cs:15
Waher.Service.IoTBroker.StateMachines.EventHandlers.TimepointEventHandler.TimepointEventHandler
TimepointEventHandler(EvaluationArguments Arguments, int EventIndex, DateTime Timepoint, Duration Recurrence)
Event handler for timepoint events.
Definition:
TimepointEventHandler.cs:27
Waher.Service.IoTBroker.StateMachines.EventHandlers.TimepointEventHandler.Recurrence
Duration Recurrence
Recurrence
Definition:
TimepointEventHandler.cs:44
Waher.Service.IoTBroker.StateMachines.EventHandlers.TimepointEventHandler.Timepoint
DateTime Timepoint
Timepoint.
Definition:
TimepointEventHandler.cs:39
Waher.Service.IoTBroker.StateMachines.EventHandlers.TimepointEventHandler.GetHashCode
override int GetHashCode()
Definition:
TimepointEventHandler.cs:57
Waher.Service.IoTBroker.StateMachines.Model.EvaluationArguments
Contains information required for evaluating script in a state-machine.
Definition:
EvaluationArguments.cs:15
Waher.Content
Definition:
Array.cs:6
Waher.Service.IoTBroker.StateMachines.EventHandlers
Definition:
CachedEventHandler.cs:13
Waher.Service.IoTBroker.StateMachines.Model
Definition:
Action.cs:7
Waher.Content.Duration
Represents a duration value, as defined by the xsd:duration data type: http://www....
Definition:
Duration.cs:13
Waher.Content.Duration.GetHashCode
override int GetHashCode()
Definition:
Duration.cs:463
Waher.Service.IoTBroker
StateMachines
EventHandlers
TimepointEventHandler.cs
Generated by
1.9.5