/tutorial/backtracking/logigram/constraints/constraint_yes.e

http://github.com/tybor/Liberty · Specman e · 36 lines · 12 code · 4 blank · 20 comment · 0 complexity · d3e4e6b9eb44b6ef8b1ef1052194bd5b MD5 · raw file

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