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