Exemple #1
0
        public new bool[] Check()
        {
            bool[] result = new bool[ConstrainedValue.Rows];

            if (!Active)
            {
                return(result);
            }

            for (int row = 0; row < ConstrainedValue.Rows; ++row)
            {
                object item = null;
                if (ConstrainedValue.VariableHasType <double>(constraintColumn))
                {
                    item = new HeuristicLab.Data.DoubleValue(ConstrainedValue.GetCell <double>(ConstraintColumn, row));
                }
                else if (ConstrainedValue.VariableHasType <DateTime>(constraintColumn))
                {
                    item = new HeuristicLab.Data.DateTimeValue(ConstrainedValue.GetCell <DateTime>(ConstraintColumn, row));
                }
                else
                {
                    item = new StringValue(ConstrainedValue.GetCell <string>(ConstraintColumn, row));
                }

                result[row] = !base.Check(item);
            }

            return(result);
        }
    public new bool[] Check() {
      bool[] result = new bool[ConstrainedValue.Rows];

      if (!Active)
        return result;

      for (int row = 0; row < ConstrainedValue.Rows; ++row) {
        object item = null;
        if (ConstrainedValue.VariableHasType<double>(constraintColumn)) {
          item = new HeuristicLab.Data.DoubleValue(ConstrainedValue.GetCell<double>(ConstraintColumn, row));
        } else if (ConstrainedValue.VariableHasType<DateTime>(constraintColumn)) {
          item = new HeuristicLab.Data.DateTimeValue(ConstrainedValue.GetCell<DateTime>(ConstraintColumn, row));
        } else {
          item = new StringValue(ConstrainedValue.GetCell<string>(ConstraintColumn, row));
        }

        result[row] = !base.Check(item);
      }

      return result;
    }
Exemple #3
0
 protected DoubleValue(DoubleValue original, Cloner cloner)
     : base(original, cloner)
 {
 }