]> SALOME platform Git repositories - samples/datafiles.git/blob - Superv/Python/GraphTypesCheck.py
Salome HOME
Merge from V6_main_20120808 08Aug12
[samples/datafiles.git] / Superv / Python / GraphTypesCheck.py
1 #  Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 #  This library is free software; you can redistribute it and/or
7 #  modify it under the terms of the GNU Lesser General Public
8 #  License as published by the Free Software Foundation; either
9 #  version 2.1 of the License.
10 #
11 #  This library is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 #  Lesser General Public License for more details.
15 #
16 #  You should have received a copy of the GNU Lesser General Public
17 #  License along with this library; if not, write to the Free Software
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 # Generated python file of Graph GraphTypesCheck
23 #
24 from SuperV import *
25 # Graph creation 
26 GraphTypesCheck = Graph( 'GraphTypesCheck' )
27 GraphTypesCheck.SetName( 'GraphTypesCheck' )
28 GraphTypesCheck.SetAuthor( 'JR' )
29 GraphTypesCheck.SetComment( '' )
30 GraphTypesCheck.Coords( 0 , 0 )
31
32 # Creation of Factory Nodes
33
34 BoolCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'BoolCheck' )
35 BoolCheck.SetName( 'BoolCheck' )
36 BoolCheck.SetAuthor( '' )
37 BoolCheck.SetContainer( 'localhost/FactoryServer' )
38 BoolCheck.SetComment( 'BoolCheck from TypesCheck' )
39 BoolCheck.Coords( 202 , 108 )
40
41 CharCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'CharCheck' )
42 CharCheck.SetName( 'CharCheck' )
43 CharCheck.SetAuthor( '' )
44 CharCheck.SetContainer( 'localhost/FactoryServer' )
45 CharCheck.SetComment( 'CharCheck from TypesCheck' )
46 CharCheck.Coords( 13 , 166 )
47
48 ShortCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'ShortCheck' )
49 ShortCheck.SetName( 'ShortCheck' )
50 ShortCheck.SetAuthor( '' )
51 ShortCheck.SetContainer( 'localhost/FactoryServer' )
52 ShortCheck.SetComment( 'ShortCheck from TypesCheck' )
53 ShortCheck.Coords( 205 , 258 )
54
55 FloatCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'FloatCheck' )
56 FloatCheck.SetName( 'FloatCheck' )
57 FloatCheck.SetAuthor( '' )
58 FloatCheck.SetContainer( 'localhost/FactoryServer' )
59 FloatCheck.SetComment( 'FloatCheck from TypesCheck' )
60 FloatCheck.Coords( 204 , 409 )
61
62 Addition = GraphTypesCheck.FNode( 'AddComponent' , 'AddComponent' , 'Addition' )
63 Addition.SetName( 'Addition' )
64 Addition.SetAuthor( '' )
65 Addition.SetContainer( 'localhost/FactoryServer' )
66 Addition.SetComment( 'Addition from AddComponent' )
67 Addition.Coords( 16 , 459 )
68
69 LongCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'LongCheck' )
70 LongCheck.SetName( 'LongCheck' )
71 LongCheck.SetAuthor( '' )
72 LongCheck.SetContainer( 'localhost/FactoryServer' )
73 LongCheck.SetComment( 'LongCheck from TypesCheck' )
74 LongCheck.Coords( 17 , 318 )
75
76 MiscTypes = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' )
77 MiscTypes.SetName( 'MiscTypes' )
78 MiscTypes.SetAuthor( '' )
79 MiscTypes.SetContainer( 'localhost/FactoryServer' )
80 MiscTypes.SetComment( 'MiscTypes from TypesCheck' )
81 MiscTypes.Coords( 431 , 170 )
82
83 StringCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'StringCheck' )
84 StringCheck.SetName( 'StringCheck' )
85 StringCheck.SetAuthor( '' )
86 StringCheck.SetContainer( 'localhost/FactoryServer' )
87 StringCheck.SetComment( 'StringCheck from TypesCheck' )
88 StringCheck.Coords( 13 , 10 )
89
90 # Creation of Links
91 BoolCheckOutBool = BoolCheck.Port( 'OutBool' )
92 MiscTypesInBool = GraphTypesCheck.Link( BoolCheckOutBool , MiscTypes.Port( 'InBool' ) )
93 MiscTypesInBool.AddCoord( 1 , 402 , 280 )
94 MiscTypesInBool.AddCoord( 2 , 401 , 188 )
95
96 CharCheckOutChar = CharCheck.Port( 'OutChar' )
97 MiscTypesInChar = GraphTypesCheck.Link( CharCheckOutChar , MiscTypes.Port( 'InChar' ) )
98 MiscTypesInChar.AddCoord( 1 , 382 , 307 )
99 MiscTypesInChar.AddCoord( 2 , 382 , 247 )
100
101 ShortCheckOutShort = ShortCheck.Port( 'OutShort' )
102 MiscTypesInShort = GraphTypesCheck.Link( ShortCheckOutShort , MiscTypes.Port( 'InShort' ) )
103
104 FloatCheckOutFloat = FloatCheck.Port( 'OutFloat' )
105 MiscTypesInFloat = GraphTypesCheck.Link( FloatCheckOutFloat , MiscTypes.Port( 'InFloat' ) )
106 MiscTypesInFloat.AddCoord( 1 , 400 , 395 )
107 MiscTypesInFloat.AddCoord( 2 , 399 , 490 )
108
109 AdditionAdder = Addition.Port( 'Adder' )
110 MiscTypesInObjRef = GraphTypesCheck.Link( AdditionAdder , MiscTypes.Port( 'InObjRef' ) )
111 MiscTypesInObjRef.AddCoord( 1 , 415 , 453 )
112 MiscTypesInObjRef.AddCoord( 2 , 415 , 540 )
113
114 LongCheckOutLong = LongCheck.Port( 'OutLong' )
115 MiscTypesInLong = GraphTypesCheck.Link( LongCheckOutLong , MiscTypes.Port( 'InLong' ) )
116 MiscTypesInLong.AddCoord( 1 , 383 , 367 )
117 MiscTypesInLong.AddCoord( 2 , 383 , 399 )
118
119 StringCheckOutString = StringCheck.Port( 'OutString' )
120 MiscTypesInString = GraphTypesCheck.Link( StringCheckOutString , MiscTypes.Port( 'InString' ) )
121 MiscTypesInString.AddCoord( 1 , 412 , 251 )
122 MiscTypesInString.AddCoord( 2 , 411 , 91 )
123
124 # Creation of Input datas
125 BoolCheckInBool = BoolCheck.Input( 'InBool' , 1)
126 CharCheckInChar = CharCheck.Input( 'InChar' , 255)
127 ShortCheckInShort = ShortCheck.Input( 'InShort' , 16383)
128 FloatCheckInFloat = FloatCheck.Input( 'InFloat' , 3.14159)
129 LongCheckInLong = LongCheck.Input( 'InLong' , 2147483647)
130 MiscTypesInDouble = MiscTypes.Input( 'InDouble' , 3.14159)
131 StringCheckInString = StringCheck.Input( 'InString' , 'aString')
132
133 # Creation of Output variables
134 MiscTypesOutString = MiscTypes.Port( 'OutString' )
135 MiscTypesOutBool = MiscTypes.Port( 'OutBool' )
136 MiscTypesOutChar = MiscTypes.Port( 'OutChar' )
137 MiscTypesOutShort = MiscTypes.Port( 'OutShort' )
138 MiscTypesOutLong = MiscTypes.Port( 'OutLong' )
139 MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' )
140 MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' )
141 MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' )
142
143 GraphTypesCheck.Run()
144 GraphTypesCheck.DoneW()
145 GraphTypesCheck.PrintPorts()