Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Power.cs
1using System.Collections.Generic;
3
5{
9 public class Power : IDerivedQuantity
10 {
14 public Power()
15 {
16 }
17
21 public string Name => "Power";
22
26 public Unit Reference => reference;
27
28 private static readonly Unit reference = new Unit(new AtomicUnit("W"));
29
33 public KeyValuePair<string, PhysicalQuantity>[] DerivedUnits
34 {
35 get
36 {
37 return new KeyValuePair<string, PhysicalQuantity>[]
38 {
39 new KeyValuePair<string, PhysicalQuantity>("W", new PhysicalQuantity(1, new Unit(Prefix.Kilo,
40 new KeyValuePair<AtomicUnit, int>[]
41 {
42 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("g"), 1),
43 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("m"), 2),
44 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("s"), -3)
45 })))
46 };
47 }
48 }
49 }
50}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
In physics, power is the rate of doing work.
Definition: Power.cs:10
Power()
In physics, power is the rate of doing work.
Definition: Power.cs:14
Unit Reference
Reference unit of category.
Definition: Power.cs:26
KeyValuePair< string, PhysicalQuantity >[] DerivedUnits
Derived Units supported.
Definition: Power.cs:34
string Name
Name of derived quantity.
Definition: Power.cs:21
Represents a unit.
Definition: Unit.cs:15
Interface for derived quantities
Prefix
SI prefixes. http://physics.nist.gov/cuu/Units/prefixes.html
Definition: Prefixes.cs:11