Salome HOME
Fix for bug IPAL9983 : Object browser is not updated after dataflow run.
[modules/superv.git] / examples / GraphConvertLongCheck.py
1
2 # Generated python file of Graph GraphConvertLongCheck
3
4 from SuperV import *
5 # Graph creation 
6 GraphConvertLongCheck = Graph( 'GraphConvertLongCheck' )
7 GraphConvertLongCheck.SetName( 'GraphConvertLongCheck' )
8 GraphConvertLongCheck.SetAuthor( 'JR' )
9 GraphConvertLongCheck.SetComment( 'Check conversions of Long' )
10 GraphConvertLongCheck.Coords( 0 , 0 )
11
12 # Creation of Factory Nodes
13
14 MiscTypes = GraphConvertLongCheck.FNode( 'TypesCheck' , 'TypesCheck' , 'MiscTypes' )
15 MiscTypes.SetName( 'MiscTypes' )
16 MiscTypes.SetAuthor( '' )
17 MiscTypes.SetContainer( 'localhost/FactoryServer' )
18 MiscTypes.SetComment( 'MiscTypes from TypesCheck' )
19 MiscTypes.Coords( 284 , 28 )
20
21 # Creation of InLine Nodes
22 PyLong = []
23 PyLong.append( 'def Long() :    ' )
24 PyLong.append( '    aLong = 2147483647 ' )
25 PyLong.append( '    print type( aLong ),"aLong",aLong  ' )
26 PyLong.append( '    return aLong    ' )
27 PyLong.append( ' ' )
28 Long = GraphConvertLongCheck.INode( 'Long' , PyLong )
29 Long.OutPort( 'OutLong' , 'long' )
30 Long.SetName( 'Long' )
31 Long.SetAuthor( 'JR' )
32 Long.SetComment( 'InLine Node' )
33 Long.Coords( 14 , 114 )
34
35 # Creation of Links
36 LongOutLong = Long.Port( 'OutLong' )
37 MiscTypesInString = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InString' ) )
38
39 MiscTypesInBool = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InBool' ) )
40
41 MiscTypesInChar = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InChar' ) )
42
43 MiscTypesInShort = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InShort' ) )
44
45 MiscTypesInLong = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InLong' ) )
46
47 MiscTypesInFloat = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InFloat' ) )
48
49 MiscTypesInDouble = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InDouble' ) )
50
51 MiscTypesInObjRef = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InObjRef' ) )
52
53 # Creation of Output variables
54 MiscTypesOutString = MiscTypes.Port( 'OutString' )
55 MiscTypesOutBool = MiscTypes.Port( 'OutBool' )
56 MiscTypesOutChar = MiscTypes.Port( 'OutChar' )
57 MiscTypesOutShort = MiscTypes.Port( 'OutShort' )
58 MiscTypesOutLong = MiscTypes.Port( 'OutLong' )
59 MiscTypesOutFloat = MiscTypes.Port( 'OutFloat' )
60 MiscTypesOutDouble = MiscTypes.Port( 'OutDouble' )
61 MiscTypesOutObjRef = MiscTypes.Port( 'OutObjRef' )
62
63 GraphConvertLongCheck.Run()
64 GraphConvertLongCheck.DoneW()
65 GraphConvertLongCheck.PrintPorts()