forked from MJUTeamProject2021/MyongSubway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.puml
650 lines (647 loc) · 17.6 KB
/
hello.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
@startuml
class com.example.myongsubway.StationInformationFragment {
- {static} String ARG_PARAM1
- {static} String ARG_PARAM2
- String mParam1
- String mParam2
- LinearLayout buildingLayout
- LinearLayout restuarentLayout
- LinearLayout adjacentLayout
- LinearLayout facilitiesLayout
- LinearLayout lineLayout
- TextView vertexName
- TextView toilet
- TextView door
- TextView number
- TextView update
- TextView airstate
- TextView pmq
- TextView congestion
- Button reportButton
- Button closeButton
- CustomAppGraph.Vertex vertex
~ CustomAppGraph graph
- boolean isZoomPath
+ void onDestroy()
+ void onCreate(Bundle)
+ View onCreateView(LayoutInflater,ViewGroup,Bundle)
+ void onClick(View)
~ void getAir()
}
class com.example.myongsubway.StationInformationFragment.AirThread {
+ void run()
}
class com.example.myongsubway.ViewHolder {
+ TextView stationTextView
}
class com.example.myongsubway.SearchAdapter {
- Context context
- LayoutInflater inflate
- List<String> stationList
- ViewHolder viewHolder
+ int getCount()
+ Object getItem(int)
+ long getItemId(int)
+ View getView(int,View,ViewGroup)
}
class com.example.myongsubway.ZoomPathFragment {
- ArrayList<Integer> path
- ArrayList<Integer> lines
- ArrayList<Integer> btnBackgrounds
- ArrayList<Integer> lineColors
- CustomAppGraph graph
~ int stationButtonWidthDpBig
~ int stationButtonWidthDpSmall
~ int stationButtonHeightDp
~ int dottedLineMarginDp
~ int dottedLineHeightDp
~ int simpleLineWidthDp
~ int simpleLineHeightDp
+ View onCreateView(LayoutInflater,ViewGroup,Bundle)
- void createStation(View)
- void createButton(View,int,float,int,int)
- void createButton(View,int,float,int,int,int)
- void createSimpleLine(View,int,float)
- void createTransferButton(View,int,float)
- void createLineTextViewAndButton(View,int,float,int,int)
- void createMidLayout(View,int,float)
- void createEmptyButton(View,float)
- void registerListener(View)
}
class com.example.myongsubway.CommentFragment {
- {static} String ARG_PARAM1
- {static} String ARG_PARAM2
- String mParam1
- String mParam2
~ FirebaseDatabase db
~ DatabaseReference dr
- String content
- String writer
- String time
- String boardid
- String id
- TextView commentText
- TextView writerText
- TextView timeText
- Button confirmButton
- CustomAppGraph graph
+ void onCreate(Bundle)
+ View onCreateView(LayoutInflater,ViewGroup,Bundle)
+ String getContent()
+ String getWriter()
+ String getTime()
+ String getBoardid()
+ String getCommenttId()
+ void setContent(String)
+ void setWriter(String)
+ void setTime(String)
+ void setBoardid(String)
+ void setId(String)
+ void onClick(View)
}
class com.example.myongsubway.BookmarkActivity {
- FirebaseAuth mAuth
- ListView stationList
- ListView routeList
- CustomAppGraph graph
- Context mContext
# void onCreate(Bundle)
+ boolean onOptionsItemSelected(MenuItem)
# void onResume()
}
class com.example.myongsubway.SignInActivity {
- Button signIn
- Button withoutSignIn
+ EditText email
+ EditText password
+ Button signUp
+ ArrayList<String> bookmarkedStation
+ ArrayList<String> bookmarkedRoute
+ Map<String,Object> bookmarkedMap
- FragmentManager fragmentManager
- SignUpFragment SignUpFragment
- FragmentTransaction transaction
- FirebaseAuth mAuth
+ boolean isFragment
# void onCreate(Bundle)
+ void saveSearchData()
+ void loadSearchData()
~ void setEmail(String)
~ String getEmail()
~ String getPassword()
~ void destroyFragment()
+ void onBackPressed()
}
class com.example.myongsubway.ForcedTerminationService {
+ IBinder onBind(Intent)
+ void onTaskRemoved(Intent)
}
class com.example.myongsubway.BackPressHandler {
- Activity activity
- long backPressedTime
+ void onBackPressed()
}
class com.example.myongsubway.BoardModifyActivity {
~ Button closeButton
~ Button confirmButton
~ TextView titleText
~ TextView contentText
~ CardItem item
- CustomAppGraph graph
# void onCreate(Bundle)
+ void onClick(View)
}
class com.example.myongsubway.StationReportFragment {
- {static} String ARG_PARAM1
- {static} String ARG_PARAM2
- String mParam1
- String mParam2
- LinearLayout menuLinearLayout
- LinearLayout addLinearLayout
- Button opaqueButton
- Button departureButton
- Button destinationButton
- Button closeButton
- Button informationButton
- ImageButton bookmarkButton
- Button nameButton
- Button leftButton
- Button rightButton
- Button toiletButton
- Button doorButton
- Button nameButton2
- TextView lineTextView
- ArrayList<Button> addButtonList
- CustomAppGraph.Vertex vertex
- ArrayList<CustomAppGraph.Vertex> vertices
- CustomAppGraph graph
- int line
+ void onCreate(Bundle)
+ View onCreateView(LayoutInflater,ViewGroup,Bundle)
+ void removeInformationFragment(StationInformationFragment)
+ void onClick(View)
}
class com.example.myongsubway.MinTimePathFragment {
~ ArrayList<Integer> minTimePath
~ ArrayList<Integer> lines
~ ArrayList<Integer> costs
~ CustomAppGraph graph
~ ArrayList<CustomAppGraph.Vertex> vertices
~ ArrayList<Integer> btnBackgrounds
~ ArrayList<Integer> lineColors
~ Button departureButton
~ ImageButton zoomButton
~ Button reportButton
~ TextView departureLine
~ TextView costTime
~ ImageView midLine
+ void onResume()
+ View onCreateView(LayoutInflater,ViewGroup,Bundle)
- void init(View)
- void registerListener()
- void setLineTextViewMargin()
- void setMidLineGradient()
- void setCostTextView()
- String convertTime(int)
- String convertDistance(int)
- String convertCost(int)
}
class com.example.myongsubway.SearchActivity {
- ListView stationListView
- EditText editStation
- SearchAdapter searchAdapter
- ArrayList<String> searchedStationList
- ArrayList<String> viewedStationList
- Button backButton
- CustomAppGraph graph
- ArrayList<CustomAppGraph.Vertex> vertices
- Button removeSearchHistoryButton
# void onCreate(Bundle)
+ void removeSearchHistory()
+ void search(String)
+ void addSearchedStation(String)
+ void saveSearchData()
+ void loadSearchData()
}
class com.example.myongsubway.MinDistancePathFragment {
~ ArrayList<Integer> minDistancePath
~ ArrayList<Integer> lines
~ ArrayList<Integer> costs
~ CustomAppGraph graph
~ ArrayList<CustomAppGraph.Vertex> vertices
~ ArrayList<Integer> btnBackgrounds
~ ArrayList<Integer> lineColors
~ Button departureButton
~ ImageButton zoomButton
~ Button reportButton
~ TextView departureLine
~ TextView costTime
~ ImageView midLine
+ void onResume()
+ View onCreateView(LayoutInflater,ViewGroup,Bundle)
- void init(View)
- void registerListener()
- void setLineTextViewMargin()
- void setMidLineGradient()
- void setCostTextView()
- String convertTime(int)
- String convertDistance(int)
- String convertCost(int)
}
class com.example.myongsubway.AccountInformationActivity {
- TextView account
- FirebaseAuth mAuth
# void onCreate(Bundle)
+ boolean onOptionsItemSelected(MenuItem)
+ void onClickSignOut(View)
+ void onCLickRevoke(View)
}
class com.example.myongsubway.TransferWalkTimeActivity {
- CustomAppGraph graph
- Button fastWalkButton
~ int START_INDEX
~ String SPAN_COLOR
~ String CLICK_COLOR
# void onCreate(Bundle)
- void init()
- void initButton()
- void setToolbar()
- void registerListener()
- void changeButtonColorSpan(Button,String)
+ boolean onOptionsItemSelected(MenuItem)
}
class com.example.myongsubway.ShortestPathActivity {
- ViewPager2 viewPager
- FragmentStateAdapter pagerAdapter
- TabLayout tabLayout
- List<String> tabElement
- String departure
- ArrayList<ArrayList<Integer>> paths
- ArrayList<ArrayList<Integer>> allCosts
- ArrayList<ArrayList<Integer>> allLines
- int TYPE_COUNT
- int TRANSFER_WEIGHT
~ int LAST_INDEX
- ImageButton setAlarmButton
- CustomAppGraph graph
- FirebaseAuth mAuth
- ArrayList<Integer> btnBackgrounds
- ArrayList<Integer> lineColors
- ImageButton bookmarkButton
- boolean isButtonClicked
- CustomAppGraph.SearchType pageType
- CustomAppGraph.SearchType buttonType
- AlarmManager alarmManager
- int registeredAlarmCount
+ {static} Context ShortestPathContext
~ int IC_NORMAL_ALARM_BUTTON
~ int IC_ANOTHER_SELECTED_ALARM_BUTTON
# void onCreate(Bundle)
- void init()
- void checkDepartureArrival()
- void initBookmarkButton()
- void initAlarmButton()
+ void finishAlarm()
- void registerAlarm()
- void startAlarm(int,int,CustomAppGraph.Vertex)
+ void cancelAlarm()
- void registerListener()
- void addBookmarkedRoute()
- void removeBookmarkedRoute()
- boolean isContained()
+ void setPageType(CustomAppGraph.SearchType)
- void setPagerAndTabLayout()
- void setToolbar()
+ boolean onOptionsItemSelected(MenuItem)
- void dijkstra(int,CustomAppGraph.SearchType)
- void getPathLines(CustomAppGraph.SearchType)
- void calculateAllCosts(ArrayList<Integer>,CustomAppGraph.SearchType,int)
- int calculateElapsed(ArrayList<Integer>,CustomAppGraph.SearchType,CustomAppGraph.SearchType)
- int calculateElapsed(CustomAppGraph.SearchType)
+ void generateStationInformationFragment(CustomAppGraph.Vertex)
+ void generateZoomPathFragment(ArrayList<Integer>,ArrayList<Integer>,CustomAppGraph.SearchType)
- void initializeBtnBackgrounds()
- void initializeLineColors()
}
class com.example.myongsubway.VertexCost {
~ int vertex
~ int cost
+ int compareTo(VertexCost)
}
class com.example.myongsubway.ShortestPathActivity.VPAdapter {
- ArrayList<Fragment> items
+ Fragment createFragment(int)
+ int getItemCount()
}
class com.example.myongsubway.BoardWatchActivity {
~ FirebaseDatabase db
~ DatabaseReference dr
+ {static} BoardAdapter adapter
~ ArrayList<CardItem> dataList
~ RecyclerView recyclerView
- FloatingActionButton writeButton
- Button watchButton
- Button resetButton
# void onCreate(Bundle)
+ void resetBoard()
+ void onItemClick(View,int)
+ void onClick(View)
+ void onResume()
}
class com.example.myongsubway.BoardAdapter {
- ArrayList<CardItem> mDataList
- Context context
- OnItemClickEventListener mItemClickListener
+ void setOnItemClickListener(OnItemClickEventListener)
+ CustomViewHolder onCreateViewHolder(ViewGroup,int)
+ void onBindViewHolder(CustomViewHolder,int)
+ int getItemCount()
+ {static} String formatTimeString(long)
}
class com.example.myongsubway.BoardAdapter.CustomViewHolder {
~ TextView title
~ TextView content
~ TextView time
~ TextView writer
~ Button commentnumber
}
class com.example.myongsubway.SignUpFragment {
- FirebaseAuth mAuth
- {static} String ARG_PARAM1
- {static} String ARG_PARAM2
- String mParam1
- String mParam2
+ EditText email
+ EditText password
+ Button complete
+ {static} SignUpFragment newInstance(String,String)
+ void onCreate(Bundle)
+ View onCreateView(LayoutInflater,ViewGroup,Bundle)
~ String getEmail()
~ String getPassword()
~ String getUserData()
+ void onDestroy()
}
class com.example.myongsubway.CustomAppGraph {
- HashMap<String,Integer> map
- HashMap<Integer,String> reverseMap
- ArrayList<Vertex> vertices
- ArrayList<ArrayList<Edge>> adjacent
- int STATION_COUNT
- int EDGE_COUNT
- String email
- String password
- ArrayList<String> bookmarkedStation
- ArrayList<String> bookmarkedRoute
- Map<String,Object> bookmarkedMap
- int LINE_COUNT
- String alarmKey
- int alarmCount
- int alarmNumForCount
+ float FAST_WALK
+ float NORMAL_WALK
+ float SLOW_WALK
- float walkSpeed
- int[] TRANSFER_DISTANCE
- int distanceIndex
- int clamp(int,int,int)
+ void setWalkSpeed(float)
+ float getWalkSpeed()
- void initWalkSpeed()
+ void onCreate()
- void createGraph()
+ boolean setAccount(String,String,ArrayList<String>,ArrayList<String>)
+ void setBookmarkedStation(ArrayList<String>)
+ void setBookmarkedRoute(ArrayList<String>)
+ void setBookmarkedMap(HashMap<String,Object>)
+ boolean isLogined()
+ void clearAccount()
+ String getEmail()
+ ArrayList<String> getBookmarkedStation()
+ ArrayList<String> getBookmarkedRoute()
+ Map<String,Object> getBookmarkedMap()
+ ArrayList<Vertex> getVertices()
+ ArrayList<ArrayList<Edge>> getAdjacent()
+ HashMap<String,Integer> getMap()
+ HashMap<Integer,String> getReverseMap()
+ int getEdgeCount()
+ int getStationCount()
+ void setAlarmKey(String)
+ void destroyAlarm()
+ void setAlarmCount(int)
+ String getAlarmKey()
+ int getAlarmCount()
+ int decreaseAlarmNum()
+ void onConfigurationChanged(Configuration)
+ void onLowMemory()
}
class com.example.myongsubway.CustomAppGraph.Edge {
- int[] edgeData
+ int getCost(SearchType)
}
class com.example.myongsubway.CustomAppGraph.Vertex {
- String vertex
- ArrayList<Integer> adjacent
- int line
- ArrayList<Integer> lines
- boolean toilet
- String number
- String doorDirection
- String[] stationFacilities
- String[] nearbyRestaurants
- String[] nearbyFacilities
- String congestion
- int transferDistance
- void addAdjacent(int)
- void addInformation(String,String,String,String,String,String)
- void addTransferDistance(int)
- void setCongestion(String)
+ String getVertex()
+ ArrayList<Integer> getAdjacent()
+ int getLine()
+ ArrayList<Integer> getLines()
+ boolean getToilet()
+ String getNumber()
+ String getDoorDirection()
+ String[] getStationFacilities()
+ String[] getNearbyRestaurants()
+ String[] getNearbyFacilities()
+ String getCongestion()
+ int getTransferDistance()
}
class com.example.myongsubway.MinCostPathFragment {
~ ArrayList<Integer> minCostPath
~ ArrayList<Integer> lines
~ ArrayList<Integer> costs
~ CustomAppGraph graph
~ ArrayList<CustomAppGraph.Vertex> vertices
~ ArrayList<Integer> btnBackgrounds
~ ArrayList<Integer> lineColors
~ Button departureButton
~ ImageButton zoomButton
~ Button reportButton
~ TextView departureLine
~ TextView costTime
~ ImageView midLine
+ void onResume()
+ View onCreateView(LayoutInflater,ViewGroup,Bundle)
- void init(View)
- void registerListener()
- void setLineTextViewMargin()
- void setMidLineGradient()
- void setCostTextView()
- String convertTime(int)
- String convertDistance(int)
- String convertCost(int)
}
class com.example.myongsubway.MainActivity {
+ {static} Context mcontext
+ StationReportFragment fragment
- Button findButton
- Button changeButton
- Button departX
- Button destiX
- Button gotoGame
- Button gotoBookmark
- Button gotoSearch
- Button gotoSetting
- Button gotoBoard
+ TextView departText
+ TextView destiText
- Intent intent
- CustomAppGraph graph
- FirebaseAuth mAuth
+ ArrayList<Button> stationButtonList
+ ArrayList<CustomAppGraph.Vertex> mainVertices
- BackPressHandler backPressHandler
- boolean isFragment
# void onCreate(Bundle)
~ void destroyFragment()
~ void launchReport(String)
+ void addBookmarkedStation(String)
+ void removeBookmarkedStation(String)
+ boolean isContained(String)
+ void onClick(View)
~ String getDepart()
~ String getDesti()
~ void setDepart(String)
~ void setDesti(String)
~ void setIsFragmentFalse()
~ void setIsFragmentTrue()
~ void setDepartInvisible()
~ void setDepartvisible()
~ void setDestiInvisible()
~ void setDestitvisible()
~ void setDepartGray()
~ void setDepartBlack()
~ void setDestiGray()
~ void setDestiBlack()
+ void onBackPressed()
}
class com.example.myongsubway.OpenSourceInfoActivity {
# void onCreate(Bundle)
+ boolean onOptionsItemSelected(MenuItem)
}
class com.example.myongsubway.UnityPlayerActivity {
# UnityPlayer mUnityPlayer
# String updateUnityCommandLineArguments(String)
# void onCreate(Bundle)
+ void receiveStr(String)
+ void onUnityPlayerUnloaded()
+ void onUnityPlayerQuitted()
# void onNewIntent(Intent)
# void onDestroy()
# void onStop()
# void onStart()
# void onPause()
# void onResume()
+ void onLowMemory()
+ void onTrimMemory(int)
+ void onConfigurationChanged(Configuration)
+ void onWindowFocusChanged(boolean)
+ boolean dispatchKeyEvent(KeyEvent)
+ boolean onKeyUp(int,KeyEvent)
+ boolean onKeyDown(int,KeyEvent)
+ boolean onTouchEvent(MotionEvent)
+ boolean onGenericMotionEvent(MotionEvent)
}
class com.example.myongsubway.SettingsActivity {
- Button accountInformation
- Button transferWalkSpeed
- CustomAppGraph graph
# void onCreate(Bundle)
+ boolean onOptionsItemSelected(MenuItem)
+ void onClickAccount(View)
+ void onclickQuestion(View)
+ void onClickTransferWalkSpeed(View)
+ void onnClickOpenSourceInfo(View)
}
class com.example.myongsubway.AlarmReceiver {
- Context mContext
- String channelId
- String channelName
+ void onReceive(Context,Intent)
}
class com.example.myongsubway.BoardReadActivity {
~ FirebaseDatabase db
~ DatabaseReference dr
~ TextView titleText
~ TextView contentText
~ TextView writerandtimeText
~ TextView commentText
~ Button commentbutton
~ Toolbar myToolbar
~ LinearLayout commentLayout
~ ArrayList<CommentFragment> commentList
~ CardItem item
- CustomAppGraph graph
- InputMethodManager imm
~ FragmentManager fragmentManager
~ FragmentTransaction fragmentTransaction
# void onCreate(Bundle)
~ void setRefresh()
~ void setCommentRefresh()
+ void onResume()
+ void onClick(View)
+ boolean onCreateOptionsMenu(Menu)
+ boolean onOptionsItemSelected(MenuItem)
}
class com.example.myongsubway.CardItem {
- String id
- String title
- String content
- String time
- String writer
- String commentnumber
+ void setTitle(String)
+ void setContent(String)
+ void setWriter(String)
+ void setTime(String)
+ void setId(String)
+ void setCommentnumber(String)
+ String getTitle()
+ String getContent()
+ String getWriter()
+ String getTime()
+ String getId()
+ String getCommentnumber()
}
class com.example.myongsubway.BoardWriteActivity {
~ Button closeButton
~ Button confirmButton
~ TextView titleText
~ TextView contentText
~ CustomAppGraph graph
# void onCreate(Bundle)
+ void onClick(View)
}
com.example.myongsubway.StationInformationFragment +.. com.example.myongsubway.StationInformationFragment.AirThread
android.app.Service <|-- com.example.myongsubway.ForcedTerminationService
com.example.myongsubway.BoardAdapter +.. com.example.myongsubway.BoardAdapter.CustomViewHolder
com.example.myongsubway.ViewHolder <|-- com.example.myongsubway.BoardAdapter.CustomViewHolder
android.app.Application <|-- com.example.myongsubway.CustomAppGraph
com.example.myongsubway.CustomAppGraph +.. com.example.myongsubway.CustomAppGraph.Edge
com.example.myongsubway.CustomAppGraph +.. com.example.myongsubway.CustomAppGraph.Vertex
com.unity3d.player.IUnityPlayerLifecycleEvents <|.. com.example.myongsubway.UnityPlayerActivity
android.app.Activity <|-- com.example.myongsubway.UnityPlayerActivity
@enduml