コード例 #1
0
 /// <summary>
 /// Mainly used for testing and verification
 /// </summary>
 /// <returns></returns>
 public bool Equals(DoDStats other)
 {
     return(StatsUnits.Equals(other.StatsUnits) &&
            CellArea.Equals(other.CellArea) &&
            ErosionRaw.Equals(other.ErosionRaw) &&
            DepositionRaw.Equals(other.DepositionRaw) &&
            ErosionThr.Equals(other.ErosionThr) &&
            DepositionThr.Equals(other.DepositionThr) &&
            ErosionErr.Equals(other.ErosionErr) &&
            DepositionErr.Equals(other.DepositionErr));
 }
コード例 #2
0
 /// <summary>
 /// Copy Constructor (NOTE: Creates an EMPTY COPY!!!!)
 /// </summary>
 /// <param name="oldStats"></param>
 public DoDStats(DoDStats oldStats)
 {
     StatsUnits    = oldStats.StatsUnits;
     CellArea      = oldStats.CellArea;
     ErosionRaw    = new GCDAreaVolume();
     DepositionRaw = new GCDAreaVolume();
     ErosionThr    = new GCDAreaVolume();
     DepositionThr = new GCDAreaVolume();
     ErosionErr    = new GCDAreaVolume();
     DepositionErr = new GCDAreaVolume();
 }