Print

Print


Dear Miriam,

The easiest way to use MASON in one of these IDEs is to simply
download the JAR and add it to your project classpath. In alternative
you can clone the repository into a different project and then
reference it from yours (as Siggy suggests). This later method allows
you to browse the MASON code directly with the IDE.

You should not work on the MASON project and should not commit
anything there. Keep your own model(s) encapsulated in thier own
project(s); this is valid for any IDE you might use.

Once your simulation is complete the easiest way to deploy is to
compile it into a JAR file. This is pretty easy in an IDE.

Regarding the IDE itself, if you do not have much experience with
Eclipse, it should be easier to continue using NetBeans, it is
generally simpler. Otherwise, Eclipse is a far more powerful
environment, with useful tools for many different domains (e.g. I
create all my articles, presentations and posters in Eclipse).

Enjoy MASON. Regards,

Luís

On 25 June 2015 at 10:06, Tschanen Miriam <[log in to unmask]> wrote:
> Hi Siggy,
>
> Thank you very much for the fast reply! This is a much cleaner approach and
> everything appears to be working perfectly.
>
> Just to be sure though, when pushing to Git I will need to include both
> projects, as well as the original MASON folder that I linked as "existing
> source" in the master project. Is that correct? Also, how would I go about
> building a deployable file once my simulation is complete?
>
> Cheers,
> Miriam
> ________________________________
> Von: MASON Multiagent Simulation Toolkit
> [[log in to unmask]]" im Auftrag von "Eric 'Siggy' Scott
> [[log in to unmask]]
> Gesendet: Mittwoch, 24. Juni 2015 21:50
> An: [log in to unmask]
> Betreff: Re: Using MASON in an IDE
>
> Miriam,
>
> I use NetBeans, and I keep things clean by keeping MASON in one project, and
> writing all of my custom code in its own, separate project.
>
> In the project where you'll write your own model, right-click on
> "Libraries," select "Add Project," and choose the project you created for
> MASON.  This hooks your project up with a MASON jar but won't clutter your
> source directory.
>
> Siggy
>
> On Wed, Jun 24, 2015 at 3:21 PM, Tschanen Miriam <[log in to unmask]>
> wrote:
>>
>> Dear all,
>>
>> I'm very new to agent-based modeling and am planning to use MASON for a
>> bachelor thesis project. Unfortunately I am having some trouble integrating
>> the framework into an IDE.
>>
>> I tried to follow the Eclipse tutorial linked on the MASON homepage (here:
>> https://cs.gmu.edu/~eclab/projects/mason/extensions/eclipse/ ), but cannot
>> figure out step 5. There is no menu option called "Create project from
>> existing source" in Eclipse Luna on Windows 7.
>>
>> I then switched to NetBeans and tried the other tutorial, also linked on
>> the MASON homepage (here:
>> https://cs.gmu.edu/~eclab/projects/mason/extensions/netbeans/ ), which kind
>> of works - I can compile and run MASON from NetBeans. But this approach also
>> dumps a large number of files (including all the tutorials, ReadMes, etc.)
>> directly into my project structure, which is now rather cluttered. Is there
>> no cleaner way to link MASON as a library? I am also worried about
>> portability of the project, my supervisors want to keep track of progress
>> through Github and in the end we would like to deploy the model as a single
>> executable file.
>>
>> I am somewhat familiar with both Eclipse and NetBeans, but I have no
>> experience at all with building and linking complex projects, using
>> makefiles and other such things. I would very much appreciate some pointers
>> on this matter. Either Eclipse or NetBeans are fine by me, as long as I can
>> find a clean and reliable way to use them with MASON.
>>
>> Sincerely,
>> Miriam Tschanen
>
>
>
>
> --
>
> Ph.D student in Computer Science
> George Mason University
> http://mason.gmu.edu/~escott8/