Salome HOME
New test of MacroNodes
[samples/datafiles.git] / Superv / Python / GraphSub.py
1
2 # Generated python file of Graph GraphSub
3
4 from SuperV import *
5
6 # Graph creation of GraphSub
7 def DefGraphSub() :
8     GraphSub = Graph( 'GraphSub' )
9     GraphSub.SetName( 'GraphSub' )
10     GraphSub.SetAuthor( '' )
11     GraphSub.SetComment( '' )
12     GraphSub.Coords( 0 , 0 )
13     
14     # Creation of Factory Nodes
15     
16     Sub = GraphSub.FNode( 'SubComponent' , 'SubComponent' , 'Sub' )
17     Sub.SetName( 'Sub' )
18     Sub.SetAuthor( '' )
19     Sub.SetContainer( 'localhost/FactoryServer' )
20     Sub.SetComment( 'Sub from SubComponent' )
21     Sub.Coords( 55 , 71 )
22     ISubx = Sub.GetInPort( 'x' )
23     ISuby = Sub.GetInPort( 'y' )
24     ISubGate = Sub.GetInPort( 'Gate' )
25     OSubz = Sub.GetOutPort( 'z' )
26     OSubGate = Sub.GetOutPort( 'Gate' )
27     
28     # Input Ports of the graph
29     #ISubx = Sub.GetInPort( 'x' )
30     #ISuby = Sub.GetInPort( 'y' )
31     
32     # Output Ports of the graph
33     #OSubz = Sub.GetOutPort( 'z' )
34     return GraphSub
35
36
37 GraphSub = DefGraphSub()