Packages Installation for DEVS Java Version 3.0
Installation of CoreDevs.jar
This jar files contains the class files of the core of DEVS java. It
contains the basic architecture of DEVS implemented in Java. The user
doesn't require source code for these files as he will never be making
changes to these files. It contains the following packages:
1.
|
GenCol
|
2.
|
genDevs
|
|
a
modeling
|
|
b simulation
|
|
c
plots
|
3.
|
simView
|
4.
|
statistics
|
5.
|
util
|
Creating the DEVSJAVA environment in
JBuilder (7.0, 8.0, or 9.0)
Follow the following steps:
1. make a directory <devsjava> at
a suitable place say in E drive
2. download the software (containing
coreDEVS.jar) into this directory
3. install the software into this directory (you may or may not create
icons during the installation process)
4. open Jbuilder
5. click File and New Project
6. give the name of the project as <devsjava> ->this is same as the name above
7. in the next field Directory: Make
sure it reads <E:/devsjava>
8. click Next
9. change the Output path to: <E:/devsjava/classes>
10. change the Backup path to: <E:/devsjava/bak>
11. working directory is already correct
12. in the tabbed pane below (click the first row) edit the Default
path to <E:/devsjava/src>
13. leave the second row unchanged (we won’t be using it)
14. click on the third tab <Required Libraries> in the same window
15. click add and then in the dialog box …click new
16. add the name <DEVSLIB> and Location <User Home>
17. in the library paths..click add and choose
<E:devsjava/coreDEVS.jar>
18. click ok and come back to previous wizard <Project wizard>
19. click Next
20. uncheck the check box
which says <Enable source package discovery and compilation>
->Jbuilder 9 might have it checked by default
21. click Finish, then you see devsjava.jpx in the left frame
22. right click on this and select <Add Files/Packages/Classes>
23. click on <Packages> tab in the dialog box
24. choose <SimpArc> package and click OK
25. right click on <devsjava.jpx> and click <Rebuild> and
you are done
To configure the SimView window
and run options so that you don’t have to compile & Rebuild the
whole projectevery time
1. right click on the
<devsjava.jpx> and choose <Properties> and then choose tab
<Run> in the dialog box
2. click New
3. set Build Target to <None>
4. in the main class field, click the rightmost button that says <…>
5. choose simView…..click the <+> sign and now choose the
<SimView> again. …..
6. the Main class field should read <simView.SimView>
7. click Ok and come back to previous dialog box
8. check the Default check box true
9. click Ok
10. and you’re Done
11. every time you’ll “Run” the project you will only execute the file
that opens the GUI window. You must make any new changes done to any
java file before running. Running and making the project are mutually
exclusive things by this method and it saves a lot of time during the
coding. As you are working in one file and making changes in it, you
don’t want to compile each and every file in the whole project to
actually run that file. So, we can explicitly make this changed file
and run the GUI window separately
Installation of Illustrative Model
Packages
You can install any of the packages listed below independently.
1.
|
SimpArc |
2.
|
oneDCellSpace |
3.
|
Continuity |
4.
|
variableStructure |
5.
|
pulseModels |
6.
|
Random |
7.
|
twoDCellSpace |
8.
|
Quantization
|
9.
|
pulseExpFrames
|
The first package that any DEVS student would like to install is the
SimpArc package. It contains the most basic files that will make you
familiar with the DEVS concepts. Some of the packages like pulseModels
require other packages like pulseExpFrames. In that case you need to
install the second package also.
Steps Involved:
- Make sure that the DEVS Environments is set up in first place.
- Unzip the <IllustrationCode.zip> in the <src>
directory created in Step 1.
- In the left pane, right click on the <devsjava.jpx>
and choose 'Add files/packages/classes'
- In the dialog box, click on 'Packages' tab
- You should be able to see all the packages listetd above as well
as core java packages
- select the package that you need to include in your project. Use
Ctrl+ to select more than one package
- Click ok
- The package(s) appear in the left pane and ready to be worked
upon.
- Right click on the project in the pane and choose 'Rebuild' to
compile and create class files for these java files
- The project and selected package is ready to use.
- Use the SimView run feature as described in creation of DEVSJAVA
environment, to run the files in the project,
Installation of Example Packages
This zip contains independent projects that are complete in every
respect. These projects use one or more packages mentioned above. They
provide a good example of how DEVS is used in different scenarios
1.
|
CallCenter
|
2.
|
ForestFire
|
3.
|
LibraryReq
|
Steps Involved:
- Make sure that the DEVS Environments is set up in first place.
- Unzip the <examples.zip> in the <src>
directory created in Step 1.
- In the left pane, right click on the <devsjava.jpx>
and choose 'Add files/packages/classes'
- In the dialog box, click on 'Packages' tab
- You should be able to see all the packages listetd above as well
as core java packages
- select the package that you need to include in your project. Use
Ctrl+ to select more than one package
- Click ok
- The package(s) appear in the left pane and ready to be worked
upon.
- Right click on the project in the pane and choose 'Rebuild' to
compile and create class files for these java files
- If the compiler gives errors, check for the missing packages in
the correspoding file. The missing package is available in
IllustrationCode.zip. Install it and
rebuild the project again
- The project and selected package is ready to use.
- Use the SimView run feature as described in creation of DEVSJAVA
environment, to run the files in the project,
Installation of Recent Projects
This zip contains the projects that were created by students in the ECE
575 course during Fall 2003. It also contains the sample code for exams
conducted during this course. Each project folder contains an
evaluation document that was done while grading these projects and the
project report in the zipped format.
1.
|
Student
Projects
|
|
a
|
Airport
|
|
b
|
BattleSim
|
|
c
|
BusinessOrg
|
|
d
|
CritterSim
|
|
e
|
DigAudio
|
|
f
|
Earthquake
|
|
g
|
Grating
|
|
h
|
LinkEleven
|
|
i
|
NetShortPath
|
|
j
|
PursuerEvader
|
|
k
|
RadarProject
|
|
l
|
RoadTraffic
|
|
m
|
RobotFormation
|
|
n
|
SimpNet
|
|
o
|
TravelAgency
|
Steps Involved:
- Make sure that the DEVS Environments is set up in first place.
- Unzip the <examples.zip> in the <src>
directory created in Step 1.
- In the left pane, right click on the <devsjava.jpx>
and choose 'Add files/packages/classes'
- In the dialog box, click on 'Packages' tab
- You should be able to see all the packages listetd above as well
as core java packages
- Click on '+' sign before <StudentPackages>
- select the package that you need to include in your project. Use
Ctrl+ to select more than one package
- Click ok
- The package(s) appear in the left pane and ready to be worked
upon.
- Right click on the project in the pane and choose 'Rebuild' to
compile and create class files for these java files
- If
the compiler gives errors, check for the missing packages in the
correspoding file. The missing package is available in
IllustrationCode.zip. Install
it and rebuild the project again
- The project and selected package is ready to use.
- Use the SimView run feature as described in creation of DEVSJAVA
environment, to run the files in the project,
Installation of Exam Packages
This zip contains sample code for the exam problems. The exams were
given during the ECE 575 Fall 2003 course.
1.
|
MidExam03
|
2.
|
FinalExam03
|
Steps Involved:
- Make sure that the DEVS Environments is set up in first place.
- Unzip the <examples.zip> in the <src>
directory created in Step 1.
- In the left pane, right click on the <devsjava.jpx>
and choose 'Add files/packages/classes'
- In the dialog box, click on 'Packages' tab
- You should be able to see all the packages listetd above as well
as core java packages
- select the package that you need to include in your project. Use
Ctrl+ to select more than one package
- Click ok
- The package(s) appear in the left pane and ready to be worked
upon.
- Right click on the project in the pane and choose 'Rebuild' to
compile and create class files for these java files
- If
the compiler gives errors, check for the missing packages in the
correspoding file. The missing package is available in
IllustrationCode.zip. Install
it and rebuild the project again
- The project and selected package is ready to use.
- Use the SimView run feature as described in creation of DEVSJAVA
environment, to run the files in the project,