Salome HOME
a58b67f5d51c38fd42ebeb25928df973749da589
[samples/datafiles.git] / Superv / Python / GraphEmptyInLinesTypesCheck.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 GraphEmptyInLinesConvertCheck
23 #
24 from SuperV import *
25 # Graph creation 
26 GraphEmptyInLinesConvertCheck = Graph( 'GraphEmptyInLinesConvertCheck' )
27 GraphEmptyInLinesConvertCheck.SetName( 'GraphEmptyInLinesConvertCheck' )
28 GraphEmptyInLinesConvertCheck.SetAuthor( 'JR' )
29 GraphEmptyInLinesConvertCheck.SetComment( '' )
30 GraphEmptyInLinesConvertCheck.Coords( 0 , 0 )
31
32 # Creation of Factory Nodes
33
34 Addition = GraphEmptyInLinesConvertCheck.FNode( 'AddComponent' , 'AddComponent' , 'Addition' )
35 Addition.SetName( 'Addition' )
36 Addition.SetAuthor( '' )
37 Addition.SetContainer( 'localhost/FactoryServer' )
38 Addition.SetComment( 'Addition from AddComponent' )
39 Addition.Coords( 232 , 514 )
40
41 # Creation of InLine Nodes
42 PyBoolCheck = []
43 PyBoolCheck.append( ' ' )
44 BoolCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyBoolCheck )
45 BoolCheck.InPort( 'InBool' , 'boolean' )
46 BoolCheck.OutPort( 'OutBool' , 'boolean' )
47 BoolCheck.SetName( 'BoolCheck' )
48 BoolCheck.SetAuthor( '' )
49 BoolCheck.SetComment( 'Empty InLine Node' )
50 BoolCheck.Coords( 234 , 92 )
51
52 PyCharCheck = []
53 PyCharCheck.append( ' ' )
54 CharCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyCharCheck )
55 CharCheck.InPort( 'InChar' , 'char' )
56 CharCheck.OutPort( 'OutChar' , 'char' )
57 CharCheck.SetName( 'CharCheck' )
58 CharCheck.SetAuthor( '' )
59 CharCheck.SetComment( 'Empty InLine Node' )
60 CharCheck.Coords( 30 , 142 )
61
62 PyShortCheck = []
63 PyShortCheck.append( '  ' )
64 ShortCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyShortCheck )
65 ShortCheck.InPort( 'InShort' , 'short' )
66 ShortCheck.OutPort( 'OutShort' , 'short' )
67 ShortCheck.SetName( 'ShortCheck' )
68 ShortCheck.SetAuthor( '' )
69 ShortCheck.SetComment( 'Empty InLine Node' )
70 ShortCheck.Coords( 234 , 230 )
71
72 PyFloatCheck = []
73 PyFloatCheck.append( ' ' )
74 FloatCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyFloatCheck )
75 FloatCheck.InPort( 'InFloat' , 'float' )
76 FloatCheck.OutPort( 'OutFloat' , 'float' )
77 FloatCheck.SetName( 'FloatCheck' )
78 FloatCheck.SetAuthor( '' )
79 FloatCheck.SetComment( 'Empty InLine Node' )
80 FloatCheck.Coords( 230 , 375 )
81
82 PyLongCheck = []
83 PyLongCheck.append( ' ' )
84 LongCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyLongCheck )
85 LongCheck.InPort( 'InLong' , 'long' )
86 LongCheck.OutPort( 'OutLong' , 'long' )
87 LongCheck.SetName( 'LongCheck' )
88 LongCheck.SetAuthor( '' )
89 LongCheck.SetComment( 'Empty InLine Node' )
90 LongCheck.Coords( 30 , 282 )
91
92 PyStringCheck = []
93 PyStringCheck.append( ' ' )
94 StringCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyStringCheck )
95 StringCheck.InPort( 'InString' , 'string' )
96 StringCheck.OutPort( 'OutString' , 'string' )
97 StringCheck.SetName( 'StringCheck' )
98 StringCheck.SetAuthor( '' )
99 StringCheck.SetComment( 'Empty InLine Node' )
100 StringCheck.Coords( 30 , 6 )
101
102 PyDoubleCheck = []
103 PyDoubleCheck.append( '  ' )
104 DoubleCheck = GraphEmptyInLinesConvertCheck.INode( '' , PyDoubleCheck )
105 DoubleCheck.InPort( 'InDouble' , 'double' )
106 DoubleCheck.OutPort( 'OutDouble' , 'double' )
107 DoubleCheck.SetName( 'DoubleCheck' )
108 DoubleCheck.SetAuthor( '' )
109 DoubleCheck.SetComment( 'Empty InLine Node' )
110 DoubleCheck.Coords( 29 , 428 )
111
112 PyMiscTypes = []
113 PyMiscTypes.append( ' ' )
114 MiscTypes = GraphEmptyInLinesConvertCheck.INode( '' , PyMiscTypes )
115 MiscTypes.InPort( 'InString' , 'string' )
116 MiscTypes.InPort( 'InBool' , 'boolean' )
117 MiscTypes.InPort( 'InChar' , 'char' )
118 MiscTypes.InPort( 'InShort' , 'short' )
119 MiscTypes.InPort( 'InLong' , 'long' )
120 MiscTypes.InPort( 'InFloat' , 'float' )
121 MiscTypes.InPort( 'InDouble' , 'double' )
122 MiscTypes.InPort( 'InObjRef' , 'SuperVision::Adder' )
123 MiscTypes.OutPort( 'OutString' , 'string' )
124 MiscTypes.OutPort( 'OutBool' , 'boolean' )
125 MiscTypes.OutPort( 'OutChar' , 'char' )
126 MiscTypes.OutPort( 'OutShort' , 'short' )
127 MiscTypes.OutPort( 'OutLong' , 'long' )
128 MiscTypes.OutPort( 'OutFloat' , 'float' )
129 MiscTypes.OutPort( 'OutDouble' , 'double' )
130 MiscTypes.OutPort( 'OutObjRef' , 'SuperVisionTest::Addre' )
131 MiscTypes.SetName( 'MiscTypes' )
132 MiscTypes.SetAuthor( '' )
133 MiscTypes.SetComment( 'Empty InLine Node' )
134 MiscTypes.Coords( 477 , 231 )
135
136 # Creation of Links
137 BoolCheckOutBool = BoolCheck.Port( 'OutBool' )
138 MiscTypesInBool = GraphEmptyInLinesConvertCheck.Link( BoolCheckOutBool , MiscTypes.Port( 'InBool' ) )
139 MiscTypesInBool.AddCoord( 1 , 446 , 341 )
140 MiscTypesInBool.AddCoord( 2 , 446 , 172 )
141
142 CharCheckOutChar = CharCheck.Port( 'OutChar' )
143 MiscTypesInChar = GraphEmptyInLinesConvertCheck.Link( CharCheckOutChar , MiscTypes.Port( 'InChar' ) )
144 MiscTypesInChar.AddCoord( 1 , 431 , 368 )
145 MiscTypesInChar.AddCoord( 2 , 431 , 223 )
146
147 ShortCheckOutShort = ShortCheck.Port( 'OutShort' )
148 MiscTypesInShort = GraphEmptyInLinesConvertCheck.Link( ShortCheckOutShort , MiscTypes.Port( 'InShort' ) )
149 MiscTypesInShort.AddCoord( 1 , 415 , 397 )
150 MiscTypesInShort.AddCoord( 2 , 414 , 310 )
151
152 FloatCheckOutFloat = FloatCheck.Port( 'OutFloat' )
153 MiscTypesInFloat = GraphEmptyInLinesConvertCheck.Link( FloatCheckOutFloat , MiscTypes.Port( 'InFloat' ) )
154
155 AdditionAdder = Addition.Port( 'Adder' )
156 MiscTypesInObjRef = GraphEmptyInLinesConvertCheck.Link( AdditionAdder , MiscTypes.Port( 'InObjRef' ) )
157 MiscTypesInObjRef.AddCoord( 1 , 462 , 514 )
158 MiscTypesInObjRef.AddCoord( 2 , 461 , 593 )
159
160 LongCheckOutLong = LongCheck.Port( 'OutLong' )
161 MiscTypesInLong = GraphEmptyInLinesConvertCheck.Link( LongCheckOutLong , MiscTypes.Port( 'InLong' ) )
162 MiscTypesInLong.AddCoord( 1 , 406 , 426 )
163 MiscTypesInLong.AddCoord( 2 , 405 , 363 )
164
165 StringCheckOutString = StringCheck.Port( 'OutString' )
166 MiscTypesInString = GraphEmptyInLinesConvertCheck.Link( StringCheckOutString , MiscTypes.Port( 'InString' ) )
167 MiscTypesInString.AddCoord( 1 , 462 , 312 )
168 MiscTypesInString.AddCoord( 2 , 461 , 87 )
169
170 DoubleCheckOutDouble = DoubleCheck.Port( 'OutDouble' )
171 MiscTypesInDouble = GraphEmptyInLinesConvertCheck.Link( DoubleCheckOutDouble , MiscTypes.Port( 'InDouble' ) )
172 MiscTypesInDouble.AddCoord( 1 , 445 , 485 )
173 MiscTypesInDouble.AddCoord( 2 , 445 , 508 )
174
175 # Creation of Input datas
176 BoolCheckInBool = BoolCheck.Input( 'InBool' , 1)
177 CharCheckInChar = CharCheck.Input( 'InChar' , 255)
178 ShortCheckInShort = ShortCheck.Input( 'InShort' , 16383)
179 FloatCheckInFloat = FloatCheck.Input( 'InFloat' , 3.14159)
180 LongCheckInLong = LongCheck.Input( 'InLong' , 1234567890)
181 StringCheckInString = StringCheck.Input( 'InString' , 'aString')
182 DoubleCheckInDouble = DoubleCheck.Input( 'InDouble' , 1.23457)
183
184 # Creation of Output variables
185 MiscTypesOutString = MiscTypes.Port( 'OutString' )
186 MiscTypesOutBool = MiscTypes.Port( 'OutBool' )
187 MiscTypesOutChar = MiscTypes.Port( 'OutChar' )
188 MiscTypesOutShort = MiscTypes.Port( 'OutShort' )
189 MiscTypesOutLong = MiscTypes.Port( 'OutLong' )
190 MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' )
191 MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' )
192 MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' )
193
194 GraphEmptyInLinesConvertCheck.Run()
195 GraphEmptyInLinesConvertCheck.DoneW()
196 GraphEmptyInLinesConvertCheck.PrintPorts()