Add project files.
This commit is contained in:
48
Maser.Feanor/Calibration.cs
Normal file
48
Maser.Feanor/Calibration.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Maser.Feanor.Model
|
||||
{
|
||||
public class Calibration
|
||||
{
|
||||
public Calibration(Int32 PK, Int32 SensorPK, DateTime Release, DateTime Expiry, DateTime Creation, Double[] Coefficients, Double Uncertainty, Double[] Xvalues)
|
||||
{
|
||||
_PK = PK;
|
||||
_SensorPK = SensorPK;
|
||||
_Release = Release;
|
||||
_Expiry = Expiry;
|
||||
_Creation = DateTime.Now;
|
||||
_Coefficients = Coefficients;
|
||||
_Uncertainty = Uncertainty;
|
||||
_Xvalues = Xvalues;
|
||||
}
|
||||
|
||||
public Int32 PK { get { return _PK; } set { _PK = value; } }
|
||||
private Int32 _PK;
|
||||
|
||||
public DateTime Release { get { return _Release; } }
|
||||
private DateTime _Release;
|
||||
|
||||
public DateTime Expiry { get { return _Expiry; } }
|
||||
private DateTime _Expiry;
|
||||
|
||||
public DateTime Creation { get { return _Creation; } }
|
||||
private DateTime _Creation;
|
||||
|
||||
public Int32 SensorPK { get { return _SensorPK; } }
|
||||
private Int32 _SensorPK;
|
||||
|
||||
public double[] Coefficients { get { return _Coefficients; } set { _Coefficients = value; } }
|
||||
private double[] _Coefficients = new double[4] { 0, 1, 0, 0 };
|
||||
|
||||
public double Uncertainty { get { return _Uncertainty; } }
|
||||
private double _Uncertainty = 0;
|
||||
|
||||
public double[] Xvalues { get { return _Xvalues; } set { _Xvalues = value; } }
|
||||
private double[] _Xvalues = new double[4] { 0, 0, 1, 1 };
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user