Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NodeParametersEvent.cs
1using System;
4
6{
10 public abstract class NodeParametersEvent : NodeStatusEvent
11 {
12 private Parameter[] parameters = null;
13 private bool hasChildren = false;
14 private bool childrenOrdered = false;
15 private bool isReadable = false;
16 private bool isControllable = false;
17 private bool hasCommands = false;
18 private string parentId = string.Empty;
19 private string parentPartition = string.Empty;
20 private DateTime updated = DateTime.MinValue;
21
26 : base()
27 {
28 }
29
33 [DefaultValueNull]
34 [ShortName("dp")]
36 {
37 get => this.parameters;
38 set => this.parameters = value;
39 }
40
44 [DefaultValueDateTimeMinValue]
45 public DateTime Updated
46 {
47 get => this.updated;
48 set => this.updated = value;
49 }
50
54 [DefaultValueStringEmpty]
55 public string ParentId
56 {
57 get => this.parentId;
58 set => this.parentId = value;
59 }
60
64 [DefaultValueStringEmpty]
65 public string ParentPartition
66 {
67 get => this.parentPartition;
68 set => this.parentPartition = value;
69 }
70
74 [DefaultValue(false)]
75 public bool HasChildren
76 {
77 get => this.hasChildren;
78 set => this.hasChildren = value;
79 }
80
84 [DefaultValue(false)]
85 public bool IsReadable
86 {
87 get => this.isReadable;
88 set => this.isReadable = value;
89 }
90
94 [DefaultValue(false)]
95 public bool IsControllable
96 {
97 get => this.isControllable;
98 set => this.isControllable = value;
99 }
100
104 [DefaultValue(false)]
105 public bool HasCommands
106 {
107 get => this.hasCommands;
108 set => this.hasCommands = value;
109 }
110
114 [DefaultValue(false)]
115 public bool ChildrenOrdered
116 {
117 get => this.childrenOrdered;
118 set => this.childrenOrdered = value;
119 }
120 }
121}
Base class for all node parameters.
Definition: Parameter.cs:10
Abstract base class for all node events with parameters.
string ParentPartition
Partition of parent of node, at time of event.
string ParentId
Parent identity of node, at time of event.
bool HasChildren
If node had children, at time of event.
bool ChildrenOrdered
If node children was ordered, at time of event.
bool IsControllable
If node was controllable, at time of event.
NodeParametersEvent()
Abstract base class for all node events with parameters.
Parameter[] Parameters
Displayable parameters.
DateTime Updated
When node was last updated, at time of event.
bool HasCommands
If node had commands, at time of event.
bool IsReadable
If node was readable, at time of event.
Abstract base class for all node status events.