/src/LinFu.Finders/Interfaces/CriteriaType.cs

http://github.com/philiplaureano/LinFu · C# · 27 lines · 9 code · 2 blank · 16 comment · 0 complexity · bdc5bc1441d36c6d6eac78556a2d9a48 MD5 · raw file

  1. namespace LinFu.Finders.Interfaces
  2. {
  3. /// <summary>
  4. /// The enumeration that determines how a <see cref="ICriteria{T}" /> instance should
  5. /// be handled if the criteria test fails.
  6. /// </summary>
  7. public enum CriteriaType
  8. {
  9. /// <summary>
  10. /// A failure in a criteria test will result in a lower weighted
  11. /// score for a target item.
  12. /// </summary>
  13. Standard = 0,
  14. /// <summary>
  15. /// A failure in a criteria test will be ignored, and hence,
  16. /// the criteria will be optional.
  17. /// </summary>
  18. Optional = 1,
  19. /// <summary>
  20. /// A failure in a criteria test will cause all previous and remaining
  21. /// tests against the criteria to fail.
  22. /// </summary>
  23. Critical = 2
  24. }
  25. }