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