首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
讲解COMP2511语言编程、辅导C++程序设计、辅导Java,Python编程 解析C/C++编程|辅导Web开发
项目预算:
开发周期:
发布时间:
要求地区:
Back in Blackout
Forked from an inaccessible project
Update README.md
Braedon Wooding authored 3 days ago
9d407a6e
Name Last commit Last update
Ready to go back in blackout 2 weeks ago
Update README.md 3 days ago
Due: 8am Tuesday Week 4 (22nd June 2021)
Value: 15% of course mark
COMP2511 Assignment: Back in Blackout
Contents
0. Change Log
Your Private Repository
Video
1. Aims
2. Preamble and Problem
A simple example
Simulation
3. Requirements
Assumptions
Devices
Satellites and Properties
Visualisation
4. Program Structure
5. Tasks
Task 1 (World State)
Task 1 a) Create Device
Task 1 b) Move Device
Task 1 b) Remove Device
Task 1 d) Create Satellite
Task 1 e) Remove Satellite
Task 1 f) Show World State
Task 1 Example
Task 2 (Simulation)
Task 2 a) Schedule Device Activation
Task 2 b) Run the Simulation
Task 2 Example
Task 3 (Specialised Devices)
List of Libraries you can use
6. Other Requirements
7. Design
8. Testing and Dryruns
Assignment-Specification
Project ID: 143612 Leave project
9 0
? README.md
COMP2511 Assignment: Back in Blackout
Contents
imgs
README.md
2021/6/19 COMP2511 / 21T2 / Assignment-Specification · GitLab
https://gitlab.cse.unsw.edu.au/COMP2511/21T2/assignment-specification 2/17
9. Style and Documentation
10. Tips
11. Submission
12. Late Penalties
13. Marking Criteria ?
14. Credits
Fri 4 Jun: Clarified List of Libraries that are allowed.
Sat 5 Jun:
Removed decimal place requirement on positions (just put the doubles as they are)
Fixed up a typo in one of the examples
(Merged into your repositories): TestHelper now doesn't require an exception message to exist (since some exceptions don't include it)
Fixed Test Paths in Spec
Fixed up velocity for one of the examples
Tue 8 Jun:
Clarified activation periods
Simplified order of device connection
Wed 9 Jun:
Submission is now available!
Specified that devices should connect based on lexiographical order
Thurs 10 Jun:
Make Part 3 a little more specific.
Sun 13 Jun:
Give a bit more of a hint to the pseudo code for Task2
Is located at https://gitlab.cse.unsw.edu.au/COMP2511/21T2/students/z555555/21T2-cs2511-assignment
Make sure to replace the zID in the header.
Video discussing the assignment / test code
Practice applying a systematic approach to object-oriented design process
Gain experience in implementing an object-oriented program with multiple interacting classes
Gain hands on experience with Java libraries and JSON
So much of today's technology uses Global Positioning System (GPS) information, for example, tasks such as tagging photographs with the
location where they were taken, guiding drivers with car navigation systems, and even missile control systems. There are currently 31 active GPS
satellites orbiting the Earth all together providing near-constant GPS coverage. There are many other types of satellites too, such as the new
SpaceX satellites aiming to provide internet access.
In the far future, society has advanced enough that we have started to occupy the rings of Jupiter. However, to remain connected with the rest
of the universe they still rely on satellites! Four major corporations exist: SpaceX, Blue Origin, NASA (National Aeronautics and Space
Administration), and Soviet Satellites.
Firstly, you will set up a very simplified simulation of the ring and its rotating satellites. Then we’ll be running the simulation (causing the
satellites to orbit) and you’ll be responsible for maintaining connections.
You will need to develop, design, and implement an object-oriented approach that utilises concepts such as abstraction, encapsulation,
composition, and inheritance as taught in lectures.
Let’s assume initially there is a Blue Origin Satellite at height 10,000m above the centre of Jupiter and at θ = 20 (anticlockwise), there are three
devices in a (hollow) ring: DeviceA at θ = 30 (anticlockwise), DeviceB at θ = 180 (anticlockwise) and DeviceC at θ = 330 (anticlockwise).
0. Change Log
Your Private Repository
Video
1. Aims
2. Preamble and Problem
A simple example
2021/6/19 COMP2511 / 21T2 / Assignment-Specification · GitLab
https://gitlab.cse.unsw.edu.au/COMP2511/21T2/assignment-specification 3/17
DeviceA and DeviceC are able to connect to the satellite as they are in view of the satellite. This is indicated by "possibleConnections":
["DeviceA","DeviceC"]" in the following world state (in JSON representation). An activation period of a device indicates the period during
which that device tries to establish connections to the available satellites. For this example, we initially assume that each device is dormant
(inactive), and therefore activation periods for each device is an empty list in the following world state. Later we will define activation periods
and use them in establishing connections.
{
"currentTime": "00:00",
"devices": [
{
"activationPeriods": [],
"id": "DeviceA",
"isConnected": false,
"position": 30,
"type": "HandheldDevice"
},
{
"activationPeriods": [],
"id": "DeviceB",
"isConnected": false,
"position": 180,
"type": "LaptopDevice"
},
{
"activationPeriods": [],
"id": "DeviceC",
"isConnected": false,
"position": 330,
"type": "DesktopDevice"
}
],
"satellites": [
{
"connections": [],
"height": 10000,
"id": "Satellite1",
"position": 20,
"possibleConnections": [
"DeviceA",
"DeviceC"
],
"type": "BlueOriginSatellite",
"velocity": 141.66
}
]
}
Now, using the velocity of the satellite (141.66 metres per minute, which at a height of 10,000m makes it have an angular velocity of 141.66 /
10,000 = 0.014 degrees per minute), we can calculate the new position of the satellite after a full day, as shown below in the figure (the
satellite has moved 20.4 degrees as per 141.66 / 10000 * 1440, this gives us a new position of 20 + 20.4 = 40.4 ). In this new position,
DeviceA and DeviceC are able to connect to the satellite and DeviceB is not able to connect to the satellite, because it is not in view of the
satellite.
NOTE: For the sake of this assignment we will not be worrying about radians at all. You can either visualise it as the fact that the linear
velocities already take into account the radian offset (π/180 or 180/π dependent on which way you are converting) or you can just say
that we are approximating them to be the same (radians == degrees). It doesn't matter and for this assignment we aren't really caring
about the math, we are focusing on your design!
2021/6/19 COMP2511 / 21T2 / Assignment-Specification · GitLab
https://gitlab.cse.unsw.edu.au/COMP2511/21T2/assignment-specification 4/17
The new world state for this position is
{
"currentTime": "00:00",
"devices": [
{
"activationPeriods": [],
"id": "DeviceA",
"isConnected": false,
"position": 30,
"type": "HandheldDevice"
},
{
"activationPeriods": [],
"id": "DeviceB",
"isConnected": false,
"position": 180,
"type": "LaptopDevice"
},
{
"activationPeriods": [],
"id": "DeviceC",
"isConnected": false,
"position": 330,
"type": "DesktopDevice"
}
],
"satellites": [
{
"connections": [],
"height": 10000,
"id": "Satellite1",
"position": 40.40
"possibleConnections": ["DeviceA", "DeviceC"],
"type": "BlueOriginSatellite",
"velocity": 141.66
}
]
}
Now, let's add the following activation periods:
DeviceA - "activationPeriods": [{ "startTime": "00:00", "endTime": "12:00" }]
DeviceB - "activationPeriods": [{ "startTime": "00:00", "endTime": "04:00" }]
DeviceC - "activationPeriods": [{ "startTime": "07:00", "endTime": "10:40" }]
Given the above activation periods, the world state at current time 03:00 will be as shown below. Please note that the following:
Device A is active at the current time of 03:00, and also in view of the satellite, so there is a connection between Device A and the satellite,
represented by a solid grey line.
Device C is not active at the current time of 03:00, and therefore there is no connection between the satellite and Device C.
Device B is active but not in a view of the satellite, so there is no connection for Device B.
2021/6/19 COMP2511 / 21T2 / Assignment-Specification · GitLab
https://gitlab.cse.unsw.edu.au/COMP2511/21T2/assignment-specification 5/17
We then can go forward to the time 10:00. At this point we have the following:
Device A is active at the current time of 10:00, and also in view of the satellite, so there is a connection between Device A and the satellite.
Device C is active at the current time of 10:00, and also in view of the satellite, so there is a connection between Device C and the satellite.
Device B is not active and not in a view of the satellite, so there is no connection for Device B.
Then, let's continue once more, and finish out the full day (so the current time is now 00:00 ). At this point both connections were completed
(at different times). The DeviceA connection ended after 12:00 since the device was no longer active. A similar case occurred for DeviceC where
the connection ended after 10:40 .
The world state here is as follows;
{
"currentTime": "00:00",
"devices": [
{
"activationPeriods": [{ "endTime": "12:00", "startTime": "00:00" }],
"id": "DeviceA",
"isConnected": false,
"position": 30,
"type": "HandheldDevice"
},
{
"activationPeriods": [{ "endTime": "04:00", "startTime": "00:00" }],
"id": "DeviceB",
"isConnected": false,
"position": 180,
"type": "LaptopDevice"
},
{
"activationPeriods": [{ "endTime": "10:40", "startTime": "07:00" }],
"id": "DeviceC",
2021/6/19 COMP2511 / 21T2 / Assignment-Specification · GitLab
https://gitlab.cse.unsw.edu.au/COMP2511/21T2/assignment-specification 6/17
"isConnected": false,
"position": 330,
"type": "DesktopDevice"
}
],
"satellites": [
{
"connections": [
{
"deviceId": "DeviceA",
"endTime": "12:01",
"minutesActive": 719,
"satelliteId": "Satellite1",
"startTime": "00:00"
},
{
"deviceId": "DeviceC",
"endTime": "10:41",
"minutesActive": 215,
"satelliteId": "Satellite1",
"startTime": "07:00"
}
],
"height": 10000,
"id": "Satellite1",
"position": 60.80,
"possibleConnections": ["DeviceA"],
"type": "BlueOriginSatellite",
"velocity": 141.66
}
]
}
Notice how DeviceC has only been active for 215 minutes but despite that has a start / end time that has a duration of 220 minutes (3 hrs and
40 mins = 180 + 40 = 220)! Even DeviceA has only been alive for 719 minutes despite having a duration of 720 minutes! Why the discrepency?
Well, as we'll find below in section 3, each device/satellite has a series of connection properties (amongst others) and in this case handhelds take
1 minute to connect, and desktops take 5 minutes to connect. Satellites can also effect this (for example SpaceX satellites connect instantly to
devices, but can only connect to handhelds).
Want to play around with this for a bit? You can use the following link which has this problem entirely setup already for you.
Visualising Simulation
A simulation is an incremental process starting with an initial world state, say WorldState_00. We add a specified time interval of 1 minute and
calculate the new positions of all the satellites after the minute. We then go and update all the connections accordingly to derive the next world
state WorldState_01. Similarly, we derive WorldState_02 from WorldState_01, WorldState_03 from WorldState_02, and so on. This act of feeding a
world state into the next forms a sort of state machine, akin to Conway's Game of Life in a way.
WorldState_00 -> WorldState_01 -> WorldState_02 -> …
You will not be solving ANY maths here; we will be providing a small library that solves all the mathematical details of this problem.
There are three tasks:
1. Implement the 'world state', you'll be adding/moving devices, adding/removing satellites, and printing out where objects are in the world,
you WON'T be simulating them yet.
2. Implement activation periods (where devices try to connect to satellites) and simulating the 'world state' i.e. moving the satellites around,
and updating connections accordingly.
3. Implement special devices.
In this problem, we are going to have to make some assumptions. We will assume that:
We will only look at a single ring.
The ring is hollow.
Its radius is 3000 metres / 3 kilometres ( r ).
The ring does not rotate.
Simulation
3. Requirements
Assumptions
2021/6/19 COMP2511 / 21T2 / Assignment-Specification · GitLab
https://gitlab.cse.unsw.edu.au/COMP2511/21T2/assignment-specification 7/17
We will represent all positions through their angle θ .
The satellites orbit around the disk in 2D space.
HandheldDevice – phones, GPS devices, tablets.
Handhelds take 1 minute to connect
LaptopDevice – laptop computers.
Laptops take 2 minutes to connect
DesktopDevice – desktop computers and servers.
Desktops take 5 minutes to connect
SpaceXSatellite
Orbits at a speed of 3330 metres per hour
Only connect to handheld devices
Infinite number of connections
Devices connect instantly
BlueOriginSatellite
Orbits at a speed of 8500 metres per hour
Supports all devices
Maximum of 5 laptops and 2 desktops at a time with no limit on handheld devices, however the absolute maximum of all devices at
any time is 10.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写 gr5280、代做 java/pytho...
2024-12-22
代写 data 编程、代做 python ...
2024-12-22
chc5049 代做、代写 sql 编程设...
2024-12-22
comp1038 代写、c++编程设计代...
2024-12-22
chc5028代做、代写c/c++设计编...
2024-12-21
代做program、代写sql程序设计
2024-12-21
itc228编程代写、代做java程序...
2024-12-21
代写comp 330 (fall 2024): as...
2024-12-21
代写busi2105 quantitative me...
2024-12-21
代做7ssgn110 environmental d...
2024-12-21
代做busi2105 quantitative me...
2024-12-21
代写csc 110 y1f fall 2024 qu...
2024-12-21
代做management accounting au...
2024-12-21
热点标签
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
软件定制开发网!