PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/tutorial/backtracking/logigram/constraints/constraint_no.e

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