Salome HOME
Update copyrights 2014.
[samples/randomizer.git] / src / Randomizer / RANDOMIZER.py
index 22b2b899069f199a93741ee7e47ea74b3fc7ea9a..b62a3fc25fd281e52e9e3733679638cd21b6eff2 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2005-2012  OPEN CASCADE
+# Copyright (C) 2005-2014  OPEN CASCADE
 #
 # 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.
+# 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
@@ -37,6 +37,13 @@ class RANDOMIZER( RANDOMIZER_ORB__POA.RANDOMIZER,
         """
         SALOME_ComponentPy.SALOME_ComponentPy_i.__init__( self, orb, poa, contID, containerName,instanceName, interfaceName, 0 )
 
+    def getVersion( self ):
+        """
+        Get version information.
+        """
+        import salome_version
+        return salome_version.getVersion("RANDOMIZER", True)
+
     def InitPoint( self ):
         """
         Generate random 2d-point:  x, y = [0,1)