2 # Generated python file of Graph GraphConvertFloatCheck
6 GraphConvertFloatCheck = Graph( 'GraphConvertFloatCheck' )
7 GraphConvertFloatCheck.SetName( 'GraphConvertFloatCheck' )
8 GraphConvertFloatCheck.SetAuthor( 'JR' )
9 GraphConvertFloatCheck.SetComment( 'Check conversions of Float' )
10 GraphConvertFloatCheck.Coords( 0 , 0 )
12 # Creation of Factory Nodes
14 MiscTypes = GraphConvertFloatCheck.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 PyFloat.append( 'def Float() : ' )
24 PyFloat.append( ' aFloat = 3.1415926535 ' )
25 PyFloat.append( ' print type(aFloat),"aFloat",aFloat ' )
26 PyFloat.append( ' return aFloat ' )
28 Float = GraphConvertFloatCheck.INode( 'Float' , PyFloat )
29 Float.OutPort( 'OutFloat' , 'float' )
30 Float.SetName( 'Float' )
31 Float.SetAuthor( 'JR' )
32 Float.SetComment( 'InLine Node' )
33 Float.Coords( 14 , 114 )
36 FloatOutFloat = Float.Port( 'OutFloat' )
37 MiscTypesInString = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InString' ) )
39 MiscTypesInBool = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InBool' ) )
41 MiscTypesInChar = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InChar' ) )
43 MiscTypesInShort = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InShort' ) )
45 MiscTypesInLong = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InLong' ) )
47 MiscTypesInFloat = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InFloat' ) )
49 MiscTypesInDouble = GraphConvertFloatCheck.Link( FloatOutFloat , MiscTypes.Port( 'InDouble' ) )
51 MiscTypesInObjRef = GraphConvertFloatCheck.Link( FloatOutFloat , 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 GraphConvertFloatCheck.Run()
64 GraphConvertFloatCheck.DoneW()
65 GraphConvertFloatCheck.PrintPorts()