MASON-INTEREST-L Archives

March 2011

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-type:
multipart/mixed; boundary=Apple-Mail-18-740210562
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Subject:
From:
Sean Luke <[log in to unmask]>
Date:
Tue, 1 Mar 2011 18:34:33 -0500
In-Reply-To:
<24ef2564-ef84-43d1-bfa1-704996996efe@blur>
MIME-version:
1.0 (Apple Message framework v936)
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (952 bytes) , AntsForageWithUI.java (6 kB) , text/plain (6 kB)
On Mar 1, 2011, at 6:20 PM, Samuel W. Brett (SWB) wrote:

> Well the addSeries method seems to be deprecated. In addition, the  
> how to says to put certain code in the init method of the gui class.  
> Whenever I put the code in there it never seems to get called.

Hmmm, there are *no* deprecated methods in the MASON charting code.   
addSeries is correct, so I'm confused.

The init(...) method will be called once, when the GUI for your  
simulation is being fired up (more specifically, when the Console has  
been created).  It's *definitely* being called -- it's a very  
important method!  Are you perhaps returning from this method before  
you get to the chart code?  Or have you built an init(...) method  
somewhere else?  It's the method in your GUIState subclass.

To double-check, I cut-and-pasted from the HowTo code into sim/app/ 
antsforage/AntsForageWithUI.java to try it out, and it works nicely.   
Here's some code for you to double-check against.




Sean

ATOM RSS1 RSS2