Add project files.
This commit is contained in:
53
HTOLHAST/Sample.cs
Normal file
53
HTOLHAST/Sample.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HTOLHAST
|
||||
{
|
||||
public abstract class Sample
|
||||
{
|
||||
public DateTime TimeStamp { get; set; }
|
||||
public string Unit { get; set; }
|
||||
|
||||
public Sample(DateTime timeStamp, string unit)
|
||||
{
|
||||
TimeStamp = timeStamp;
|
||||
Unit = unit;
|
||||
}
|
||||
}
|
||||
|
||||
// Derived class for Data Logger Sample
|
||||
public class Hameg4040Sample : Sample
|
||||
{
|
||||
public double Value { get; set; }
|
||||
public int Channel { get; set; }
|
||||
|
||||
public Hameg4040Sample(DateTime timeStamp, string unit, double value, int channel ) : base(timeStamp , unit)
|
||||
{
|
||||
Value = value;
|
||||
Channel = channel;
|
||||
}
|
||||
}
|
||||
|
||||
public class Keithley6485Sample : Sample
|
||||
{
|
||||
public double Value { get; set; }
|
||||
|
||||
public Keithley6485Sample(DateTime timeStamp, double value, string unit) : base(timeStamp, unit)
|
||||
{
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public class HMP4040Sample : Sample
|
||||
{
|
||||
public double Value { get; set; }
|
||||
|
||||
public HMP4040Sample(DateTime timeStamp, double value, string unit) : base(timeStamp, unit)
|
||||
{
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user