Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/superv.git] / examples / GraphFactorial.py
index 3551fcebc635dacd884834bdeb1c34ba045e3118..9e59afbb39189bc29654362536361cd4538ea613 100644 (file)
@@ -1,3 +1,26 @@
+#  Copyright (C) 2003  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. 
+# 
+#  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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+#
+#
+#
+#  File   : GraphFactorial.py
+#  Module : SuperVisionTest
 
 from SuperV import *
 
@@ -11,23 +34,25 @@ GraphFactorial.IsValid()
 GraphFactorial.Run( 3 )
 GraphFactorial.DoneW()
 GraphFactorial.State()
-print eval.GetComponentName()
-print eval.GetContainer()
+eval.GetComponentName()
+eval.GetContainer()
 GraphFactorial.PrintPorts()
+eval.CpuUsed()
 
 eval.SetContainer('Server4Py')
 GraphFactorial.Run( 4 )
 GraphFactorial.DoneW()
 GraphFactorial.State()
-print eval.GetComponentName()
-print eval.GetContainer()
+eval.GetComponentName()
+eval.GetContainer()
 GraphFactorial.PrintPorts()
+eval.CpuUsed()
 
 eval.SetContainer('Server5Py')
 GraphFactorial.Run( 5 )
 GraphFactorial.DoneW()
 GraphFactorial.State()
-print eval.GetComponentName()
-print eval.GetContainer()
+eval.GetComponentName()
+eval.GetContainer()
 GraphFactorial.PrintPorts()
-
+eval.CpuUsed()