+++ /dev/null
-
-# Generated python file of Graph GraphEmbeddedComponentsCrash
-
-from SuperV import *
-
-# Graph creation of GraphEmbeddedComponentsCrash
-def DefGraphEmbeddedComponentsCrash() :
- GraphEmbeddedComponentsCrash = Graph( 'GraphEmbeddedComponentsCrash' )
- GraphEmbeddedComponentsCrash.SetName( 'GraphEmbeddedComponentsCrash' )
- GraphEmbeddedComponentsCrash.SetAuthor( '' )
- GraphEmbeddedComponentsCrash.SetComment( '' )
- GraphEmbeddedComponentsCrash.Coords( 0 , 0 )
-
- # Creation of Factory Nodes
-
- Add = GraphEmbeddedComponentsCrash.FNode( 'AddComponent' , 'AddComponent' , 'Add' )
- Add.SetName( 'Add' )
- Add.SetAuthor( '' )
- Add.SetContainer( 'localhost/FactoryServer' )
- Add.SetComment( 'Add from AddComponent' )
- Add.Coords( 1 , 152 )
- IAddx = Add.GetInPort( 'x' )
- IAddy = Add.GetInPort( 'y' )
- IAddGate = Add.GetInPort( 'Gate' )
- OAddFuncValue = Add.GetOutPort( 'FuncValue' )
- OAddz = Add.GetOutPort( 'z' )
- OAddGate = Add.GetOutPort( 'Gate' )
-
- Sub = GraphEmbeddedComponentsCrash.FNode( 'SubComponent' , 'SubComponent' , 'Sub' )
- Sub.SetName( 'Sub' )
- Sub.SetAuthor( '' )
- Sub.SetContainer( 'localhost/FactoryServer' )
- Sub.SetComment( 'Sub from SubComponent' )
- Sub.Coords( 477 , 381 )
- ISubx = Sub.GetInPort( 'x' )
- ISuby = Sub.GetInPort( 'y' )
- ISubGate = Sub.GetInPort( 'Gate' )
- OSubz = Sub.GetOutPort( 'z' )
- OSubGate = Sub.GetOutPort( 'Gate' )
-
- Mul = GraphEmbeddedComponentsCrash.FNode( 'MulComponent' , 'MulComponent' , 'Mul' )
- Mul.SetName( 'Mul' )
- Mul.SetAuthor( '' )
- Mul.SetContainer( 'localhost/FactoryServer' )
- Mul.SetComment( 'Mul from MulComponent' )
- Mul.Coords( 480 , 152 )
- IMulx = Mul.GetInPort( 'x' )
- IMuly = Mul.GetInPort( 'y' )
- IMulGate = Mul.GetInPort( 'Gate' )
- OMulz = Mul.GetOutPort( 'z' )
- OMulGate = Mul.GetOutPort( 'Gate' )
-
- Div = GraphEmbeddedComponentsCrash.FNode( 'DivComponent' , 'DivComponent' , 'Div' )
- Div.SetName( 'Div' )
- Div.SetAuthor( '' )
- Div.SetContainer( 'localhost/FactoryServer' )
- Div.SetComment( 'Div from DivComponent' )
- Div.Coords( 714 , 136 )
- IDivx = Div.GetInPort( 'x' )
- IDivy = Div.GetInPort( 'y' )
- IDivGate = Div.GetInPort( 'Gate' )
- ODivz = Div.GetOutPort( 'z' )
- ODivGate = Div.GetOutPort( 'Gate' )
-
- Addition = GraphEmbeddedComponentsCrash.FNode( 'AddComponent' , 'AddComponent' , 'Addition' )
- Addition.SetName( 'Addition' )
- Addition.SetAuthor( '' )
- Addition.SetContainer( 'localhost/AdditionServer' )
- Addition.SetComment( 'Addition from AddComponent' )
- Addition.Coords( 0 , 0 )
- IAdditionGate = Addition.GetInPort( 'Gate' )
- OAdditionAdder = Addition.GetOutPort( 'Adder' )
- OAdditionGate = Addition.GetOutPort( 'Gate' )
-
- Addition_1 = GraphEmbeddedComponentsCrash.FNode( 'AddComponent' , 'AddComponent' , 'Addition' )
- Addition_1.SetName( 'Addition_1' )
- Addition_1.SetAuthor( '' )
- Addition_1.SetContainer( 'localhost/Addition_1Server' )
- Addition_1.SetComment( 'Addition from AddComponent' )
- Addition_1.Coords( 4 , 327 )
- IAddition_1Gate = Addition_1.GetInPort( 'Gate' )
- OAddition_1Adder = Addition_1.GetOutPort( 'Adder' )
- OAddition_1Gate = Addition_1.GetOutPort( 'Gate' )
-
- # Creation of Computing Nodes
- AddAndCompare_ServiceinParameter = []
- AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'Adder' ) )
- AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'x' ) )
- AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'y' ) )
- AddAndCompare_ServiceinParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'Adder' , 'anOtherAdder' ) )
- AddAndCompare_ServiceoutParameter = []
- AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'FuncValue' ) )
- AddAndCompare_ServiceoutParameter.append( SALOME_ModuleCatalog.ServicesParameter( 'double' , 'z' ) )
- AddAndCompare_ServiceinStreamParameter = []
- AddAndCompare_ServiceoutStreamParameter = []
- AddAndCompare_Service = SALOME_ModuleCatalog.Service( 'AddAndCompare' , AddAndCompare_ServiceinParameter , AddAndCompare_ServiceoutParameter , AddAndCompare_ServiceinStreamParameter , AddAndCompare_ServiceoutStreamParameter , 0 , 0 )
- AddAndCompare = GraphEmbeddedComponentsCrash.CNode( AddAndCompare_Service )
- AddAndCompare.SetName( 'AddAndCompare' )
- AddAndCompare.SetAuthor( '' )
- AddAndCompare.SetComment( 'Python function' )
- AddAndCompare.Coords( 233 , 0 )
- IAddAndCompareAdder = AddAndCompare.GetInPort( 'Adder' )
- IAddAndComparex = AddAndCompare.GetInPort( 'x' )
- IAddAndComparey = AddAndCompare.GetInPort( 'y' )
- IAddAndCompareanOtherAdder = AddAndCompare.GetInPort( 'anOtherAdder' )
- IAddAndCompareGate = AddAndCompare.GetInPort( 'Gate' )
- OAddAndCompareFuncValue = AddAndCompare.GetOutPort( 'FuncValue' )
- OAddAndComparez = AddAndCompare.GetOutPort( 'z' )
- OAddAndCompareGate = AddAndCompare.GetOutPort( 'Gate' )
-
- # Creation of Links
- LAddFuncValueMulx = GraphEmbeddedComponentsCrash.Link( OAddFuncValue , IMulx )
-
- LAddFuncValueAddAndComparex = GraphEmbeddedComponentsCrash.Link( OAddFuncValue , IAddAndComparex )
- LAddFuncValueAddAndComparex.AddCoord( 1 , 195 , 108 )
- LAddFuncValueAddAndComparex.AddCoord( 2 , 195 , 233 )
-
- LAddzSubx = GraphEmbeddedComponentsCrash.Link( OAddz , ISubx )
- LAddzSubx.AddCoord( 1 , 187 , 459 )
- LAddzSubx.AddCoord( 2 , 186 , 262 )
-
- LAddzAddAndComparey = GraphEmbeddedComponentsCrash.Link( OAddz , IAddAndComparey )
- LAddzAddAndComparey.AddCoord( 1 , 187 , 139 )
- LAddzAddAndComparey.AddCoord( 2 , 186 , 261 )
-
- LSubzDivx = GraphEmbeddedComponentsCrash.Link( OSubz , IDivx )
- LSubzDivx.AddCoord( 1 , 670 , 206 )
- LSubzDivx.AddCoord( 2 , 680 , 447 )
-
- LMulzDivy = GraphEmbeddedComponentsCrash.Link( OMulz , IDivy )
-
- LAdditionAdderAddAndCompareAdder = GraphEmbeddedComponentsCrash.Link( OAdditionAdder , IAddAndCompareAdder )
-
- LAddition_1AdderAddAndCompareanOtherAdder = GraphEmbeddedComponentsCrash.Link( OAddition_1Adder , IAddAndCompareanOtherAdder )
- LAddition_1AdderAddAndCompareanOtherAdder.AddCoord( 1 , 215 , 168 )
- LAddition_1AdderAddAndCompareanOtherAdder.AddCoord( 2 , 214 , 407 )
-
- LAddAndCompareGateMulGate = GraphEmbeddedComponentsCrash.Link( OAddAndCompareGate , IMulGate )
-
- LAddAndCompareGateSubGate = GraphEmbeddedComponentsCrash.Link( OAddAndCompareGate , ISubGate )
-
- # Input datas
- IAddx.Input( 1 )
- IAddy.Input( 2 )
- ISuby.Input( 3 )
- IMuly.Input( 4 )
-
- # Output Ports of the graph
- #ODivz = Div.GetOutPort( 'z' )
- #OAddAndCompareFuncValue = AddAndCompare.GetOutPort( 'FuncValue' )
- #OAddAndComparez = AddAndCompare.GetOutPort( 'z' )
- return GraphEmbeddedComponentsCrash
-
-
-GraphEmbeddedComponentsCrash = DefGraphEmbeddedComponentsCrash()
-
-GraphEmbeddedComponentsCrash.Run()
-GraphEmbeddedComponentsCrash.DoneW()
-GraphEmbeddedComponentsCrash.PrintPorts()
-