Exemplo n.º 1
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 /// <param name="startDC">守冷起始确定度</param>
 /// <param name="endDC">守冷止损确定度</param>
 /// <param name="omv">遗漏属性实体对象</param>
 public OmissionValueViewData(double startDC, double endDC, OmissionValue omv)
 {
     this._startDC      = startDC;
     this._endDC        = endDC;
     this._actualTimes  = omv.ActualTimes;
     this._amount       = omv.Amount;
     this._avgSpans     = omv.AvgSpans;
     this._currentSpans = omv.CurrentSpans;
     this._dimension    = omv.Dimension;
     this._lastSpans    = omv.LastSpans;
     this._maxSpans     = omv.MaxSpans;
     this._numberId     = omv.NumberId;
     this._numberType   = omv.NumberType;
     this._nums         = omv.Nums;
     this._peroidCount  = omv.PeroidCount;
     this._cycle        = (int)Math.Round(1 / omv.Probability, MidpointRounding.AwayFromZero);
     this._prize        = omv.Prize;
     this._probability  = omv.Probability;
     this._ruleType     = omv.RuleType;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 构造函数。
 /// </summary>
 /// <param name="startDC">守冷起始确定度</param>
 /// <param name="endDC">守冷止损确定度</param>
 /// <param name="omv">遗漏属性实体对象</param>
 public OmissionValueViewData(double startDC, double endDC,OmissionValue omv)
 {
     this._startDC = startDC;
     this._endDC = endDC;
     this._actualTimes = omv.ActualTimes;
     this._amount = omv.Amount;
     this._avgSpans = omv.AvgSpans;
     this._currentSpans = omv.CurrentSpans;
     this._dimension = omv.Dimension;
     this._lastSpans = omv.LastSpans;
     this._maxSpans = omv.MaxSpans;
     this._numberId = omv.NumberId;
     this._numberType = omv.NumberType;
     this._nums = omv.Nums;
     this._peroidCount = omv.PeroidCount;
     this._cycle = (int)Math.Round(1 / omv.Probability,MidpointRounding.AwayFromZero);
     this._prize = omv.Prize;
     this._probability = omv.Probability;
     this._ruleType = omv.RuleType;
 }