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