Example #1
0
 public object Clone()
 {
     if (!IsInitialized())
     {
         return(new Domain(OutsideScope));
     }
     else
     {
         var d = new Domain(InitialDomain.ConvertAll(v => v), OutsideScope);
         d.CurrentDomain = CurrentDomain.ConvertAll(v => v);
         return(d);
     }
 }
Example #2
0
 /**
  * Get the highest value in the initial domain.
  */
 public int MaxInitialValue()
 {
     return(InitialDomain.Max());
 }
Example #3
0
 /**
  * Get the lowest value in the initial domain.
  */
 public int MinInitialValue()
 {
     return(InitialDomain.Min());
 }
Example #4
0
 /**
  * Resets the set of current values to the set of initial values.
  * Allow the recover all values in the domain if we filtered some of them.
  */
 public void ResetToInitial()
 {
     CurrentDomain = InitialDomain.ConvertAll(v => v);
 }