2 # Generated python file of Graph GraphConvertBoolCheck
6 GraphConvertBoolCheck = Graph( 'GraphConvertBoolCheck' )
7 GraphConvertBoolCheck.SetName( 'GraphConvertBoolCheck' )
8 GraphConvertBoolCheck.SetAuthor( 'JR' )
9 GraphConvertBoolCheck.SetComment( 'Check conversions of Bool' )
10 GraphConvertBoolCheck.Coords( 0 , 0 )
12 # Creation of Factory Nodes
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 )
21 # Creation of InLine Nodes
23 PyBool.append( 'def Bool() : ' )
24 PyBool.append( ' aBool = 1 ' )
25 PyBool.append( ' return aBool ' )
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 )
35 BoolOutBool = Bool.Port( 'OutBool' )
36 MiscTypesInString = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InString' ) )
38 MiscTypesInBool = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InBool' ) )
40 MiscTypesInChar = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InChar' ) )
42 MiscTypesInShort = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InShort' ) )
44 MiscTypesInLong = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InLong' ) )
46 MiscTypesInFloat = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InFloat' ) )
48 MiscTypesInDouble = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InDouble' ) )
50 MiscTypesInObjRef = GraphConvertBoolCheck.Link( BoolOutBool , MiscTypes.Port( 'InObjRef' ) )
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' )
62 GraphConvertBoolCheck.Run()
63 GraphConvertBoolCheck.DoneW()
64 GraphConvertBoolCheck.PrintPorts()