1 / 14

DEVS M&S Tutorial with eclipse IDE

DEVS M&S Tutorial with eclipse IDE. Chungman Seo cseo@email.arizona.edu. Environment to develop DEVS M&S. Integration Development Environment Eclipse : www.eclipse.org/downloads NetBeans : www.netbeans.org Jbuilder : http://www.codegear.com/products/jbuilder Required library

scot
Download Presentation

DEVS M&S Tutorial with eclipse IDE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DEVS M&S Tutorial with eclipse IDE Chungman Seo cseo@email.arizona.edu

  2. Environment to develop DEVS M&S • Integration Development Environment • Eclipse : www.eclipse.org/downloads • NetBeans : www.netbeans.org • Jbuilder : http://www.codegear.com/products/jbuilder • Required library • Java SDK (1.6) : http://java.sun.com/javase/downloads/index.jsp • coreDEVSJAVA3.1 : class home page • Source files • gpt.zip : class home page

  3. Install an eclipse IDE • Download eclipse IDE for java • Unzip the file • Click an execution file : eclipse.exe

  4. Create workspace • Set workspace

  5. Welcom page • Get some information from a welcome page • Overview • Tutorials • Samples • What’s new

  6. Make a new project • Click file menu • Go to new • Click java project • Enter a project name • DEVSTutorial • Click the finish button

  7. Create Helloworld java • Click the right of mouse on src folder • Go to new-class • Type the class name • Helloworld • Click finish button • Write contents on the Helloworld.java • Run the Helloworld.java

  8. Create lib folder in the project • Click the project name • Click right button of the mouse • Go to new • Go to folder and click it • Type a name of folder • Lib • Click the finish to create a lib folder under the project

  9. Import files into the lib folder • Click the right of the mouse • Select import • Click General and click File System • Search a library file in the hard drivers • Click finish button to import the library into lib folder

  10. Link library files in the project • Click mouse right button on the project • Go to properties menu and click it • Go to java builder path and click a Library tab • Click Add Jars • Select jar files and click OK on Jar selection • Click OK on Properties for DEVSTutorial

  11. Add DEVS models into src folder • Click src folder and click the right of mouse • Select import as we did on the lib folder

  12. Simulate DEVS model using coordinator • Create a coordinator instance in the top coupled model • Add coupled model into the coordinator • Initialize the coordinator • Call a simulation function in the coordinator

  13. Simulate DEVS model using SimView • Click the right of mouse • Select run as – run configurations • Click search button on run configurations window • Select simView.SimView • Click run on run configurations

  14. Configure the SimView • Click configure button • Type a path to classes • bin • Type a path to source • src • Type package name • gpt • Click OK • Select a package to gpt • Select a model • Efp

More Related