2 # Generated python file of Graph GraphEssai2
6 GraphEssai2 = Graph( 'GraphEssai2' )
7 GraphEssai2.SetName( 'GraphEssai2' )
8 GraphEssai2.SetAuthor( '' )
9 GraphEssai2.SetComment( '' )
10 GraphEssai2.Coords( 0 , 0 )
12 # Creation of Factory Nodes
14 Add = GraphEssai2.FNode( 'AddComponent' , 'AddComponent' , 'Add' )
17 Add.SetContainer( 'localhost/FactoryServer' )
18 Add.SetComment( 'Add from AddComponent' )
19 Add.Coords( 18 , 239 )
21 Sub = GraphEssai2.FNode( 'SubComponent' , 'SubComponent' , 'Sub' )
24 Sub.SetContainer( 'localhost/FactoryServer' )
25 Sub.SetComment( 'Sub from SubComponent' )
26 Sub.Coords( 232 , 269 )
28 Mul = GraphEssai2.FNode( 'MulComponent' , 'MulComponent' , 'Mul' )
31 Mul.SetContainer( 'localhost/FactoryServer' )
32 Mul.SetComment( 'Mul from MulComponent' )
33 Mul.Coords( 431 , 22 )
35 Div = GraphEssai2.FNode( 'DivComponent' , 'DivComponent' , 'Div' )
38 Div.SetContainer( 'localhost/FactoryServer' )
39 Div.SetComment( 'Div from DivComponent' )
40 Div.Coords( 645 , 268 )
43 AddFuncValue = Add.Port( 'FuncValue' )
44 Mulx = GraphEssai2.Link( AddFuncValue , Mul.Port( 'x' ) )
45 Mulx.AddCoord( 1 , 199 , 102 )
46 Mulx.AddCoord( 2 , 198 , 319 )
48 Addz = Add.Port( 'z' )
49 Subx = GraphEssai2.Link( Addz , Sub.Port( 'x' ) )
51 Subz = Sub.Port( 'z' )
52 Divx = GraphEssai2.Link( Subz , Div.Port( 'x' ) )
54 SubOutGate = Sub.Port( 'OutGate' )
55 MulInGate = GraphEssai2.Link( SubOutGate , Mul.Port( 'InGate' ) )
56 MulInGate.AddCoord( 1 , 405 , 165 )
57 MulInGate.AddCoord( 2 , 405 , 412 )
59 Mulz = Mul.Port( 'z' )
60 Divy = GraphEssai2.Link( Mulz , Div.Port( 'y' ) )
61 Divy.AddCoord( 1 , 612 , 377 )
62 Divy.AddCoord( 2 , 612 , 103 )
64 # Creation of Input datas
65 Addx = Add.Input( 'x' , 1)
66 Addy = Add.Input( 'y' , 2)
67 Suby = Sub.Input( 'y' , 3)
68 Muly = Mul.Input( 'y' , 4)
70 # Creation of Output variables
71 Divz = Div.Port( 'z' )
79 GraphEssai2.PrintPorts()