Team : T1 Member : 김영훈, 남장우, 황규원 Presenter : 김영훈
Statement of Purpose System Context Diagram Event List Data Flow Diagram Process Specification i Structured Charts
Elevator Reservation System(ERS) -ERS는입력이들어오면입력을스케줄에저장한다. - 입력을통해저장된스케줄을분석하여엘리베이터를할당한다. - 할당된엘리베이터는외부디스플레이를통해서확인할수있다. - 만약많은사람이용하여만원일경우다른엘리베이터를배정하여더신속한엘리베이터이용을가능하도록해준다.
Touch screen Motor ERS Control Touch screen
/ Event Touch screen input Fire sensor input Description R정수 : 예약층 C정수 : 예약취소층 L정수 : 관리자모드로로그인시비밀번호값 W 정수 : 최대무게설정값 F 정수 : 층수제한값 화재감지되면 detect false 에서 detect true 전환 Weight sensor input 무게초과시 under weight 에서 over weight 전환 Emergency sensor input Door sensor input Electric sensor input 비상정지 emergency on/ emergency off 자동문탑승인식 door open/ door close 정전유사감지유무 power on/ power off Location sensor input 현재위치를 int 형으로저장한다. Direction Display Direction commands to the motor ( move up / move down / door open / door close ) Display commands to the touch screen Admin +String/ i Reservation +String/ Wait time +String
Touch screen Touch Screen input Direction Motor ERS Control Fire sensor input Weight sensor input Emergency sensor input Door sensor input Electric sensor input Location sensor input Display Touch screen
Level 0 Touch screen Touch screen input Direction Motor Fire sensor Weight sensor Emergency sensor Fire sensor input Weight sensor input Emergency sensor input ERS Control Door sensor Electric sensor Door sensor input Electric sensor input Tick Display Touch screen Location sensor Location sensor input Digital Clock
Level 0 Data Dictionary / Event Description Format / Type Touch screen input R 정수 : 예약층 C정수 : 예약취소층 L정수 : 관리자모드로로그인시비밀번호값 W 정수 : 최대무게설정값 F 정수 : 층수제한값 Char, Interrupt Fire sensor input 화재감지되면 detect false 에서 detect true 전환 True / False, Interrupt Weight sensor input 무게초과시 under weight 에서 over weight 전환 True / False, Interrupt Emergency sensor input 비상정지 emergency on/ emergency off True / False, Interrupt Door sensor input 자동문탑승인식 door open/ door close True / False, Interrupt Electric sensor input 정전유사감지유무 power on/ power off True / False, Interrupt Location sensor input cabin 의현재위치 int, Periodic Direction Display Direction commands to the motor ( move up / move down / door open / door close ) Admin output/ Reservation output/ wait time output Up/ Down / Open/ Close/ STOP String
Level 1 Touch screen input Direction Fire sensor input Weight sensor input Person & 1 Setting, & value Cabin & Display control 2 Emergency sensor input Door sensor input Display Electric sensor input Tick
Level 1 Reference No. 1 Person & Fire sensor input, Weight sensor input, Emergency sensor input, Door sensor input, Electric sensor input Setting, & input value 센서에서들어온신호를각자료형에맞게변환후저장 Reference No. 2 Cabin & Display control Setting, & input value Direction, Display 저장된자료를읽어그값에따라캐빈을이동및계산하여출력
Touch screen input Fire sensor input Admin Interface 1.1 Fire 1.3 Admin data Fire Admin input data calculator 1.9 Level 2 Setting value Weight sensor input Weight 1.4 Weight Emergency sensor input Emergency 1.5 Emergency Person Existence input data calculator 1.11 value Door sensor input Door 1.6 Electric power Electric sensor input Electric 1.7 Location Location sensor input Tick User input Location data Reservation 1.8 calculator (MTA) Data 1.10 Location Touch screen input User Interface 1.2 User data
Level 2 Setting value Motor Command Cabin Move Interface 2.2 Direction value ERS Controller 2.1 Display Command Display Interface 2.3 Display Reservation Data
Level 2 Reference No. 1.1 Admin interface Touch screen input Admin data 터치스크린으로부터들어온신호를관리자가사용하는 Admin data 로변환한다. Reference No. 1.2 User interface Touch screen input User data 터치스크린으로부터들어온신호를사용자입력신호인 User data로변환한다.
Level 2 Reference No. 1.3 Fire Fire sensor input Fire 화재경보센서로부터들어온화재감지유무신호를 True/ False 형태로변환한다. Reference No. 1.4 Weight Weight sensor input Weight 무게초과센서로부터중량초과상태를읽어신호를 True/ False 형태로변환한다.
Level 2 Reference No. 1.5 Emergency Emergency sensor input Emergency 응급센서로들어온신호를 True/ False 로변환한다. Reference No. 1.6 Door Door sensor input Person Existence 자동문센서로부터들어온신호를 True/ false의형태로변환한다.
Level 2 Reference No. 1.7 Electric Electric sensor input Electric power 정전감지센서로부터정전의유무를읽어 True/ False 형태로변환한다. Reference No. 1.8 Location Location input, Tick Location 위치센서로부터캐빈의위치를읽어 int형으로변환 A, B 두대의엘리베이터가있을경우, 엘리베이터번호 + 층수 A 층수예 ) 101, 107 B층수예 ) 202, 205
Level 2 Reference No. 1.9 Admin input data calculator Admin data Setting value Char 형의 Admin data 를관리자모드접속과환경설정 ( 초과무게, 층수제한 ) 을위한값으로 Setting value 로저장한다. L 정수 : 관리자모드로로그인시비밀번호값 W 정수 : 최대무게설정값 F 정수 : 층수제한값위와같은 3 가지의데이터형태가저장된다.
Level 2 Reference No. 1.10 User input data calculator(mta) User data, Location Reservation data Char 형의 User data 를예약과취소를위한값으로변경하고 Location 을이용하여 MTA* 계산하여 Reservation data 에 in[ 층수 ][ 예약유무 ] 로저장한다. MTA:(Distance*constant constant_time)/speed)+(delay_time)+(schedule[n] time)/speed)+(delay time)+(schedule[n]*c) c) Reference No. 1.11 input data calculator Fire, Weight, Emergency, Person Existence, Electric power value 다양한센서들로부터저장된 True/ False 및 Location int 형태의데이터를모아감시를위한 value 로저장
Level 2 Reference No. 2.1 ERS Controller Setting value, Reservation Data, value Motor Command, Display Command 관리자환경설정에관한 Setting Value가들어오고 L정수 : 관리자모드로로그인시비밀번호값, W 정수 : 최대무게설정값, F 정수 : 층수제한값이3가지를가지고있는다. Reservation Data는 R정수 : 예약층, C정수 : 예약취소층 2가지를가지고전에들어온 Setting value의 F 정수인층수제한값비교와 value의각종상황을체크하여제한층이상일경우예약을성립하고대기시간계산과엘리베이터를배정하여 Motor Command를보내고 Display Command를보내대기시간과예약성공을알린다.
Level 2 Reference No. 2.2 Cabin Move Interface Motor Command Direction Motor Command 가들어오면 move up / move down / door open / door close 이 4 가지형태로 Direction 에보낸다. Reference No. 2.3 Display Interface Display Command Display Display Command 가들어오면메시지를출력한다.
Level 3 Setting value Tick Enable Disable move up 2.12 Enable Disable move down 2.13 Motor Command Motor Command Controller 211 Trigger value 2.11 Tick String door open 2.14 Trigger Tick door close 2.15 Motor Command Motor Command Reservation Data Display Interface 2.16 Display Command
Level 3 Reference No. 2.11 Controller Setting value, value, value Move up(enable, Disable), move down(enable, Disable), door open(trigger), door close(trigger), String 관리자환경설정에관한 Setting Value가들어오고 L정수 : 관리자모드로로그인시들어오는비밀번호값이포함되며로그인하여 Max Weight와 Forbid Floor를설정한다. W 정수 : 최대무게설정값이포함되고최대무게를설정한다. F 정수 : 층수제한값이포함되고해당층의예약을금지한다. 사용자입력에관한 value는 R정수 : 예약층으로전에들어온 Setting value의 F 정수인층수제한값비교와 value 의각종상황을체크하여제한층이상일경우예약을성립하고대기시간 (MTA) 계산과엘리베이터를배정하며각종 에전송 C정수 : 예약취소층으로엘리베이터의스케줄을검색하여취소하며 output 의 String 로성공여부가나간다. value의각종상황을체크하여각종예외상황을체크하며 Door sensor을이용해 door open에추가적인 Trigger를보낸다.
Level 3 Reference No. 2.12 Move up Enable, Disable Motor Command Enable, Disable 의신호에따라 Cabin 상승의 Motor Command 를보낸다. Reference No. 2.13 Move down Enable, Disable Motor Command Enable, Disable 의신호에따라 Cabin 하강의 Motor Command 를보낸다.
Level 3 Reference No. 2.14 Door open Trigger, Tick Motor Command Trigger, Tick 의신호가올때마다자동문을 5 초간 Open 한다. 이에따라 Motor Command 를보낸다. Reference No. 2.15 Door close Trigger, Tick Motor Command Trigger, Tick 의신호가올때자동문을 1초뒤Close한다. 이에따라 Motor Command 를보낸다.
Level 3 Reference No. 2.16 Admin output String Display Command 으로들어온 String를 ( Admin +String/ Reservation +String/ Wait time +String) Touch screen에 Display Command로보낸다.
Level 4 /Disable Move UP Disable Move Down Move Down Tick [Reservation Data < Location] /Enable Move Down STOP Tick [Reservation Data > Location] /Enable Move UP Move UP Tick [Reservation Data Location] / Disable Move Down Tick [Reservation Data Location] / Disable Move UP Tick Tick [STOP & Reservation Data == Location] /Trigger Door Open Tick [STOP &!Door ] / Trigger Door Close Door Close Door Open Tick [STOP & Door ] / Trigger Door Open
Afferent Flow Central Transformation Efferent Flow () (Control) ()
Main Setting value Reservation Data value Controller Admin input data calculator User input data calculator(mta) input data calculator Enable Disable Enable Disable Trigger Trigger Trigger Admin Interface User Fire Move up Door open Interface Weight Emergency Move down Door close Display Interface Door Electric Location
Main Controller Setting value Reservation Data value Admin input data calculator User input data calculator(mta) input data calculator Admin Interface User Interface Fire Weight Enable Disable Enable Trigger Trigger Trigger Disable Move down Door close Display Interface Emergency Move up Door open Door Electric Location