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