7fd59977 |
1 | -- File: DNaming_TransformationDriver.cdl |
2 | -- Created: Thu May 7 11:50:28 2009 |
3 | -- Author: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com> |
4 | ---Copyright: Open CasCade SA 2009 |
5 | |
6 | |
7 | |
8 | class TransformationDriver from DNaming inherits Driver from TFunction |
9 | |
10 | ---Purpose: |
11 | |
12 | uses |
13 | Label from TDF, |
14 | Logbook from TFunction, |
15 | Function from TFunction, |
16 | ExtendedString from TCollection, |
17 | NamedShape from TNaming, |
18 | Trsf from gp |
19 | |
20 | is |
21 | Create returns mutable TransformationDriver from DNaming; |
22 | ---Purpose: Constructor |
23 | |
24 | ---Purpose: validation |
25 | -- ========== |
26 | |
27 | Validate(me; theLog : in out Logbook from TFunction) |
28 | is redefined; |
29 | ---Purpose: Validates labels of a function in <log>. |
30 | -- In regeneration mode this method must be called (by the |
31 | -- solver) even if the function is not executed, to build |
32 | -- the valid label scope. |
33 | |
34 | ---Purpose: execution of function |
35 | -- ====================== |
36 | |
37 | MustExecute (me; theLog : Logbook from TFunction) |
38 | ---Purpose: Analyse in <log> if the loaded function must be executed |
39 | -- (i.e.arguments are modified) or not. |
40 | -- If the Function label itself is modified, the function must |
41 | -- be executed. |
42 | returns Boolean from Standard |
43 | is redefined; |
44 | |
45 | Execute (me; theLog : in out Logbook from TFunction) |
46 | ---Purpose: Execute the function and push in <log> the impacted |
47 | -- labels (see method SetImpacted). |
48 | returns Integer from Standard |
49 | is redefined; |
50 | |
51 | LoadNamingDS(me; theResultLabel : Label from TDF; theSourceNS : NamedShape from TNaming; |
52 | theTrsf : Trsf from gp) |
53 | is private; |
54 | |
55 | end TransformationDriver; |