Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Energy.cs
1using System;
2using System.Collections.Generic;
3
5{
14 {
22 public Energy()
23 {
24 }
25
29 public string Name => "Energy";
30
34 public Unit Reference => reference;
35
36 private static readonly Unit reference = new Unit(new AtomicUnit("W"), new AtomicUnit("h"));
37
41 public Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>[] CompoundQuantities
42 {
43 get
44 {
45 return new Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>[]
46 {
47 new Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>("Wh", Prefix.None,
48 new KeyValuePair<AtomicUnit, int>[]
49 {
50 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("W"), 1),
51 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("h"), 1)
52 })
53 };
54 }
55 }
56 }
57}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
string Name
Name of compound quantity.
Definition: Energy.cs:29
Unit Reference
Reference unit of category.
Definition: Energy.cs:34
Tuple< string, Prefix, KeyValuePair< AtomicUnit, int >[]>[] CompoundQuantities
Compound quantities. Must only use base quantity units.
Definition: Energy.cs:42
Represents a unit.
Definition: Unit.cs:15
Interface for physical compound quantities
Prefix
SI prefixes. http://physics.nist.gov/cuu/Units/prefixes.html
Definition: Prefixes.cs:11