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