2 # Generated python file of Graph GraphConvertLongCheck
6 GraphConvertLongCheck = Graph( 'GraphConvertLongCheck' )
7 GraphConvertLongCheck.SetName( 'GraphConvertLongCheck' )
8 GraphConvertLongCheck.SetAuthor( 'JR' )
9 GraphConvertLongCheck.SetComment( 'Check conversions of Long' )
10 GraphConvertLongCheck.Coords( 0 , 0 )
12 # Creation of Factory Nodes
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 )
21 # Creation of InLine Nodes
23 PyLong.append( 'def Long() : ' )
24 PyLong.append( ' aLong = 2147483647 ' )
25 PyLong.append( ' print type( aLong ),"aLong",aLong ' )
26 PyLong.append( ' return aLong ' )
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 )
36 LongOutLong = Long.Port( 'OutLong' )
37 MiscTypesInString = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InString' ) )
39 MiscTypesInBool = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InBool' ) )
41 MiscTypesInChar = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InChar' ) )
43 MiscTypesInShort = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InShort' ) )
45 MiscTypesInLong = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InLong' ) )
47 MiscTypesInFloat = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InFloat' ) )
49 MiscTypesInDouble = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InDouble' ) )
51 MiscTypesInObjRef = GraphConvertLongCheck.Link( LongOutLong , MiscTypes.Port( 'InObjRef' ) )
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' )
63 GraphConvertLongCheck.Run()
64 GraphConvertLongCheck.DoneW()
65 GraphConvertLongCheck.PrintPorts()