Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Speed.cs
1using System;
2using System.Collections.Generic;
3
5{
10 public class Speed : ICompoundQuantity
11 {
16 public Speed()
17 {
18 }
19
23 public string Name => "Speed";
24
28 public Unit Reference => reference;
29
30 private static readonly Unit reference = new Unit(new AtomicUnit("W"), new AtomicUnit("h"));
31
35 public Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>[] CompoundQuantities
36 {
37 get
38 {
39 return new Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>[]
40 {
41 new Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>("mph", Prefix.None,
42 new KeyValuePair<AtomicUnit, int>[]
43 {
44 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("SM"), 1),
45 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("h"), -1)
46 }),
47 new Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>("fps", Prefix.None,
48 new KeyValuePair<AtomicUnit, int>[]
49 {
50 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("ft"), 1),
51 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("s"), -1)
52 }),
53 new Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>("kph", Prefix.Kilo,
54 new KeyValuePair<AtomicUnit, int>[]
55 {
56 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("m"), 1),
57 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("h"), -1)
58 }),
59 new Tuple<string, Prefix, KeyValuePair<AtomicUnit, int>[]>("kmph", Prefix.Kilo,
60 new KeyValuePair<AtomicUnit, int>[]
61 {
62 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("m"), 1),
63 new KeyValuePair<AtomicUnit, int>(new AtomicUnit("h"), -1)
64 })
65 };
66 }
67 }
68 }
69}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
In everyday use and in kinematics, the speed of an object is the magnitude of its velocity (the rate ...
Definition: Speed.cs:11
string Name
Name of compound quantity.
Definition: Speed.cs:23
Speed()
In everyday use and in kinematics, the speed of an object is the magnitude of its velocity (the rate ...
Definition: Speed.cs:16
Tuple< string, Prefix, KeyValuePair< AtomicUnit, int >[]>[] CompoundQuantities
Compound quantities. Must only use base quantity units.
Definition: Speed.cs:36
Unit Reference
Reference unit of category.
Definition: Speed.cs:28
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