summaryrefslogtreecommitdiff
path: root/src/BOPTools/BOPTools_InterferenceLine.cdl
blob: 732fbcb3b97a5e7c83711b694e790656e52dacf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
-- File:	BOPTools_InterferenceLine.cdl
-- Created:	Tue Nov 21 11:54:46 2000
-- Author:	Peter KURNEV
--		<pkv@irinox>
---Copyright:	 Matra Datavision 2000


class InterferenceLine from BOPTools 

	---Purpose: class for storing information about all  
    	---         interferences for given shape. 
	---         So,  for each shape in the DS, we will have 
        ---         the  following interference list 
	---         (i1, t1, r1), (i2, t2, r2),...(iN, tN, rN), 
	---         where    
	---         (iN, tN, rN) - object of type  BOPTools_Interference 
        ---         The  class 	BOPTools_InterferenceLine is  dedicated 
	---         to provide convinient tools to  manage this info. 
        --- 
	 
uses
    KindOfInterference from BooleanOperations, 
    ListOfInterference from BOPTools,
    Interference from BOPTools


is
    Create  
    	returns InterferenceLine from BOPTools; 
    	---Purpose:  
    	--- Empty constructor 
    	---
    GetOnType(me;  
    	    	    aType :KindOfInterference from BooleanOperations) 
    	returns ListOfInterference from BOPTools; 
    	---C++: return  const & 
    	---Purpose:  
    	--- Returns info. list for interferences of given type 
    	---
    IsComputed(me;  
    	    	    aWith :Integer from Standard; 
    	            aType :KindOfInterference from BooleanOperations) 
	returns Boolean from Standard; 
    	---Purpose:  
    	--- Returns  TRUE if the interference of type <aType> 
    	--- with the shape <aWith> has already been computed.           
    	---
    AddInterference  (me:out;  
    	    	    anInterference  :Interference from BOPTools);	    	  
    	---Purpose:  
    	--- Adds  info. about the Interference to the list
    	---
    AddInterference  (me:out;  
    	    	    aWith :Integer from Standard; 
    	            aType :KindOfInterference from BooleanOperations;  
    	    	    anIndex:Integer from Standard);
    	---Purpose:  
    	--- Adds  info. about the Interference to the list
    	---
    List(me) 
    	returns ListOfInterference from BOPTools;  
    	---C++: return const & 
    	---Purpose:  
    	--- Selector  
    	---
     RealList(me) 
    	returns ListOfInterference from BOPTools;  
    	---C++: return const & 
    	---Purpose:  
    	--- Selector     
    	---
    HasInterference(me)    	    
    	returns Boolean from Standard;       	
    	---Purpose:  
    	--- Returns  TRUE if the list contains at least one  interference   
    	--- with non-empty result            
    	---
fields
     
    myList            : ListOfInterference from BOPTools; 
    mySSList          : ListOfInterference from BOPTools; 
    myESList          : ListOfInterference from BOPTools; 
    myVSList          : ListOfInterference from BOPTools; 
    myEEList          : ListOfInterference from BOPTools; 
    myVEList          : ListOfInterference from BOPTools; 
    myVVList          : ListOfInterference from BOPTools; 
    myEmptyList       : ListOfInterference from BOPTools;  
    
end InterferenceLine;