[Pybrainsim-activity] SF.net SVN: pybrainsim:[32] trunk/src/ConnectionSimple.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-02 15:31:26
|
Revision: 32 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=32&view=rev Author: rgoj Date: 2009-08-02 15:31:17 +0000 (Sun, 02 Aug 2009) Log Message: ----------- * Removing ConnectionSimple as first step of larger refactoring Removed Paths: ------------- trunk/src/ConnectionSimple.py Deleted: trunk/src/ConnectionSimple.py =================================================================== --- trunk/src/ConnectionSimple.py 2009-07-31 09:17:10 UTC (rev 31) +++ trunk/src/ConnectionSimple.py 2009-08-02 15:31:17 UTC (rev 32) @@ -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 ConnectionSimple 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 ConnectionSimple: - 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. |