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