Courses/CS 461/Winter 2006/Martin Olsen/Week 3

From CSWiki

Jump to: navigation, search

[edit] Week 3

For week 3 I have fine tuned the deep sea turtles application for NetLogo. It now contains sharks and a possibility to set the sharks at certain depths. Apart from this I have worked with Mason and gone through the mason tutorials 1 through five.

[edit] Deep Sea Turtles and Sharks cont.

Features:

  • Sharks (can set depth you want sharks to swim in). If the shark passes by a turtle it will eat it.
  • The turtles are now divided in to male and female turtles. They reproduce if passing by.
  • Amplifying the elevation variable in the patches after applying the diffusions to include the entire range.

Picture:
Image:Deepsea6.jpg
NetLogo file #1 (amplifying the elevation)
NetLogo file #2 (not amplifying elevation)

[edit] Developing Mason applications in Netbeans

I decided I wanted to build selfcontained .jar files with all the necessary libraries included. I put together a mini-how-to to do this. (no need for making custom build scripts)

  • Download the mason zip file (mason.zip).
  • Unzip.
  • Start a new project in Netbeans.
  • Copy the ec and sim directory into your netbeans src directory.
  • Download the Java Media Framework
  • Install the Java Media Framework
  • Locate jmf.jar in the installation dir.
  • Copy jmf.jar into your project src directory.
  • Now projects can be compiled containing all nececary libraries for mason and jmf.
Personal tools