Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AtomicUnit.cs
2{
6 public sealed class AtomicUnit
7 {
8 private readonly string name;
9
14 public AtomicUnit(string Name)
15 {
16 this.name = Name;
17 }
18
22 public string Name => this.name;
23
25 public override bool Equals(object obj)
26 {
27 if (obj is AtomicUnit U)
28 return this.name.Equals(U.name);
29 else
30 return false;
31 }
32
34 public override int GetHashCode()
35 {
36 return this.name.GetHashCode();
37 }
38
40 public override string ToString()
41 {
42 return this.name;
43 }
44 }
45}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
override bool Equals(object obj)
Definition: AtomicUnit.cs:25
override int GetHashCode()
Definition: AtomicUnit.cs:34
AtomicUnit(string Name)
Represents an atomic unit.
Definition: AtomicUnit.cs:14
override string ToString()
Definition: AtomicUnit.cs:40