首页
网站开发
桌面应用
管理软件
微信开发
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
热点项目
更多
data程序代写、代做c/c++编程语...
2024-05-17
data程序代写、代做python编程...
2024-05-17
program代做、c/c++,python程...
2024-05-17
代写math 3333 3.0 - winter 2...
2024-05-17
代做seng6110 programming ass...
2024-05-17
代写seng6110 object oriented...
2024-05-17
代写comp828: statistical pro...
2024-05-17
代做culture and society调试数...
2024-05-17
代做comp 4911 winter 2024 as...
2024-05-17
代做lh physical iiib / 03 33...
2024-05-17
代做3032ict big data analyti...
2024-05-17
代写comp4702 report代写留学生...
2024-05-17
代写fin2020 hw6代写c/c++编程
2024-05-17
热点标签
fit2004
fit3152
mec208
econ20120
cpt304
econ2101
econ0051
engi4547
econ1048
eengm2510
fit1008
7033mkt
ec2066
cct380h5f
man00019m
mech265001
fin2020
fit9137
n1542
csc4140
math6119
comp1710
fina864
csys5020
busi4412
math5007
2702ict
dts204tc
comp2003j
cosc2673
ecmt2150
bff3121–
comu7000
stat6118
comp814
acc202
ematm0067
bit233
ecs776p
600543
bpln0025
comp3400
econ7030
159.342 ‐ operating
mang6134
math1005/math6005
geog5404m
comp1710/6780
infs 2042
inf6028
bman30702
math0002
msci242l
mgt11001
com00177m
bman71282
fit2001
cpt210
159.341
econ7310
comp3221
comp10002
cpt206
ecmt1010
finm081
econ2005
cpt202
fit3094
socs0030
data7201
data2x01
mn-3507
mat246h1
ib2d90
ib3j80
acc207
comp90007
compx518-24a
fit1050
info1111
acct2201
buad801
compsci369
cse 332s
info1110
math1033
scie1000
eeee2057
math4063
cmt219
econ5074
eng5009
csse2310/csse7231
ec333
econ0001
cpt204
elec4630
ma117
dts104tc
comp2017
640481
csit128
eco000109m
finc5090
ggr202h5f
nbs8295
4ssmn902
chc6171
dsa1002
ebu6304
comp1021
csci-ua.202
com6511
ma416
mec206
iom209
bism7202
idepg001
cpt106
comp1212
ecom209
math1062
mn-3526
fnce3000
fmhu5002
psyc10003
fina2222
be631-6-sp/1
finc2011
37989
5aaob204
citx1401
econ0028
bsan3204
comp9123
cmt218
itp122
qbus6820
ecmt1020
bus0117
soft3202/comp9202
basc0057
mecm30013
aem4060
acb1120
comp2123
econ2151
ecmt6006
inmr77
com 5140
ocmp5328
comp1039
had7002h
cmt309
asb-3715
elec373
cpt204-2324
be631-6-sp
econ3016
mast10007
buss6002
comp4403
comp30023
finm1416
csc-30002
6qqmn971
fin668
mnfg309
inft2031
cits1402
comp2011
eecs 3221
ebu4201
ct60a9600
com336
8pro102
econ7300
comp3425
comp8410
comp222
finm8007
comp2006
comp26020
comp1721
eeen3007j
cis432
csci251
comp5125m
com398sust
finm7405
econ7021
fin600
infs4205/7205
mktg2510-
32022
mth6158
comp328
finn41615
2024
mec302
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!