/tutorial/backtracking/logigram/constraints/constraint_lesser.e

http://github.com/tybor/Liberty · Specman e · 33 lines · 11 code · 4 blank · 18 comment · 0 complexity · 8f47fd2c39ffe97bf228a5e282374987 MD5 · raw file

  1. -- See the Copyright notice at the end of this file.
  2. --
  3. class CONSTRAINT_LESSER
  4. inherit
  5. CONSTRAINT_RELATIONAL
  6. creation {ANY}
  7. make
  8. feature {ANY}
  9. to_boolean: BOOLEAN is
  10. do
  11. Result := left.to_integer < right.to_integer
  12. end
  13. end -- class CONSTRAINT_LESSER
  14. --
  15. -- ------------------------------------------------------------------------------------------------------------------------------
  16. -- Copyright notice below. Please read.
  17. --
  18. -- This file is free software, which comes along with SmartEiffel. This software is distributed in the hope that it will be
  19. -- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20. -- You can modify it as you want, provided this footer is kept unaltered, and a notification of the changes is added.
  21. -- You are allowed to redistribute it and sell it, alone or as a part of another product.
  22. --
  23. -- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE
  24. -- Copyright(C) 2003-2005: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
  25. --
  26. -- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
  27. --
  28. -- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
  29. -- ------------------------------------------------------------------------------------------------------------------------------