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;
2
4{
13 {
21 public Energy()
22 {
23 }
24
28 public string Name => "Energy";
29
33 public Unit Reference => reference;
34
35 private static readonly Unit reference = new Unit(new AtomicUnit("W"), new AtomicUnit("h"));
36
40 public Tuple<string, Prefix, UnitFactor[]>[] CompoundQuantities
41 {
42 get
43 {
44 return new Tuple<string, Prefix, UnitFactor[]>[]
45 {
46 new Tuple<string, Prefix, UnitFactor[]>("Wh", Prefix.None,
47 new UnitFactor[]
48 {
49 new UnitFactor("W"),
50 new UnitFactor("h")
51 })
52 };
53 }
54 }
55 }
56}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
Tuple< string, Prefix, UnitFactor[]>[] CompoundQuantities
Compound quantities. Must only use base quantity units.
Definition: Energy.cs:41
string Name
Name of compound quantity.
Definition: Energy.cs:28
Unit Reference
Reference unit of category.
Definition: Energy.cs:33
A unit factor, used to form compound units.
Definition: UnitFactor.cs:7
Represents a unit.
Definition: Unit.cs:16
Interface for physical compound quantities
Prefix
SI prefixes. http://physics.nist.gov/cuu/Units/prefixes.html
Definition: Prefixes.cs:11