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