[Pybrainsim-activity] SF.net SVN: pybrainsim:[59] trunk/src/Connection.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-03 11:24:14
|
Revision: 59 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=59&view=rev Author: rgoj Date: 2009-08-03 11:24:07 +0000 (Mon, 03 Aug 2009) Log Message: ----------- * The init method of the Connection class now adds itself to the specified Head object. Modified Paths: -------------- trunk/src/Connection.py Modified: trunk/src/Connection.py =================================================================== --- trunk/src/Connection.py 2009-08-03 11:21:36 UTC (rev 58) +++ trunk/src/Connection.py 2009-08-03 11:24:07 UTC (rev 59) @@ -27,10 +27,11 @@ """ class Connection: - def __init__(self, name, sourceGenerator, targetGenerator): + def __init__(self, name, head, sourceGenerator, targetGenerator): self.name = name self.sourceGenerator = sourceGenerator self.targetGenerator = targetGenerator + head.addConnection(self) def printInfo(self): print(self.name + " A Connection object") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |