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