Salome HOME
Imported using TkCVS
[samples/datafiles.git] / Superv / Python / GraphTypesCheck.py
1
2 # Generated python file of Graph GraphTypesCheck
3
4 from SuperV import *
5 # Graph creation 
6 GraphTypesCheck = Graph( 'GraphTypesCheck' )
7 GraphTypesCheck.SetName( 'GraphTypesCheck' )
8 GraphTypesCheck.SetAuthor( 'JR' )
9 GraphTypesCheck.SetComment( '' )
10 GraphTypesCheck.Coords( 0 , 0 )
11
12 # Creation of Factory Nodes
13
14 BoolCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'BoolCheck' )
15 BoolCheck.SetName( 'BoolCheck' )
16 BoolCheck.SetAuthor( '' )
17 BoolCheck.SetContainer( 'localhost/FactoryServer' )
18 BoolCheck.SetComment( 'BoolCheck from TypesCheck' )
19 BoolCheck.Coords( 202 , 108 )
20
21 CharCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'CharCheck' )
22 CharCheck.SetName( 'CharCheck' )
23 CharCheck.SetAuthor( '' )
24 CharCheck.SetContainer( 'localhost/FactoryServer' )
25 CharCheck.SetComment( 'CharCheck from TypesCheck' )
26 CharCheck.Coords( 13 , 166 )
27
28 ShortCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'ShortCheck' )
29 ShortCheck.SetName( 'ShortCheck' )
30 ShortCheck.SetAuthor( '' )
31 ShortCheck.SetContainer( 'localhost/FactoryServer' )
32 ShortCheck.SetComment( 'ShortCheck from TypesCheck' )
33 ShortCheck.Coords( 205 , 258 )
34
35 FloatCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'FloatCheck' )
36 FloatCheck.SetName( 'FloatCheck' )
37 FloatCheck.SetAuthor( '' )
38 FloatCheck.SetContainer( 'localhost/FactoryServer' )
39 FloatCheck.SetComment( 'FloatCheck from TypesCheck' )
40 FloatCheck.Coords( 204 , 409 )
41
42 Addition = GraphTypesCheck.FNode( 'AddComponent' , 'AddComponent' , 'Addition' )
43 Addition.SetName( 'Addition' )
44 Addition.SetAuthor( '' )
45 Addition.SetContainer( 'localhost/FactoryServer' )
46 Addition.SetComment( 'Addition from AddComponent' )
47 Addition.Coords( 16 , 459 )
48
49 LongCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'LongCheck' )
50 LongCheck.SetName( 'LongCheck' )
51 LongCheck.SetAuthor( '' )
52 LongCheck.SetContainer( 'localhost/FactoryServer' )
53 LongCheck.SetComment( 'LongCheck from TypesCheck' )
54 LongCheck.Coords( 17 , 318 )
55
56 MiscTypes = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' )
57 MiscTypes.SetName( 'MiscTypes' )
58 MiscTypes.SetAuthor( '' )
59 MiscTypes.SetContainer( 'localhost/FactoryServer' )
60 MiscTypes.SetComment( 'MiscTypes from TypesCheck' )
61 MiscTypes.Coords( 431 , 170 )
62
63 StringCheck = GraphTypesCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'StringCheck' )
64 StringCheck.SetName( 'StringCheck' )
65 StringCheck.SetAuthor( '' )
66 StringCheck.SetContainer( 'localhost/FactoryServer' )
67 StringCheck.SetComment( 'StringCheck from TypesCheck' )
68 StringCheck.Coords( 13 , 10 )
69
70 # Creation of Links
71 BoolCheckOutBool = BoolCheck.Port( 'OutBool' )
72 MiscTypesInBool = GraphTypesCheck.Link( BoolCheckOutBool , MiscTypes.Port( 'InBool' ) )
73 MiscTypesInBool.AddCoord( 1 , 402 , 280 )
74 MiscTypesInBool.AddCoord( 2 , 401 , 188 )
75
76 CharCheckOutChar = CharCheck.Port( 'OutChar' )
77 MiscTypesInChar = GraphTypesCheck.Link( CharCheckOutChar , MiscTypes.Port( 'InChar' ) )
78 MiscTypesInChar.AddCoord( 1 , 382 , 307 )
79 MiscTypesInChar.AddCoord( 2 , 382 , 247 )
80
81 ShortCheckOutShort = ShortCheck.Port( 'OutShort' )
82 MiscTypesInShort = GraphTypesCheck.Link( ShortCheckOutShort , MiscTypes.Port( 'InShort' ) )
83
84 FloatCheckOutFloat = FloatCheck.Port( 'OutFloat' )
85 MiscTypesInFloat = GraphTypesCheck.Link( FloatCheckOutFloat , MiscTypes.Port( 'InFloat' ) )
86 MiscTypesInFloat.AddCoord( 1 , 400 , 395 )
87 MiscTypesInFloat.AddCoord( 2 , 399 , 490 )
88
89 AdditionAdder = Addition.Port( 'Adder' )
90 MiscTypesInObjRef = GraphTypesCheck.Link( AdditionAdder , MiscTypes.Port( 'InObjRef' ) )
91 MiscTypesInObjRef.AddCoord( 1 , 415 , 453 )
92 MiscTypesInObjRef.AddCoord( 2 , 415 , 540 )
93
94 LongCheckOutLong = LongCheck.Port( 'OutLong' )
95 MiscTypesInLong = GraphTypesCheck.Link( LongCheckOutLong , MiscTypes.Port( 'InLong' ) )
96 MiscTypesInLong.AddCoord( 1 , 383 , 367 )
97 MiscTypesInLong.AddCoord( 2 , 383 , 399 )
98
99 StringCheckOutString = StringCheck.Port( 'OutString' )
100 MiscTypesInString = GraphTypesCheck.Link( StringCheckOutString , MiscTypes.Port( 'InString' ) )
101 MiscTypesInString.AddCoord( 1 , 412 , 251 )
102 MiscTypesInString.AddCoord( 2 , 411 , 91 )
103
104 # Creation of Input datas
105 BoolCheckInBool = BoolCheck.Input( 'InBool' , 1)
106 CharCheckInChar = CharCheck.Input( 'InChar' , 255)
107 ShortCheckInShort = ShortCheck.Input( 'InShort' , 16383)
108 FloatCheckInFloat = FloatCheck.Input( 'InFloat' , 3.14159)
109 LongCheckInLong = LongCheck.Input( 'InLong' , 2147483647)
110 MiscTypesInDouble = MiscTypes.Input( 'InDouble' , 3.14159)
111 StringCheckInString = StringCheck.Input( 'InString' , 'aString')
112
113 # Creation of Output variables
114 MiscTypesOutString = MiscTypes.Port( 'OutString' )
115 MiscTypesOutBool = MiscTypes.Port( 'OutBool' )
116 MiscTypesOutChar = MiscTypes.Port( 'OutChar' )
117 MiscTypesOutShort = MiscTypes.Port( 'OutShort' )
118 MiscTypesOutLong = MiscTypes.Port( 'OutLong' )
119 MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' )
120 MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' )
121 MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' )
122
123 GraphTypesCheck.Run()
124 GraphTypesCheck.DoneW()
125 GraphTypesCheck.PrintPorts()