|
From: SourceForge.net <no...@so...> - 2005-07-05 13:51:09
|
Bugs item #1210968, was opened at 2005-05-29 22:41 Message generated for change (Comment added) made by srcnick You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1210968&group_id=1703 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: MatrixType error in NetworkRecorder created with Repastpy Initial Comment: I created a simple network simulation with repastpy (ver 1.1.1), but something is wrong with NetworkRecorder. When I run the simulation i catch this exception: java.lang.IllegalArgumentException: Illegal matrix type, must be one of NetworkConstants.BINARY, NetworkConstants.LARGE, or NetworkConstants.SMALL I checked the simulation xml file, and the value is set the right way: <RePastEvolver:EvolverBean type="Component" class="class uchicago.src.simbuilder.beans.network.NetworkRecorderProducer" name="rec" fileName="somedata" format="3" matrixType="1" > But in the java source code I noticed this line: rec.record(agentList, String.valueOf(this.getTickCount()), 3); Whichever matrix type is specified in the xml, the code still contains "3". In the NetworkRecorderProducer.java file I spotted (line 209) b.append(((Integer) format.getSelected()).intValue()); but I think it must be "netType", not "format" because I found in the API specs record(java.util.List nodeList, java.lang.String comment, int matrixType) I tried to tweak the problem, but I'm still unable to try this solution. I hope this isn't a newbie common error. pro...@in... ---------------------------------------------------------------------- >Comment By: Nick Collier (srcnick) Date: 2005-07-05 13:51 Message: Logged In: YES user_id=7167 Fixed in CVS. User diagnosis is correct. Stupid mistake on my part... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1210968&group_id=1703 |