Let me hijack this thread then. Where in the code does MASON check if the JFreeChart library is available?
Yes, after I added all the relevant jars to my library in NetBeans, which also solved the problem of the missing "Chart" option. Thank you!
If you add this line somewhere in your model:
JFreeChartResources test = new JFreeChartResources();
Does it compile?
Yes, I installed all the libraries from the MASON website. I don't know what you mean by addidng them to the build path, but I quickly ran Ant Foraging (one of the premade examples
shipped with MASON) and the plotting works fine there. So the problem seems to be with my model, not the library.
Did you add the (chart) libraries* to the build path?
*: There are a bunch of libraries other than mason.jar available on the Mason website.
On Tuesday, August 4, 2015, Tschanen Miriam <[log in to unmask]
I have another quick (and probably very stupid) question. I'm trying to create time series charts of some of my model properties, and have been following the school yard example in the MASON manual (here:
https://cs.gmu.edu/~eclab/projects/mason/manual.pdf) to figure out how to do that. Unless I missed something important, the trick seems to be to just add the appropriate getter
and setter methods to the SimState.
However, I can't plot the values when I run the simulation. I do get a new "Model" tab and all the data is displayed as expected, but when I click the little magnifying glass on any value the only option I am given is "Stream". None of the other entries that
are described in the tutorial are visible.
Is there something else I need to do to enable the plotting? I double-checked that I have jfreechart installed, but I don't know if it's linked up with MASON correctly. I don't get any error messages when I run the code, though.
Any help would be appreciated.