This site requires JavaScript, please enable it in your browser!
Greenfoot back
zent76
zent76 wrote ...

2011/8/20

Modeling and Simulation with Greenfoot

zent76 zent76

2011/8/20

#
Hello Members, I have a good knowledge of Java and would like to model/simulate discrete and continuous systems such as traffic modeling, financial modeling and biological processes. I have three questions in this regard: a) Can I use Greenfoot to model/simulate the above systems? b) Are there things in Greenfoot I cannot do as it relates to Modeling and Simulation? c) How does NetLogo compare with Greenfoot when it comes to Modeling and Simulation? Pros/Cons? Thank you! Zent
davmac davmac

2011/8/22

#
For (a): sure; you can do anything in Greenfoot that you can do with Java - there's no limitations placed on you by using the Greenfoot framework. For (b) - there may be things that Greenfoot itself doesn't directly support, but in general if the functionality in Greenfoot itself isn't sufficient you can extend it or use your own implementation. (For instance, the collision detection functionality in Greenfoot is very efficient, but assumes objects are rectangular). As for (c), I don't have any experience with NetLogo so can't help you there, sorry. Davin.
zent76 zent76

2011/8/22

#
Hello davmac, Thanks a lot for your reply! That was very helpful. If you don't mind, I have two quick follow-ups: a) I do not like programming graphics in Java. Does Greenfoot have adequate graphics capabilities to handle a more graphics-intensive simulation? b) Is it possible to program 3D graphics in Greenfoot? Thank you! Zent
davmac davmac

2011/8/22

#
Zent, Greenfoot does greatly simplify graphics; each actor has an image (which normally comes from an image file) which can be moved and rotated easily. More complicated graphics can still be done, using the standard Java APIs, if necessary. And although Greenfoot provides no support for 3D graphics, it is still possible to program 3D graphics in Greenfoot. People have done so previously. See this scenario for instance. Maybe I wasn't clear before: anything you can do in Java, you can do with Greenfoot. In some cases it will be easier, but Greenfoot is intended for novice programmers and if you need advanced functionality, you will need to use the regular Java classes and methods. Davin
zent76 zent76

2011/8/22

#
Hello davmac, That was very clear! Thank you so much! Regards, Zent
You need to login to post a reply.