2 # Generated python file of Graph GraphEssai1
6 GraphEssai1 = Graph( 'GraphEssai1' )
7 GraphEssai1.SetName( 'GraphEssai1' )
8 GraphEssai1.SetAuthor( '' )
9 GraphEssai1.SetComment( '' )
10 GraphEssai1.Coords( 0 , 0 )
12 # Creation of Computing Nodes
13 Add = GraphEssai1.Node( 'AddComponent' , 'AddComponent' , 'Add' )
16 Add.SetContainer( 'localhost/FactoryServer' )
19 Sub = GraphEssai1.Node( 'SubComponent' , 'SubComponent' , 'Sub' )
22 Sub.SetContainer( 'localhost/FactoryServer' )
24 Sub.Coords( 192 , 51 )
25 Mul = GraphEssai1.Node( 'MulComponent' , 'MulComponent' , 'Mul' )
28 Mul.SetContainer( 'localhost/FactoryServer' )
30 Mul.Coords( 420 , 265 )
31 Div = GraphEssai1.Node( 'DivComponent' , 'DivComponent' , 'Div' )
34 Div.SetContainer( 'localhost/FactoryServer' )
36 Div.Coords( 623 , 141 )
38 # Creation of intermediate Output variables and of Computing Links
39 Addz = Add.Port( 'z' )
40 Subx = GraphEssai1.Link( Addz , Sub.Port( 'x' ) )
41 Subz = Sub.Port( 'z' )
42 Mulx = GraphEssai1.Link( Subz , Mul.Port( 'x' ) )
43 Divx = GraphEssai1.Link( Subz , Div.Port( 'x' ) )
44 Mulz = Mul.Port( 'z' )
45 Divy = GraphEssai1.Link( Mulz , Div.Port( 'y' ) )
47 # Creation of Input datas
48 Addx = Add.Input( 'x' , 3)
49 Addy = Add.Input( 'y' , 5)
50 Suby = Sub.Input( 'y' , 7)
51 Muly = Mul.Input( 'y' , 11)
53 # Creation of Output variables
54 AddFuncValue = Add.Port( 'FuncValue' )
55 Divz = Div.Port( 'z' )
63 GraphEssai1.PrintPorts()