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