atcassignment_javagridsim
TRANSCRIPT
-
7/26/2019 ATCAssignment_JAVAGridSim
1/39
Design and implementation of avirtual organization in Grid
Computing environment:Implementation of Air TracControl (ATC) system
1
-
7/26/2019 ATCAssignment_JAVAGridSim
2/39
Tale of Contents1. Introduction!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! "
2. ATC (Air Traffic Control) System!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#3. Modeling of ATC system!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
3.1 Data flow modeling!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!$
. Im!lementation of ATC System!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
.1 "rid resource and "rid users!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
.2 Sc#eduling !olicies!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1"
.3 Statistics!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1%
. "$I of t#e ATC System!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"&
%eferences!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! "%
&
-
7/26/2019 ATCAssignment_JAVAGridSim
3/39
1. Introduction
Initial model of Air Traffic Control (ATC) was !ro!osed in 1&'s* w#ere t#e !o!ularity and
demand of t#e system #as increased a lot against t#e security and safety in t#e s+y. Air tra,el #as
-ecome a freuent routine o,er t#e #uman life and t#us in t#is conte/t* ATC system #a,e -ecome
more o,erloaded and strained. A continuous c#ange and im!ro,ement o,er t#e ATC system are
noticed since a decade and t#e reuirements are e,er increasing* w#ere t#e initial ATC system are
restricted to limited functionalities as t#ere are only few air crafts flying. Due to t#e increased
,olume of air traffic* res!ecti,e controlling mec#anism got am!le !riority and t#e main o-0ecti,e
of ATC systems is to reduce t#e #uman errors and a,oid unsafe met#odologies o,er t#e
traditional systems. T#us to reduce to t#e air traffic and a,iation accidents* a fully automatic and
so!#isticated ATC system is always reuired. Most of t#e todays Air Traffic Control (ATC)
systems is to maintain an aircraft se!aration mec#anism automatically and t#us im!ose t#e
reuired orderly and safe traffic flow against t#e wide num-er of aircraft safety guidelines. A
ty!ical ATC system is res!onsi-le to #andle ,ast num-er !eo!le* networ+ and eui!ment and
t#us a com!le/ design and im!lementation is always reuired (am* 23).
A ty!ical ATC can -e designed and simulated using many tools* still t#e uality !lays t#e ,ital
role in t#is conte/t and !resimulation or im!lementation tas+s li+e modeling* data flow analysis*
acti,ity analysis and software de,elo!ment met#odology #as t#e to! !riority. Main o-0ecti,e of
t#e current system is to design and im!lement a ty!ical ATC system using "ridSim and a,a
!rogramming language and to accom!lis# a sim!le scenario is considered and is as e/!lained.
4ot# t#e resource and sc#edule modeling is done o,er t#e current researc# against t#e demands
of distri-uted and !arallel com!uting needs for ,irtuali5ation of t#e mac#ines and t#e
corres!onding resource en,ironments. 6ey acti,ities of t#e ATC system im!lementation li+e !re
flig#t* ta+eoff* descent* enroute* landing and a!!roac# are considered o,er t#e current system*
w#ere t#e communication among t#ese acti,ities are modeled using t#e $M7 standards (8all*
2). A!!lication will -e de,elo!ed using t#e a,a code* w#ere a ric# gra!#ical user interface
("$I) is de,elo!ed wit# t#e reuired classes* su-classes* met#ods and functionalities as well.
"
-
7/26/2019 ATCAssignment_JAVAGridSim
4/39
Detailed e/!lanation to t#e ATC system and t#e modeling done to design and im!lement t#e
reuired system are as e/!lained.
2. ATC (Air Traffic Control) System
Air Traffic Control (ATC) can -e defined as t#e ty!ical ser,ice !ro,ided -y t#e -ase ground
controller and is used to !ass t#e directions and guidelines to t#e aircrafts in t#e air and on t#e
ground. As mentioned due to t#e increased traffic and ,olume of aircrafts* role of ATC #a,e
-ecome crucial* w#ere t#e entire system can -e analy5ed at !rimary and secondary le,el -ased
on t#e tas+s in,ol,ed o,er t#e control o!erations. 9rimary tas+ of a ty!ical ATC system is
considered to ena-le t#e controller to +ee! t#e aircraft at a safe distance -ot# from t#e #ori5ontal
and ,ertical !oint of reference and t#e secondary tas+ is to ensure t#e seuence or orderly traffic
flow -ased on t#e information s#ared wit# t#e !ilots w#ic# is in turn gat#ered from weat#er
ad,isors* radar ad,isors* na,igation information -ase and flig#t guidelines (4rown* 2&).
T#ere was lot of #istoric -ac+ground and many ,ersions and models of ATC were releases and
still t#e common goal resides t#e same. Irres!ecti,e of num-er of solutions !ro!osed to design
and im!lement t#e ATC system* still t#e sco!e of de,elo!ing new model is o!en and t#us t#e
main aim of t#e current researc# is to model* design and im!lement t#e ATC system using ty!ical
software modeling* data-ase modeling and "ridSim and a,a simulations. "ridSim is used for
simulation of ATC system as it !ro,ides wide range of functionalities and #eterogeneous classes*
a!!lications* resources* users and resource -ro+ers and sc#edulers (Murray* 23). Single and
multi!le administrati,e tas+s are also ena-led wit# t#e "ridSim simulation and t#us ,ariant
a!!lications can -e de,elo!ed o,er t#e "rid and 9arallel com!uting en,ironment. Software* user
interface and data modeling for t#e reuired ATC system is de,elo!ed and discussed in t#e -elow
section.
3. Modeling of ATC system
#
-
7/26/2019 ATCAssignment_JAVAGridSim
5/39
As mentioned modeling a ty!ical ATC (Air Traffic Control) system* includes t#e design of data
flow modeling* user interface modeling and -usiness logic modeling. To model t#e -usiness
logic and user interface standards $M7 can -e used and t#e o,erall flow of t#e ATC system and
t#e res!ecti,e a!!lications can -e re!resented using t#e use cases* seuence diagrams* acti,ity
and conte/t diagrams (Meyn* 21). Data flow modeling can -e done using D:Ds* w#ere t#e
res!ecti,e modeling is done from t#e le,el to t#e detailed 7e,el n modeling and t#e res!ecti,e
re!resentations are as gi,en -elow
3.1 Data flow modeling
9rior to model t#e reuired ATC system* it is always reuired to consider t#e +ey elements of t#e
system and t#ey are discussed in t#is section. In general Air Traffic Control is com!osed of
,arious com!onents or elements w#ic# includes communication systems* na,igation systems*
radios* com!uters* radars and ot#er im!ortant instruments t#at guide t#e entire !rocess of aircraft
flying. Air Traffic controllers are well trained to #andle t#e entire ATC system and can monitor
t#e ground le,el acti,ities -ased on t#e information o-tained against t#e s!eed and location of
eac# and e,ery aircraft. Main as!ect considered in t#is conte/t is t#at* controller can guide t#e
aircraft against eit#er t#ey s#ould come ,ertically or #ori5ontally or too close to eac# ot#er*
w#ere t#e additional safety conditions in terms of landing or ta+eoff are also im!osed -y t#e
controller (4auer* 211).
As t#e main goal of t#e ATC system is to reduce t#e ris+s associated wit# t#e collisions of
aircrafts against num-er of increased aircrafts t#ey can fly safely simultaneously at t#e same
time. T#us -y considering all t#ese as!ects into account* four im!ortant elements are identified
o,er t#e data flow modeling for t#e current ATC system and t#ey are as listed -elow
4asic set of rules t#at guide t#e flying of t#e aircraft for t#e !ilot w#o fly t#e aircraft in
t#e air
Second im!ortant element is to set t#e reuired magnitude and multitude for t#e
res!ecti,e na,igation system w#ic# can #andle t#e entire instrumentation and landing
system
$
-
7/26/2019 ATCAssignment_JAVAGridSim
6/39
T#ird element is to surface di,ision of air!ort and t#e air s!ace against ,arious control
areas. ;t#er im!ortant elements considered in t#is le,el also include landing* ta+eoff and
aircraft trac+ing
:ourt# element is esta-lis#ing t#e communication among t#e controllerscontrollers*
!ilotcontrollers and t#e res!ecti,e eui!ment t#at is in,ol,ed o,er t#e communication
(%a-ner* 2').
A%TCC (Air %oute Traffic Control Center) is one of t#e largest com!onents o,er t#e airs!ace
system and in general a ty!ical A%TCC can co,er u! to t#ousands of suare miles and a ty!ical
geogra!#ical co,erage sna!s#ot of A%TCC is as s#own -elow
Fig 3.1.1: ARTCC Geographical Coverage (Rabner, 2006)
T#us -ased on t#e +ey reuirements and elements identified o,er t#e ATC system* now t#e
reuired ATC Data flow modeling is done. In general D:D can -e considered as an im!ortant
tec#niue to s#ow and analy5e t#e transformation of in!ut data to out!ut ,ia a seuence of
functional transformations o,er t#e system -oundaries and t#us considered as !ostulated systems
'
-
7/26/2019 ATCAssignment_JAVAGridSim
7/39
as well. D:D modeled for t#e current ATC system will #old t#e +ey information and t#ey are as
listed -elow
Data storage location
Data flow among t#e data o-0ects
-
7/26/2019 ATCAssignment_JAVAGridSim
8/39
Fig 3.1.2: ATC Level 0 F
7e,el D:D as s#own in t#e a-o,e figure it is clear t#at* #ig# le,el data entities* connections
and relations are analy5ed at t#is le,el. As a ty!ical ATC system is com!le/ to analy5e* only one
entity is s#own* w#ere t#e 9ilot entity is used to dis!lay o,erall ATC controller and data storeinformation. 9ilot of t#e system can record t#e flig#t information and it includes flig#t !lans and
t#e destination air!orts. :lig#t !lan will -e ena-led -y t#e controller and t#e res!ecti,e
information will -e trac+ed and stored across a file. =eat#er u!dates will -e gat#ered and stored
o,er a se!arate file and t#us can -e used !rior or during t#e aircraft flying. $sing t#e tac+
num-er a ty!ical trans!onder code will -e generated and t#us in t#e emergency cases !ilots can
send a reuest to t#e nearest T%AC;> (Terminal %adar A!!roac# Control) system. ;nce t#e
trac+ order u!date is recei,ed at t#e T%AC;> end* any c#anges in t#e order will -e u!dated and
t#us -etter safety can -e ensured. 9ilot can also im!ose alternati,e flig#t !lan -ased on t#e order
of t#e trac+ing !lan and t#e trac+ num-er (C#en* 2?).
Level 1 DFD
Detailed e/!lanation to t#e data flow of t#e ATC system is gi,en in t#is section and all t#e
!rocesses s#own in t#e 7e,el D:D are ela-orated at 7e,el 1 D:D. ATC system generating t#e
reuired flig#t !lan w#ic# will include t#e data li+e aircraft ID* ground s!eed* re!orted altitude
and assigned altitude against t#e flig#t information a,aila-le. 4ot# t#e destination and de!arture
air!ort information is also trac+ed at t#is le,el and if t#ere are any air!ort transits t#en t#e flig#t
!lan will -e u!dated accordingly suc# t#at city of t#e air!ort will -e u!dated (
-
7/26/2019 ATCAssignment_JAVAGridSim
9/39
Fig 3.1.3: Level 1 ATC F
Level 2 DFD
Muc# detailed e/!lanation to t#e data o-0ect* data flow and transformation of all t#e entities
identified are gi,en in t#e le,el 2 D:D of ATC system.
-
7/26/2019 ATCAssignment_JAVAGridSim
10/39
also model o,er t#e le,el 2 D:D of t#e !ro!osed ATC system* w#ic# is used to e/actly trac+ t#e
!rediction as!ects of t#e flig#t information. :iltering !rocess is also modeled at t#e le,el 2 D:D
and t#us t#e modern ATC systems wit#in a s!ecific range will -e filtered -ased on t#e res!ecti,e
range ,alues and t#us t#e monitoring of t#e controller will -e efficient against traffic analysis and
t#e res!ecti,e !rocesses are s#own in t#e -elow le,el 2 D:D of ATC system ("re,ing* 212)
Fig 3.1.!: Level 2 F o" ATC #$#%e&
:rom t#e a-o,e le,el 2 D:D of t#e !ro!osed ATC system it is clear t#at* many detailed !rocesses
are identified and t#e flow among t#em is also s#own.
1*
-
7/26/2019 ATCAssignment_JAVAGridSim
11/39
. Im!lementation of ATC System
As mentioned at t#e design le,el and -ased on t#e D:D modeling of t#e !ro!osed ATC system* a
com!le/ simulation model is de,elo!ed using "ridSim and a,a and t#e corres!onding code is
as gi,en -elow
.1 "rid resource and "rid users
!ac+age atc@
im!ort 0a,a.awt.@
im!ort 0a,a.awt.e,ent.@
im!ort 0a,a/.swing.@
B
aut#or ;9C
B
!u-lic class TrailCom!onent e/tends 7a-el
!ri,ate int !os/@
!ri,ate int !osy@
11
-
7/26/2019 ATCAssignment_JAVAGridSim
12/39
B Creates a new instance of Com!onentTest B
!u-lic TrailCom!onent(int /* int y)
!os/ E /@ !osy E y@
F
!u-lic int get9osG()
return !os/@
F
!u-lic int get9os()
return !osy@
F
!u-lic ,oid set9osG(int /)
!os/E/@
F
!u-lic ,oid set9os(int y)
!osyEy@
1&
-
7/26/2019 ATCAssignment_JAVAGridSim
13/39
F
!u-lic ,oid !aint("ra!#ics g)
"ra!#ics2D g2d E ("ra!#ics2D)g@
g2d.setColor(Color.7I"8TH"%A)@
g2d.draw%ect(** * )@
g2d.dis!ose()@
F
F
.2 Sc#eduling !olicies
!ac+age atc@
im!ort 0a,a.awt.@
im!ort 0a,a/.swing.@
B
aut#or ;9C
1"
-
7/26/2019 ATCAssignment_JAVAGridSim
14/39
B
!u-lic class Main
!ri,ate static AtcScreen atcscreen@
!ri,ate static :rame frame@
B Creates a new instance of Main B
!u-lic Main()
F
!ri,ate static ,oid createAndS#ow"$I()
BBMa+e sure we #a,e nice window decorations.
:rame.setDefault7oo+And:eelDecorated(true)@
BBCreate and set u! t#e window.
frame E new :rame(JATC simulatorJ)@
frame.setDefaultClose;!eration(:rame.HC7;S
-
7/26/2019 ATCAssignment_JAVAGridSim
15/39
BBatcscreen.setSi5e(3*3)@
BBframe.!ac+()@
frame.setKisi-le(true)@
F
B
!aram args t#e command line arguments
B
!u-lic static ,oid main(StringL args)
BBSc#edule a 0o- for t#e e,entdis!atc#ing t#readN
BBcreating and s#owing t#is a!!licationOs "$I.
0a,a/.swing.Swing$tilities.in,o+e7ater(new %unna-le()
!u-lic ,oid run()
createAndS#ow"$I()@
F
F)@
Air9lane a!1 E new Air9lane(Ja1J* * * 1* * J-ogus1J* 2* 2* 2* 1)@
1$
-
7/26/2019 ATCAssignment_JAVAGridSim
16/39
Air9lane a!2 E new Air9lane(Ja2J* * * 1* 1* J-ogus2J* 2* 3* 2* 1)@
a!1.SetClearAlt(1)@
a!1.SetClear8eading(1)@
a!1.SetClearS!eed(P)@
try
T#read.slee!(2)@
F
catc#(
-
7/26/2019 ATCAssignment_JAVAGridSim
17/39
T#read.slee!()@
F
catc#(
-
7/26/2019 ATCAssignment_JAVAGridSim
18/39
!u-lic class Air9lane
B !lane s!ecs B
!ri,ate String callsign@ BB tail num-er
!ri,ate int clim-rate@ BB feet !er second
!ri,ate int turnrate@ BB degree !er second
B clearance B
!ri,ate int clH#eading@ BB degrees
!ri,ate int clHalt@ BB feet
!ri,ate String clHdirect@ BB
!ri,ate int clHs!eed@ BB +nots
B current B
!ri,ate int cuH#eading@ BB degrees
!ri,ate int cuHalt@ BB feet
!ri,ate int cuHs!eed@ BB +nots
!ri,ate dou-le cuHs!eedH!i/@ BB s!eed in !i/els
!ri,ate int !os/@
!ri,ate int !osy@
!ri,ate int accel@ BB +nots !er second
!ri,ate int deccel@ BB +nots !er second
1
-
7/26/2019 ATCAssignment_JAVAGridSim
19/39
!ri,ate long IterTimeStam!@ BB time stam! of last iteration in seconds
!u-lic 7a-elCom!onent a!7a-el@
!u-lic TrailCom!onentL trailarray E new TrailCom!onentL@
B Creates a new instance of Air9lane B
!u-lic Air9lane( String callHsign* int clim-Hrate* int turnHrate* int #eading*
int alt* String direct* int s!eed* int !osH/* int !osHy * int accelHrate)
cuH#eading E clH#eading E #eading@
cuHalt E clHalt E alt@
cuHs!eed E clHs!eed E s!eed@
cuHs!eedH!i/E cuHs!eed.1@
clHdirect E direct@
callsign E callHsign@
clim-rate E clim-Hrate@
turnrate E turnHrate@
accel E accelHrate@
!os/ E !osH/@
!osy E !osHy@
IterTimeStam! E System.currentTimeMillis() B 1@
1
-
7/26/2019 ATCAssignment_JAVAGridSim
20/39
a!7a-el E new 7a-elCom!onent(t#is)@
trailarrayL E new TrailCom!onent(!os/*!osy)@
trailarrayL1 E new TrailCom!onent(!os/*!osy)@
trailarrayL2 E new TrailCom!onent(!os/*!osy)@
trailarrayL3 E new TrailCom!onent(!os/*!osy)@
F
!u-lic ,oid SetClear8eading(int #eading)
clH#eading E #eading@
F
!u-lic ,oid SetClearAlt(int alt)
clHalt E alt@
F
!u-lic ,oid SetClearDirect(String fi/)
&*
-
7/26/2019 ATCAssignment_JAVAGridSim
21/39
clHdirect E fi/@
F
!u-lic ,oid SetClearS!eed(int s!eed)
clHs!eed E s!eed@
F
!u-lic ,oid 9lane9rocess()
BB get time
BB com!are time wit# !re,ious !rocess iteration
long TimeDiff E System.currentTimeMillis() B 1 IterTimeStam!@
BB -oundary c#ec+. R3' and
if(clH#eadingR3')
clH#eading E3'@
F
if(clH#eading)
clH#eading E3'@
F
&1
-
7/26/2019 ATCAssignment_JAVAGridSim
22/39
BB calculate #eading
if (clH#eading QE cuH#eading)
if(cuH#eading R clH#eading)
if((cuH#eading clH#eading) E 1?) BB turn left
int delta E (int)TimeDiff turnrate@
if (delta R (cuH#eading clH#eading))
delta E cuH#eading clH#eading@
F
cuH#eading E cuH#eading delta@
F
else BB turn rig#t
int delta E (int)TimeDiff turnrate@
if (delta R (cuH#eading clH#eading))
delta E cuH#eading clH#eading@
F
cuH#eading E cuH#eading delta@
F
&&
-
7/26/2019 ATCAssignment_JAVAGridSim
23/39
F
else
if((clH#eading cuH#eading) E 1?) BB turn rig#t
int delta E (int)TimeDiff turnrate@
if (delta R (clH#eading cuH#eading))
delta E clH#eading cuH#eading@
F
cuH#eading E cuH#eading delta@
F
else BB turn left
int delta E (int)TimeDiff turnrate@
if (delta R (clH#eading cuH#eading))
delta E clH#eading cuH#eading@
F
cuH#eading E cuH#eading delta@
F
F
if(cuH#eadingR3')
&"
-
7/26/2019 ATCAssignment_JAVAGridSim
24/39
cuH#eading E3'@
F
if(cuH#eading)
cuH#eading E3'@
F
F
BB calculate alt
if (clHalt QE cuHalt)
BBSystem.out.!rintln(Jad0usting alt -y J (int)TimeDiff clim-rate)@
if (clHalt R cuHalt)
cuHalt E cuHalt (int)TimeDiff clim-rate@
BBc#ec+ for o,ers#oot
if (clHalt cuHalt)
cuHalt E clHalt@
F
else
-
7/26/2019 ATCAssignment_JAVAGridSim
25/39
cuHalt E cuHalt (int)TimeDiff clim-rate@
BB c#ec+ for o,ers#oot
if (clHalt R cuHalt)
cuHalt E clHalt@
F
F
BB calculate s!eed
if (clHs!eed QE cuHs!eed)
BBSystem.out.!rintln(Jad0usting accel -y J (int)TimeDiff accel)@
if (clHs!eed R cuHs!eed)
cuHs!eed E cuHs!eed (int)TimeDiff accel@
BBc#ec+ for o,ers#oot
if (clHs!eed cuHs!eed)
cuHs!eed E clHs!eed@
F
else
cuHs!eed E cuHs!eed (int)TimeDiff accel@
&$
-
7/26/2019 ATCAssignment_JAVAGridSim
26/39
BB c#ec+ for o,ers#oot
if (clHs!eed R cuHs!eed)
cuHs!eed E clHs!eed@
F
cuHs!eedH!i/ E cuHs!eed .1@
F
for(int iE2@ iRE@ i)
trailarrayLi1.set9osG(trailarrayLi.get9osG())@
trailarrayLi1.set9os(trailarrayLi.get9os())@
F
trailarrayL.set9osG(!os/)@
trailarrayL.set9os(!osy)@
BB calculate !os / and y
BBget angle wit# / a/is
int tem!#eading@
if (cuH#eading 2P RE )
&'
-
7/26/2019 ATCAssignment_JAVAGridSim
27/39
tem!#eading E cuH#eading 2P@
BB 2nd uadrant
dou-le deltaHy E@
dou-le deltaH/ E@
deltaHy E cuHs!eedH!i/ 0a,a.lang.Mat#.sin(0a,a.lang.Mat#.to%adians(tem!#eading))@
deltaH/ E cuHs!eedH!i/ 0a,a.lang.Mat#.cos(0a,a.lang.Mat#.to%adians(tem!#eading))@
!os/EdeltaH/@
!osyEdeltaHy@
F
else if (cuH#eading 1? RE)
tem!#eading E 2P cuH#eading@
BB 3rd uadrant
dou-le deltaHy E@
dou-le deltaH/ E@
deltaHy E cuHs!eedH!i/ 0a,a.lang.Mat#.sin(0a,a.lang.Mat#.to%adians(tem!#eading))@
deltaH/ E cuHs!eedH!i/ 0a,a.lang.Mat#.cos(0a,a.lang.Mat#.to%adians(tem!#eading))@
!os/EdeltaH/@
!osyEdeltaHy@
&%
-
7/26/2019 ATCAssignment_JAVAGridSim
28/39
F
else if (cuH#eading & RE )
tem!#eading E cuH#eading &@
BB t# uadrant
dou-le deltaHy E@
dou-le deltaH/ E@
deltaHy E 0a,a.lang.Mat#.sin(0a,a.lang.Mat#.to%adians(tem!#eading))@
deltaH/ E 0a,a.lang.Mat#.cos(0a,a.lang.Mat#.to%adians(tem!#eading))@
deltaHy E cuHs!eedH!i/@
deltaH/ E cuHs!eedH!i/@
!os/EdeltaH/@
!osyEdeltaHy@
F
else
BB 1st uadrant
tem!#eading E & cuH#eading@
&
-
7/26/2019 ATCAssignment_JAVAGridSim
29/39
dou-le deltaHy E@
dou-le deltaH/ E@
deltaHy E cuHs!eedH!i/ 0a,a.lang.Mat#.sin(0a,a.lang.Mat#.to%adians(tem!#eading))@
deltaH/ E cuHs!eedH!i/ 0a,a.lang.Mat#.cos(0a,a.lang.Mat#.to%adians(tem!#eading))@
!os/EdeltaH/@
!osyEdeltaHy@
F
IterTimeStam! E System.currentTimeMillis() B 1@
F
!u-lic ,oid !rint9lane()
System.out.!rintln(Jcurrent s!eed E JcuHs!eed J cleared to JclHs!eed)@
System.out.!rintln(Jcurrent alt E JcuHalt J cleared to JclHalt)@
System.out.!rintln(Jcurrent #eading E JcuH#eading J cleared to JclH#eading)@
System.out.!rintln(JJ
System.currentTimeMillis() B 1)@
F
&
-
7/26/2019 ATCAssignment_JAVAGridSim
30/39
!u-lic int get9osG()
return !os/@
F
!u-lic int get9os()
return !osy@
F
!u-lic String getCallSign()
return callsign@
F
!u-lic int getCu8eading()
return cuH#eading@
F
!u-lic int getCl8eading()
return clH#eading@
F
!u-lic int getCuAlt()
"*
-
7/26/2019 ATCAssignment_JAVAGridSim
31/39
return cuHalt@
F
!u-lic int getClAlt()
return clHalt@
F
!u-lic int getCuS!eed()
return cuHs!eed@
F
!u-lic int getClS!eed()
return clHs!eed@
F
B
!ri,ate String callsign@ BB tail num-er
!ri,ate int clim-rate@ BB feet !er second
"1
-
7/26/2019 ATCAssignment_JAVAGridSim
32/39
!ri,ate int turnrate@ BB degree !er second
!ri,ate int clH#eading@ BB degrees
!ri,ate int clHalt@ BB feet
!ri,ate String clHdirect@ BB
!ri,ate int clHs!eed@ BB +nots
!ri,ate int cuH#eading@ BB degrees
!ri,ate int cuHalt@ BB feet
!ri,ate int cuHs!eed@ BB +nots
!ri,ate int !os/@
!ri,ate int !osy@
!ri,ate int accel@ BB +nots !er second
!ri,ate int deccel@ BB +nots !er second
B
F
. "$I of t#e ATC System
"&
-
7/26/2019 ATCAssignment_JAVAGridSim
33/39
!ac+age atc@
im!ort 0a,a.awt.@
im!ort 0a,a/.swing.@
im!ort 0a,a.util.@
B
aut#or ;9C
B
!u-lic class AtcScreen e/tends 9anel
BB Create t#e list
0a,a.util.7istAir9laneR !lanelist@
!u-lic Air9lane a! E null@
B Creates new form AtcScreen B
!u-lic AtcScreen()
""
-
7/26/2019 ATCAssignment_JAVAGridSim
34/39
!lanelist E new Array7ist()@ BB 7ist im!lemented as growa-le array
set7ayout( null )@
F
!u-lic ,oid add!lane(Air9lane air!lane)
BB add !lane to a list for !aint
!lanelist.add(air!lane)@
add(air!lane.a!7a-el)@
air!lane.a!7a-el.set7ocation(air!lane.get9osG()* air!lane.get9os())@
air!lane.a!7a-el.setSi5e(P*)@
for(int iE@ i@ i)
add(air!lane.trailarrayLi)@
air!lane.trailarrayLi.set7ocation(air!lane.trailarrayLi.get9osG()*air!lane.trailarrayLi.get
9os())@
air!lane.trailarrayLi.setSi5e(P*P)@
F
"#
-
7/26/2019 ATCAssignment_JAVAGridSim
35/39
F
!u-lic ,oid u!date7a-el7ocation(Air9lane air!lane)
air!lane.a!7a-el.set7ocation(air!lane.get9osG()* air!lane.get9os())@
for(int iE@ i@ i)
air!lane.trailarrayLi.set7ocation(air!lane.trailarrayLi.get9osG()*air!lane.trailarrayLi.get
9os())@
F
F
!u-lic ,oid u!date()
IteratorAir9laneR it E !lanelist.iterator()@
w#ile (it.#as>e/t())
Air9lane a! E it.ne/t()@
a!.9lane9rocess()@
u!date7a-el7ocation(a!)@
"$
-
7/26/2019 ATCAssignment_JAVAGridSim
36/39
F
F
F
4elow are some of t#e im!ortant sna!s#ots of t#e !ro!osed ATC system
"'
-
7/26/2019 ATCAssignment_JAVAGridSim
37/39
"%
-
7/26/2019 ATCAssignment_JAVAGridSim
38/39
%eferences
4auer* . (211). Identification and Modeling of Conte/ts for Different Information
Scenarios in Air Traffic.Eurocontrol Experimental Centre Bretigny,41(2)* 1&.
4rown* T. (2&). >etwor+ing Issues for Small $nmanned Aircraft Systems.Journal of
Intelligent and Robotic Systems,1(3)* 'P&.
C#en* 4. (2?). A %e,iew of t#e A!!lications of Agent Tec#nology in Traffic and
Trans!ortation Systems.Intelligent Transportation Systems, IEEE Transactions,11(2)*
1P31
-
7/26/2019 ATCAssignment_JAVAGridSim
39/39
8all* A. (2). $sing :ormal Met#ods to De,elo! an ATC Information
System.Industrial!Strengt' (ormal )et'ods in *ractice (ormal +pproac'es to
Computing and Information Tec'nology,(2)* ?&&3.
Meyn* 7. (21). 4uild of t#e Airs!ace Conce!t