Esempio n. 1
0
 public MeasuredValue(MeasuredValue mValue)
 {
     InitValue();
     if (ToBaseUnitConversionFactor == mValue.ToBaseUnitConversionFactor)
     {
         // Fall: Einheiten gleich
         if (OrderOfMagnitude == mValue.OrderOfMagnitude)
         {
             // Fall: Größenordnungen gleich
             Value = mValue.Value;
         }
         else
         {
             // Fall: Größenordnungen verschieden
             Value = Mag.FromTo(mValue.Value, mValue.OrderOfMagnitude, OrderOfMagnitude);
         }
     }
     else
     {
         // Fall: Einheiten verschieden
         Value = Mag.FromTo(mValue.ValueInBaseUnit * (1 / ToBaseUnitConversionFactor), Mag.OrderOfMagnitudeEnum.One, OrderOfMagnitude);
     }
 }
Esempio n. 2
0
 public override MeasuredValue Create(MeasuredValue Value)
 {
     return(new PowerInHorsePower((Power)Value));
 }
Esempio n. 3
0
 public override MeasuredValue Create(MeasuredValue Value)
 {
     return(new TimeInMinutes((Time)Value));
 }
Esempio n. 4
0
 public override MeasuredValue Create(MeasuredValue Value)
 {
     return(new EnergyInSKE((Energy)Value));
 }
Esempio n. 5
0
 public override MeasuredValue Create(MeasuredValue Value)
 {
     return(new EnergyInWs <TOrderOfMagnitude>((Energy)Value));
 }
Esempio n. 6
0
 public override MeasuredValue Create(MeasuredValue Value)
 {
     return(new PowerInWatt <TOrderOfMagnitude>((Power)Value));
 }
Esempio n. 7
0
 public override MeasuredValue Create(MeasuredValue Value)
 {
     return(new MassInOunce((Mass)Value));
 }
Esempio n. 8
0
 public override MeasuredValue Create(MeasuredValue Value)
 {
     return(new TimeInSec <TOrderOfMagnitude>((Time)Value));
 }
Esempio n. 9
0
 public abstract MeasuredValue Create(MeasuredValue Value);
Esempio n. 10
0
 public override MeasuredValue Create(MeasuredValue Value)
 {
     return(new MassInGram <TOrderOfMagnitude>((Mass)Value));
 }