]> SALOME platform Git repositories - modules/superv.git/blob - examples/GraphConvertCharCheck.py
Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/superv.git] / examples / GraphConvertCharCheck.py
1
2 # Generated python file of Graph GraphConvertCharCheck
3
4 from SuperV import *
5 # Graph creation 
6 GraphConvertCharCheck = Graph( 'GraphConvertCharCheck' )
7 GraphConvertCharCheck.SetName( 'GraphConvertCharCheck' )
8 GraphConvertCharCheck.SetAuthor( 'JR' )
9 GraphConvertCharCheck.SetComment( 'Check conversions of Char' )
10 GraphConvertCharCheck.Coords( 0 , 0 )
11
12 # Creation of Factory Nodes
13
14 MiscTypes = GraphConvertCharCheck.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 PyChar = []
23 PyChar.append( 'def Char() :  ' )
24 PyChar.append( '    aChar = 255  ' )
25 PyChar.append( '    return aChar  ' )
26 PyChar.append( ' ' )
27 Char = GraphConvertCharCheck.INode( 'Char' , PyChar )
28 Char.OutPort( 'OutChar' , 'char' )
29 Char.SetName( 'Char' )
30 Char.SetAuthor( 'JR' )
31 Char.SetComment( 'InLine Node' )
32 Char.Coords( 14 , 114 )
33
34 # Creation of Links
35 CharOutChar = Char.Port( 'OutChar' )
36 MiscTypesInString = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InString' ) )
37
38 MiscTypesInBool = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InBool' ) )
39
40 MiscTypesInChar = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InChar' ) )
41
42 MiscTypesInShort = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InShort' ) )
43
44 MiscTypesInLong = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InLong' ) )
45
46 MiscTypesInFloat = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InFloat' ) )
47
48 MiscTypesInDouble = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InDouble' ) )
49
50 MiscTypesInObjRef = GraphConvertCharCheck.Link( CharOutChar , MiscTypes.Port( 'InObjRef' ) )
51
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' )
61
62 GraphConvertCharCheck.Run()
63 GraphConvertCharCheck.DoneW()
64 GraphConvertCharCheck.PrintPorts()