[Pybrainsim-activity] SF.net SVN: pybrainsim:[35] trunk/src/ConnectionDummy.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-02 16:25:34
|
Revision: 35 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=35&view=rev Author: rgoj Date: 2009-08-02 16:25:25 +0000 (Sun, 02 Aug 2009) Log Message: ----------- * ConnectionDummy prints out messages to standard output when interesting methods are run Added Paths: ----------- trunk/src/ConnectionDummy.py Added: trunk/src/ConnectionDummy.py =================================================================== --- trunk/src/ConnectionDummy.py (rev 0) +++ trunk/src/ConnectionDummy.py 2009-08-02 16:25:25 UTC (rev 35) @@ -0,0 +1,32 @@ +# PyBrainSim Copyright 2009 Roman Goj +# +# This file is part of PyBrainSim. +# +# PyBrainSim is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# PyBrainSim 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# PyBrainSim. If not, see <http://www.gnu.org/licenses/>. + +__metaclass__ = type # New style classes. Is this necessary? + +""" +The ConnectionDummy class is a reimplementation of the parent class Connection, +printing out a message whenever the runConnection method is invoked. +""" + +from Connection import Connection + +class ConnectionDummy(Connection): + def printInfo(self): + print(self.name + ": A ConnectionDummy object") + + def runConnection(self): + Connection.runConnection(self, 0) + print("[runConnection] " + self.name + ": Sending output from source to target generator") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |