using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace org.openda.dotnet.DHIStochObserver
{
///
/// Class to store one data point. A data point consists of a time stamp (DateTime),
/// a double value, and an XYLayer posistion.
///
public class DataPoint
{
private readonly DateTime _time ;
private readonly double _data;
private readonly IXYLayerPoint _xyLayerPoint;
private readonly string _variableID;
///
/// Constructor to store the information.
///
/// DateTime time
/// double data value
/// an X,Y,Layer position
/// variable ID
public DataPoint(DateTime time, double data, IXYLayerPoint xyLayerPoint, string variableID)
{
_time = time;
_data = data;
_xyLayerPoint = xyLayerPoint;
_variableID = variableID;
}
///
/// Data value (double)
///
public double Data { get { return _data; } }
///
/// Date stamp (DateTime)
///
public DateTime Time { get { return _time; } }
///
/// An X,Y,Layer position.
///
public IXYLayerPoint XYLayerPoint { get { return _xyLayerPoint; } }
///
/// The Variable ID description
///
public String VariableID { get { return _variableID; } }
}
}