using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Model
{
///
/// 单一映射
///
public class SingleMappingMatrix : JsonList
{
///
///
///
public SingleMappingMatrix() { }
///
///
///
public SingleMappingMatrix(double key, double value)
{
this.Key = key;
this.Value = value;
}
///
///
///
public SingleMappingMatrix(SingleMappingMatrix rhs)
{
this.Key = rhs.Key;
this.Value = rhs.Value;
}
///
/// 键
///
public double Key { get; set; }
///
/// 值
///
public double Value { get; set; }
///
/// 是否满足条件
///
public bool Meet(double value)
{
if (value == Key)
return true;
return default;
}
}
}