]> SALOME platform Git repositories - modules/superv.git/blob - examples/GraphConvertShortCheck.py
Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/superv.git] / examples / GraphConvertShortCheck.py
1
2 # Generated python file of Graph GraphConvertShortCheck
3
4 from SuperV import *
5 # Graph creation 
6 GraphConvertShortCheck = Graph( 'GraphConvertShortCheck' )
7 GraphConvertShortCheck.SetName( 'GraphConvertShortCheck' )
8 GraphConvertShortCheck.SetAuthor( 'JR' )
9 GraphConvertShortCheck.SetComment( 'Check conversions of Short' )
10 GraphConvertShortCheck.Coords( 0 , 0 )
11
12 # Creation of Factory Nodes
13
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 )
20
21 # Creation of InLine Nodes
22 PyShort = []
23 PyShort.append( 'def Short() :  ' )
24 PyShort.append( '    aShort = 32767 ' )
25 PyShort.append( '    print type( aShort ),"aShort",aShort ' )
26 PyShort.append( '    return aShort  ' )
27 PyShort.append( ' ' )
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 )
34
35 # Creation of Links
36 ShortOutShort = Short.Port( 'OutShort' )
37 MiscTypesInString = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InString' ) )
38
39 MiscTypesInBool = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InBool' ) )
40
41 MiscTypesInChar = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InChar' ) )
42
43 MiscTypesInShort = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InShort' ) )
44
45 MiscTypesInLong = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InLong' ) )
46
47 MiscTypesInFloat = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InFloat' ) )
48
49 MiscTypesInDouble = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InDouble' ) )
50
51 MiscTypesInObjRef = GraphConvertShortCheck.Link( ShortOutShort , MiscTypes.Port( 'InObjRef' ) )
52
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' )
62
63 GraphConvertShortCheck.Run()
64 GraphConvertShortCheck.DoneW()
65 GraphConvertShortCheck.PrintPorts()