Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TokenNoteEventHandler.cs
4
6{
11 {
16 : base()
17 {
18 }
19
33 string NoteVariable, string PersonalVariable, string SourceVariable, string Privilege,
34 string LocalName, string Namespace)
35 : base(Arguments, EventIndex, EventNode)
36 {
37 this.EventType = nameof(TokenNoteEventHandler) + "|" + EventNode.GetType().Name + "|" + this.StateMachineId + "|" + LocalName + "|" + Namespace;
38 this.NoteVariable = NoteVariable;
39 this.PersonalVariable = PersonalVariable;
40 this.SourceVariable = SourceVariable;
41 this.Privilege = Privilege;
42 }
43
47 [DefaultValueStringEmpty]
48 public string NoteVariable { get; set; }
49
53 [DefaultValueStringEmpty]
54 public string PersonalVariable { get; set; }
55
59 [DefaultValueStringEmpty]
60 public string SourceVariable { get; set; }
61
65 [DefaultValueStringEmpty]
66 public string Privilege { get; set; }
67
69 public override bool Equals(object obj)
70 {
71 return
72 base.Equals(obj) &&
73 obj is TokenNoteEventHandler O &&
74 this.NoteVariable == O.NoteVariable &&
75 this.PersonalVariable == O.PersonalVariable &&
76 this.SourceVariable == O.SourceVariable &&
77 this.Privilege == O.Privilege;
78 }
79
81 public override int GetHashCode()
82 {
83 int Result = base.GetHashCode();
84
85 Result ^= Result << 5 ^ (this.NoteVariable?.GetHashCode() ?? 0);
86 Result ^= Result << 5 ^ (this.PersonalVariable?.GetHashCode() ?? 0);
87 Result ^= Result << 5 ^ (this.SourceVariable?.GetHashCode() ?? 0);
88 Result ^= Result << 5 ^ (this.Privilege?.GetHashCode() ?? 0);
89
90 return Result;
91 }
92 }
93}
int EventIndex
Zero-based index of event handler in state.
Definition: EventHandler.cs:60
TokenNoteEventHandler(EvaluationArguments Arguments, int EventIndex, TokenEventNode EventNode, string NoteVariable, string PersonalVariable, string SourceVariable, string Privilege, string LocalName, string Namespace)
Event handler for token note events.
Contains information required for evaluating script in a state-machine.
Abstract base class for State-Machine event nodes.
Definition: EventNode.cs:10