首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写 CSCI 2600、代做 java 程序设计
项目预算:
开发周期:
发布时间:
要求地区:
CSCI 2600 — Principles of Software
Optional Extra Credit Homework 8:
RPI Campus Paths GUI
Due: Friday, Aug. 16, 2024, 11:59:59 pm
Submission Instructions
This assignment uses the same repository as Homework assignments 4, 5, 6, and 7, so when you are ready to start working on Homework 8, pull Homework 8 files from the repository by right-clicking on your Homework 4, 5, 6 and 7 project in Eclipse and selecting Team → Pull... Make sure that When pulling is set to Merge, then click Finish.
Be sure to commit and push the files to Submitty. Follow the directions in the version control handout for adding and committing files.
Be sure to add any additional files to your repo using Team/Add to Index.
Important: You must press the Grade My Repository button, or your answers will not
be graded.
IMPORTANT NOTES:
You should have package hw8 with the usual directory structure. Write your code under src/main/java/hw8 and your tests under src/test/java/hw8 (shows as hw8 under src/test/java in Package Explorer).
Introduction
In Homework 7, you wrote a program that found shortest routes between buildings on the RPI Campus. Now we are asking for a graphical user interface (GUI) that visually draws routes.
You will build your GUI using Java’s JavaFX library. In completing this assignment, you will get practice using JavaFX, event-driven programming, and the MVC (Observer) design pattern.
Important note: you are not allowed to use Swing, AWT, or any library or framework other than JavaFX and the standard Java library.
You are expected to fix any bugs from Homework 7 that affect the correctness or performance of your application in Homework 8. Furthermore, your Homework 8 should use the model you created in Homework 7. This may require that you modify your Homework 7 code, that is OK, but be sure that Homework 7 continues to pass all tests!
GUI Requirements
You will write a GUI and a main class to launch it named RPICampusPathsMain.java. This assignment is deliberately open-ended: the exact appearance and functionality of your GUI are up to you. The only requirements are documented below.
For the most part, we are not grading on aesthetics: it doesn’t matter whether your GUI looks pretty as long as it implements the required features. Nevertheless, a design which is genuinely confusing or hard to use (at our discretion) may not receive full credit. For example, we will deduct points if we can’t easily figure out how to select the two buildings, if it’s hard to see the selected path, or if we can only see the whole GUI on a 27-inch screen. In addition, your program should be generally responsive: for instance, the GUI should not take an unusually long time to find and display paths.
Your GUI is a new View and Controller for your Campus Paths application. Ideally, you should not have to make any changes to your Homework 7 model classes — they already implement all the model functionality that you need. If you have to make any small changes (for instance, if your design in Homework 7 was poor and some model methods were too closely tied to your text view), then you may do so. As always, all tests from previous homework assignments must continue to pass, so you may also need to change your Homework 7 View and Controller in that case. In file answers/hw8 model-changes.pdf, list any changes you made to the model. For each, write a 1-2 sentence explanation of why the change was necessary and what you could have done differently on Homework 7 to create a more general and reusable Model. If you made no changes, write “None” for this section.
Window size
At startup, your GUI must fit and be usable on a screen with resolution 1024 x 768 and above. Most computers provide a way to change the screen resolution, which you can use for testing.
Required features
Your GUI must provide the following features:
At startup, load the map data from data/RPI map data Edges.csv and
data/RPI map data Nodes.csv which you should already have in your repository from Home- work 7. This should be in your model, not your view. There is no need to duplicate files; load them directly from the data/ directory.
Display the map of RPI campus. You may remove the part at the bottom with the building names if you need.
Important note: download the map from the course Web site and save it into your data/ directory: data/RPI campus map 2010 extra nodes edges.png. DO NOT commit the map as the large file may break the limit on repo size. When testing, we will copy the map into your data/ directory under the name RPI campus map 2010 extra nodes edges.png.
Allow the user to select two buildings for finding a route. You need to allow the user to
select endpoints of a path by clicking with the mouse on the map. In addition, you may also implement some other approach, like selection using menus or dropdown lists.
Mark or highlight the selected buildings and/or path endpoints on the map.
Draw the shortest route between the selected buildings on the map. The map should auto- matically be zoomed in or out when a route is drawn, so that the route is almost as large as possible while still fitting in the window.
As the window is resized, make the map shrink or grow to fit the window.
Maintain the proportions of the map so that it zooms in on a route without becoming dis-
torted.
Place the map in a ScrollPane so it can be displayed full-size. When displaying a route or buildings, jump to that spot on the map to resize if needed. (Hint: you probably need to override getPrefViewportHeight() and getPrefViewportWidth() in your “canvas” class for scrolling to work.)
Allow the user to drag the map with the mouse to change the portion that is shown.
Add zoom buttons, possibly with a way to recenter the image for zooming if a hand is not
available to drag it (e.g., mouse double click).
Allow the user to reset the GUI by clicking a reset button. This button should clear all markings on the map and all other controls (such as building selectors), setting the GUI back to its initial state.
Operate robustly. No matter what the user does, your program should never allow an excep- tion message to bubble up to the console window, and your GUI should never crash, freeze, display rendering artifacts, or reach a buggy/invalid state.
JavaFX scene elements and GUI builders
Use only components from the JavaFX library for this assignment.
Some IDEs, such as NetBeans, will let you specify the appearance and behavior of your GUI and automatically generate the code for you. JavaFX also implements FXML, a markup language from which GUI code can be generated. You may use these tools, if you wish.
1 Launching your GUI
We will launch your GUI from Run As → Java Application.
List all features you implemented in answers/hw8 features.pdf. You must commit
answers/hw8 features.pdf file to get credit for any features of your solution.
Writing automated tests for GUI is difficult and usually involves special frameworks that are beyond the scope of this course. For this reason, you are not required to write unit tests. We will test your solution by running your main program.
Reflection [0.5 points]
Please answer the following questions in a file named hw8 reflection.pdf in your answers/ direc- tory. Answer briefly, but in enough detail to help you improve your own practice via introspection and to enable the course staff to improve Principles of Software in the future.
(1) In retrospect, what could you have done better to reduce the time you spent solving this assignment?
(2) What could the Principles of Software staff have done better to improve your learning expe- rience in this assignment?
(3) What do you know now that you wish you had known before beginning the assignment?
We will be awarding up to 1 extra credit point (at the discretion of the grader) for particularly
insightful, constructive, and helpful reflection statements.
Collaboration[0.5 points]
Please answer the following questions in a file named hw8 collaboration.pdf in your answers/ directory.
The standard integrity policy applies to this assignment.
State whether you collaborated with other students. If you did collaborate with other students,
state their names and a brief description of how you collaborated.
Grade Breakdown
Model Changes: 5 pts.
Basic Functionality of GUI Application: 8 pts.
Features of GUI Application: 3 pts. per required feature Collaboration and reflection: 1 pt.
Hints
General GUI Advice
If you have never used JavaFX, it is well worth your time to study some tutorials, read the example code, and generally get comfortable with GUI programming before diving into the assignment.
Abstraction functions, representation invariants, and checkRep() are not required for GUI classes because they generally do not represent ADTs.
User testing is a great way to verify that your interface is as easy to use as you think it is. Show your GUI to your friend/roommate/family member. Can they figure out how to use it without directions from you?
As usual, remember to follow good methodology and class decomposition among other best practices for style.
Programming With JavaFX
Oracle’s JavaFX tutorials are a useful resource. Also remember to use the Java API and JavaFX documentation, to see what classes and methods are available and how to use them.
What to Turn In
You must commit and push the following files to Submitty. Don’t forget to click “Grade My Repository” button on Submitty!
src/main/java/hw8/RPICampusPathsMain.java
src/main/java/hw8/*.java [your GUI classes]
src/main/resources/fxml/*.fxml [your FXML files, if any]
src/main/resources/img/*.* [your image files, if any]
answers/hw8 model-changes.pdf [list of changes to HW7. The file may simply con- tain “None”.]
answers/hw8 features.pdf [list of all features you implemented.]
answers/hw8 reflection.pdf
answers/hw8 collaboration.pdf
Errata
Check the Submitty Discussion Forum for possible errata or other relevant information. Q&A
None yet.
Parts of this homework were copied from the University of Washington Software Design and Implementation class by Michael Ernst.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写data driven business mod...
2024-11-12
代做acct1101mno introduction...
2024-11-12
代做can207 continuous and di...
2024-11-12
代做dsci 510: principles of ...
2024-11-12
代写25705 financial modellin...
2024-11-12
代做ccc8013 the process of s...
2024-11-12
代做intro to image understan...
2024-11-12
代写eco380: markets, competi...
2024-11-12
代写ems726u/p - engineering ...
2024-11-12
代写cive5975/cw1/2024 founda...
2024-11-12
代做csci235 – database syst...
2024-11-12
代做ban 5013 analytics softw...
2024-11-12
代写cs 17700 — lab 06 fall ...
2024-11-12
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!