[Pybrainsim-activity] SF.net SVN: pybrainsim:[28] trunk/src
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-07-29 14:57:07
|
Revision: 28 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=28&view=rev Author: rgoj Date: 2009-07-29 14:56:59 +0000 (Wed, 29 Jul 2009) Log Message: ----------- * Renaming DummyConnection to ConnectionSimple Added Paths: ----------- trunk/src/ConnectionSimple.py Removed Paths: ------------- trunk/src/DummyConnection.py Copied: trunk/src/ConnectionSimple.py (from rev 26, trunk/src/DummyConnection.py) =================================================================== --- trunk/src/ConnectionSimple.py (rev 0) +++ trunk/src/ConnectionSimple.py 2009-07-29 14:56:59 UTC (rev 28) @@ -0,0 +1,36 @@ +# 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 DummyConnection class is used for describing communication between two generators - i.e. inhibitory or excitatory connections between simulated neural populations. + +This class is only the simplest implementation of these ideas, intended to serve as an example and a starting point for creating complex derived classes, ready for real simulation tasks. +""" + +class DummyConnection: + def __init__(self, sourceGenerator, targetGenerator): + self.sourceGenerator = sourceGenerator + self.targetGenerator = targetGenerator + + def runConnection(self): + """Sends the output of the source generator to the target generator, without any changes.""" + + print("Running connection...") + self.targetGenerator.receiveInput(self.sourceGenerator.sendOutput()) Deleted: trunk/src/DummyConnection.py =================================================================== --- trunk/src/DummyConnection.py 2009-07-29 14:43:30 UTC (rev 27) +++ trunk/src/DummyConnection.py 2009-07-29 14:56:59 UTC (rev 28) @@ -1,36 +0,0 @@ -# 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 DummyConnection class is used for describing communication between two generators - i.e. inhibitory or excitatory connections between simulated neural populations. - -This class is only the simplest implementation of these ideas, intended to serve as an example and a starting point for creating complex derived classes, ready for real simulation tasks. -""" - -class DummyConnection: - def __init__(self, sourceGenerator, targetGenerator): - self.sourceGenerator = sourceGenerator - self.targetGenerator = targetGenerator - - def runConnection(self): - """Sends the output of the source generator to the target generator, without any changes.""" - - print("Running connection...") - self.targetGenerator.receiveInput(self.sourceGenerator.sendOutput()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |