Page 96 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 96
343. } else if
344. (str.equals("2")) {
345.
Station2.add(socket);
346. enrolledStop = 2;
347. // 정류장 3
348. }else if
349. (str.equals("3"))
350. {
351.
Station3.add(socket);
352. enrolledStop = 3;
353. }else if
354. (str.equals("#"))
355. {
356.
removeSelf(Station1);
357.
removeSelf(Station2);
358.
removeSelf(Station3);
359.
Test.delete_state(getSockName());
360.
Test.TableFlash();
361.
Test.Passenger.setText("승객 수:"+Test.PassCount());
362. }
363.
System.out.println(getSockName() + " : Sellected " + str);
364.
365.
366.
367. } catch (Exception e) {
368.
369.// 오류 확인
370. System.out.println(getSockName() + " :
in TheadSocket run() : " +
e.getMessage());
371. e.printStackTrace();
372.
373. }
374. }
- 89 -