DEVS M - PowerPoint PPT Presentation

About This Presentation
Title:

DEVS M

Description:

Environment to develop DEVS M&S Integration Development Environment Eclipse : www.eclipse.org/downloads NetBeans : www.netbeans.org Jbuilder : ... – PowerPoint PPT presentation

Number of Views:102
Avg rating:3.0/5.0
Slides: 15
Provided by: chun101
Learn more at: http://acims.asu.edu
Category:
Tags: devs | netbeans

less

Transcript and Presenter's Notes

Title: DEVS M


1
DEVS MS Tutorial with eclipse IDE
  • Chungman Seo
  • cseo_at_email.arizona.edu

2
Environment to develop DEVS MS
  • Integration Development Environment
  • Eclipse www.eclipse.org/downloads
  • NetBeans www.netbeans.org
  • Jbuilder http//www.codegear.com/products/jbuild
    er
  • Required library
  • Java SDK (1.6) http//java.sun.com/javase/downlo
    ads/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
  • Whats 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
Write a Comment
User Comments (0)
About PowerShow.com