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