Salome HOME
Copyrights update 2015.
[samples/datafiles.git] / Superv / Python / GraphSwitch1.py
index 7a150e934035ae643e1e4fc675d2552543982a67..6b5676bc94a7cf1142b6f19bbd47a3605b4dee14 100755 (executable)
@@ -1,6 +1,27 @@
+# Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
 
 # Generated python file of Graph GraphSwitch1
-
+#
 from SuperV import *
 
 # Graph creation of GraphSwitch1
@@ -24,7 +45,7 @@ def DefGraphSwitch1() :
     IsOdd.SetName( 'IsOdd' )
     IsOdd.SetAuthor( '' )
     IsOdd.SetComment( 'Python function' )
-    IsOdd.Coords( 389 , 65 )
+    IsOdd.Coords( 408 , 34 )
     IIsOdda = IsOdd.InPort( 'a' , 'long' )
     IIsOddGate = IsOdd.GetInPort( 'Gate' )
     OIsOdda = IsOdd.OutPort( 'a' , 'long' )
@@ -49,7 +70,7 @@ def DefGraphSwitch1() :
     EndOfInitLoop.SetName( 'EndOfInitLoop' )
     EndOfInitLoop.SetAuthor( '' )
     EndOfInitLoop.SetComment( 'Compute Node' )
-    EndOfInitLoop.Coords( 768 , 126 )
+    EndOfInitLoop.Coords( 862 , 156 )
     PyEndOfInitLoop = []
     EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop )
     IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' )
@@ -61,6 +82,7 @@ def DefGraphSwitch1() :
     OInitLoopIndex = InitLoop.GetOutPort( 'Index' )
     OInitLoopMin = InitLoop.GetOutPort( 'Min' )
     OInitLoopMax = InitLoop.GetOutPort( 'Max' )
+    OInitLoopGate = InitLoop.GetOutPort( 'Gate' )
     IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' )
     IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' )
     IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' )
@@ -87,7 +109,7 @@ def DefGraphSwitch1() :
     EndOfSwitch.SetName( 'EndOfSwitch' )
     EndOfSwitch.SetAuthor( '' )
     EndOfSwitch.SetComment( 'Compute Node' )
-    EndOfSwitch.Coords( 587 , 126 )
+    EndOfSwitch.Coords( 640 , 155 )
     PyEndOfSwitch = []
     EndOfSwitch.SetPyFunction( '' , PyEndOfSwitch )
     IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
@@ -107,8 +129,6 @@ def DefGraphSwitch1() :
     
     # Creation of Links
     LIsOddaEndOfSwitcha = GraphSwitch1.Link( OIsOdda , IEndOfSwitcha )
-    LIsOddaEndOfSwitcha.AddCoord( 1 , 571 , 158 )
-    LIsOddaEndOfSwitcha.AddCoord( 2 , 571 , 136 )
     
     LInitLoopIndexSwitcha = GraphSwitch1.Link( OInitLoopIndex , ISwitcha )
     
@@ -118,15 +138,11 @@ def DefGraphSwitch1() :
     
     LSwitchOddIsOddGate = GraphSwitch1.Link( OSwitchOdd , IIsOddGate )
     
-    LSwitchEvenEndOfSwitchDefault = GraphSwitch1.Link( OSwitchEven , IEndOfSwitchDefault )
-    
     LSwitchaIsOdda = GraphSwitch1.Link( OSwitcha , IIsOdda )
-    LSwitchaIsOdda.AddCoord( 1 , 375 , 136 )
+    LSwitchaIsOdda.AddCoord( 1 , 375 , 105 )
     LSwitchaIsOdda.AddCoord( 2 , 375 , 201 )
     
-    LSwitchaEndOfSwitcha = GraphSwitch1.Link( OSwitcha , IEndOfSwitcha )
-    LSwitchaEndOfSwitcha.AddCoord( 1 , 571 , 161 )
-    LSwitchaEndOfSwitcha.AddCoord( 2 , 570 , 221 )
+    LSwitchDefaultEndOfSwitchDefault = GraphSwitch1.Link( OSwitchDefault , IEndOfSwitchDefault )
     
     LEndOfSwitchaEndOfInitLoopIndex = GraphSwitch1.Link( OEndOfSwitcha , IEndOfInitLoopIndex )
     
@@ -139,6 +155,7 @@ def DefGraphSwitch1() :
     #OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
     #OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
     #OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+    #OSwitchEven = Switch.GetOutPort( 'Even' )
     return GraphSwitch1