Changeset 3630 for trunk/sources/HeuristicLab.Core/3.3
- Timestamp:
- 05/05/10 13:31:55 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Core/3.3/Constraints
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Constraints/ComparisonConstraint.cs
r3613 r3630 44 44 45 45 public override IEnumerable<ConstraintOperation> AllowedConstraintOperations { 46 get { return new ConstraintOperation[6] { ConstraintOperation.Less er, ConstraintOperation.LesserOrEqual, ConstraintOperation.Equal, ConstraintOperation.GreaterOrEqual, ConstraintOperation.Greater, ConstraintOperation.NotEqual }; }46 get { return new ConstraintOperation[6] { ConstraintOperation.Less, ConstraintOperation.LessOrEqual, ConstraintOperation.Equal, ConstraintOperation.GreaterOrEqual, ConstraintOperation.Greater, ConstraintOperation.NotEqual }; } 47 47 } 48 48 … … 57 57 int compareResult = comparableMember.CompareTo(this.ConstraintData); 58 58 bool result = false; 59 if (this.ConstraintOperation == ConstraintOperation.Less er)59 if (this.ConstraintOperation == ConstraintOperation.Less) 60 60 result = compareResult < 0; 61 else if (this.ConstraintOperation == ConstraintOperation.Less erOrEqual)61 else if (this.ConstraintOperation == ConstraintOperation.LessOrEqual) 62 62 result = compareResult <= 0; 63 63 else if (this.ConstraintOperation == ConstraintOperation.Equal) -
trunk/sources/HeuristicLab.Core/3.3/Constraints/ConstraintOperation.cs
r3603 r3630 27 27 public static readonly ConstraintOperation Equal = new ConstraintOperation(0, "Equal"); 28 28 public static readonly ConstraintOperation NotEqual = new ConstraintOperation(1, "Not equal"); 29 public static readonly ConstraintOperation Less er = new ConstraintOperation(2, "Lesser");30 public static readonly ConstraintOperation Less erOrEqual = new ConstraintOperation(3, "Lesseror equal");31 public static readonly ConstraintOperation Greater = new ConstraintOperation(4, "Greater ");32 public static readonly ConstraintOperation GreaterOrEqual = new ConstraintOperation(5, "Greater or equal");29 public static readonly ConstraintOperation Less = new ConstraintOperation(2, "Less than"); 30 public static readonly ConstraintOperation LessOrEqual = new ConstraintOperation(3, "Less than or equal"); 31 public static readonly ConstraintOperation Greater = new ConstraintOperation(4, "Greater than"); 32 public static readonly ConstraintOperation GreaterOrEqual = new ConstraintOperation(5, "Greater than or equal"); 33 33 public static readonly ConstraintOperation IsTypeCompatible = new ConstraintOperation(6, "Is type compatible to"); 34 34 public static readonly ConstraintOperation IsTypeNotCompatible = new ConstraintOperation(7, "Is type not compatible to");
Note: See TracChangeset
for help on using the changeset viewer.