Index Process Specification Data Dictionary
File Card Tag T-Money Control
I n p u t/o u t p u t Card Tag save D e s c r i p t i o n 리더기위치, In/Out/No_Out. File Name customer file write/ company file write / reader file write 리더기화면에표시한다. display normal display/ Tag display/ display
File Card Tag Customer data T-Money Control 0 Tick Digital Clock
Input / Output Event D e s c r i p t i o n Format / Type Card Tag 리더기위치, In/Out/No_Out. File Name String Save customer file write/ company file write/ reader file write 리더기화면에표시한다. normal display/ Tag display/ A djust display text file String
Card Tag File Input Parser & Checker 1 Customer data & money information Main Control 2 File Tick Digital Clock
Reference NO 1 Name Input Output Parser & Checker 리더기위치, In/Out. File Name customer data 카드에부여된 filename 을받아하단 2 줄을읽어 Parsing 하여데이터를구 Process Description 분하고그결과로 In/Out, 교통수단, 환승정보, 미정산내역, 잔액을 true, false 로저장하여 Main Control 로전달한다. Reference NO 2 Name Input Output Main Control customer data, tick file, display 카드의 In/Out, 교통수단, 환승정보, 미정산내역, 잔액의정보를받아계산 Process Description 하여파일에쓰고, 화면에출력한다. 3 분주기로정산과정을거쳐파일을생성하고화면에출력한다.
Input / Output Event D e s c r i p t i o n Format / Type Card_ID File Name. String Checked Customer data &Money Information File의두줄을 Parsing하여 In/Out, Transfer, Traffic, Dis_ adjust, Money에대한 data를만들어준다. In/Out, Transfer, Traffic, Dis_adjust, Money에관한 data 를저장한다. True/False, Integer char in/out char transfer char traffic char disadjust int Money char in/out char transfer calculate data 를바탕으로 calculate 를수행시킨다. char traffic char disadjust int Money save data calculate 결과를 String format에맞게지정한다. String String data set for display. ex) "1650","11200",.. String
Card Tag Input / Output Event In / Out Info Parser 1.1 In/Out Checker 1.2 Transfer Checker 1.3 Traffic Checker 1.4 Customer data Traffic Info Money Checker 1.5 Money information Disadjust Info Disadjust Checker 1.6
Reference NO 1.1 Name Input Output Process Description Parser 리더기위치, In/Out. File Name In/Out Info, Transfer Info, Trafic Info, Money Info, Disadjust Info. 태그정보 file을열어최하단두줄을 Parsing하여정보를나누고각각나눠진정보를 String 형태로다음단계에보낸다. Reference NO 1.2 Name Input Output Process Description In/Out Checker In/Out Info(String) True/False String형태의 In/Out정보를체크하여 In이면 true, Out이면 false로 data에저장하여 Main Control로보낸다.
Reference NO 1.3 Name Input Output Process Description Transfer Checker Transfer Info(String) True/False String형태의 Transfer 정보를체크하여환승이면 true, 환승이아니면 false 로 data에저장하여 Main Control로보낸다. Reference NO 1.4 Name Input Output Process Description Traffic Checker Traffic Info(String) True/False String형태의교통수단정보를체크하여 Bus이면 true, 이면 false를 data에저장하여 Main Control로보낸다.
Reference NO 1.5 Name Input Output Process Description Money Checker Money Info(String) True/False String형태의잔액정보를체크하여기본요금이상이면 true, 기본요금미달이면 false를 data에저장하여 Main Control로보낸다. Reference NO 1.6 Name Input Output Process Description Disadjust Checker disadjust Info(String) True/False String형태의미정산요금정보를체크하여미정산요금이없으면 true, 미정산요금이존재하면 false를 data에저장하여 Main Control로보낸다.
Input / Output Event D e s c r i p t i o n Format / Type In/Out Info Parsing result 중 In/ Out의결과 String Transfer Info Parsing result 중단말기정보의결과 String Traffic Info Parsing result 중교통수단의결과 String Money Info Parsing result 중잔액의결과 Integer dis adjust Info Parsing result 중미정산여부 String customer data In/Out, Traffic, Transfer, Dis_adjust 의정보 ex) true, true, false, false => In, Bus, Not Transfer, Not Dis_adjust char in/out char transfer char traffic char disadjust Money Information last Money In card Integer
Interface 2.2 Charge Customer data Money information Main Control 2.1 data Interface 2.3 File Interface 2.4 File
Reference NO 2.1 Name Input Output Main Control customer data, tick Trigger, Integer 카드의 In/Out, 교통수단, 환승정보, 미정산내역, 잔액의정보를받아요금 Process Description 계산한다. 결과를 Interface,File Interface 로보낸다. 3 분주기로정 산에게 trigger 를보내실행시킨다. Reference NO 2.2 Name Input Output Interface Trigger Info Process Description 3 분주기에 Main Control 로부터 Trigger 를받아정산을실시한다.
Reference NO 2.3 Name Input Output Process Description Interface Integer, Trigger, Tick String Trigger와계산결과가있을시카드의정보를표시한다. Trigger가없을시 3분주기로현재시간을표시한다. Reference NO 2.4 Name Input Output File Interface Integer, Trigger True/False Process Description Trigger 와계산결과를받아 File 에작성한다.
Input / Output Event D e s c r i p t i o n Format / Type char in/out calculate data 를바탕으로 calculate 를수행시킨다. char transfer char traffic char disadjust check money 고객의잔액을확인하도록한다. Integer Reader ID 단말기 ID String data String result set for display String Write data String result set for write String
Normal 2.1.2 Normal Standard_ Customer Data Money information Customer Data Money information Control 2.1.1 Transfer 2.1.3 Additional 2.1.4 result Disadjust 2.1.5
Input / Output Event D e s c r i p t i o n Format / Type Normal Traffic data char char In/Out Transfer Additional Dis_adjust In/Out data, Traffic data, Time data, distance data Traffic data, Time data, Distance data Traffic data, Transfer data char traffic Time Integer char traffic, Time Disatance char traffic, char trans fer Standard_ Bus Standard, Standard Integer Transfer_ Bus Transfer, Transfer, 0 Integer Additional_ Bus Additional, Additional Integer Dis_adjust_ Bus Dis_adjust, Dis_adjust, transfer Dis_adjust Integer
Trigger[Transfer &&!Disadjust] Trigger[!IN &&!Disadjust] Normal Transfer Additional Dis_adjust
result Cal_to_File File Control 2.4.1 File data File write File Writer 2.4.2 File Money information _ID Adj_File Control 2.3.1 2.3.2 _set result Adj_ Control 2.2.1
Input / Output Event D e s c r i p t i o n Format / Type result 각요금에대한계산결과저장 Integer Cal_to_File calculate result for file String Cal_to_ calculate result for display String _ID Reader ID String _set Reader result, Transfer result String Reader String Transfer Adj_to_File result for file String Adj_to_ result for display String File data Write to file data, File name String name String data File write Write data file
Normal 2.2.2 result result info Control 2.2.1 Tag 2.2.3 Money information 2.2.4 NoMoney 2.2.5
Input / Output Event D e s c r i p t i o n Format / Type Tag info d data String adjust info result to String String Watch Current Time String Card info adjust_str, balance 폼에맞춘정산결과 data ex) BUS : 178000 / METRO : 223000 String, String bal ance String No Money 잔액부족메시지 String
/Enable Normal Normal Tick /Enable Normal No_Money Tag Tick /Enable Normal
Control 2.1.1 result Disadjust 2.1.5 Additional 2.1.4 Transfer 2.1.3 Normal 2.1.2 Customer Data Bus standard 2.1.2.1 Standard Fee 2.1.2.2 Bus to 2.1.3.1 to Bus 2.1.3.2 Bus Additionall 2.1.4.1 Additional 2.1.4.2 Bus disadjust 2.1.5.1 disadjust 2.1.5.2 transfer disadjust 2.1.5.3 Trigger Trigger balance Additional Info Bus Additional d
Input / Output Event D e s c r i p t i o n Format / Type Balance Customer Money. balance Integer Bus standard calc ulated standard ca lculated customer money - bus standard result customer money - standard result Integer Integer Transfer Info Reader Id and Time, customer money String, String, Integer Bus to calc ulated to Bus calc ulated customer money - Bus to transfer customer money - to Bus transfer Integer Integer Additional Info Reader Id and Time, customer money String, String, Integer Bus Additional calculated customer money - Bus additional Integer
Input / Output Event Additional calculated D e s c r i p t i o n customer money - metro additional Format / Type Integer Balance customer money. balance Integer Bus disadjust calc ulated disadjust ca lculated transfer dis adjust calculated customer money - Bus disadjust customer money - disadjust customer money - transfer disadjust Integer Integer Integer
Transfer Normal Additional Dis_adjust Trigger[Transfer &&!Disadjust] Trigger[!IN &&!Disadjust] Trigger[IN && Disadjust] Bus standard standard Bus to to Bus Bus Additional Additional transfer disadjust disadjust Bus disadjust Trigger[Traffic] Trigger[!Traffic] Trigger[Traffic] Trigger[Traffic] Trigger[Traffic] Trigger[!Traffic] Trigger[!Traffic] Trigger[!Traffic] Trigger[!Traffic]
result Customer File Writer 2.4.2.1 File Control 2.4.1 trigger File Writer 2.4.2 trigger Data for write Company File Writer 2.4.2.2 Company write File result Reader File Writer 2.4.2.3
Input / Output Event D e s c r i p t i o n Format / Type Info Reader ID String Bus Reader ed Reader Adj usted 버스요금결제기록만을합산하여결과를저장 지하철요금결제기록만을합산하여결과를저장 Integer Integer Transfer ed 지하철, 버스환승기록만을합산하여, 분배하여저장 Integer data for write 파일에작성할 String을전달함. String customer write 고객파일에승하차결과를기록함. File company write 회사파일에정산시결과를기록함. File Reader write 리더기파일에승하차발생시결과를기록함. File
Trigger[( result && Money Information) adjust result] File Writer Trigger[ result && Money Information &&!adjust result] Trigger[ result &&!adjust result] Trigger[adjust result] Customer File Writer Reader File Writer Company File Writer
Bus Reader 2.3.2.1 Control 2.3.1 2.3.2 trigger Info Reader 2.3.2.2 Reader ed result Transfer 2.3.2.3
Input / Output Event D e s c r i p t i o n Format / Type Info Reader ID String Time to form 형식에맞게바꿈 String Tag data calculate data, Money Information Integer Integer Money Information - data String balance data String data Bus adjust result adjust resul t bus adjust data, metro adjust data, transfer adjust dat a 버스만을정산한결과와환승만정산한결과중버스의결과를합산하여 String으로표현한다. 지하철만을정산한결과와환승만정산한결과중지하철의결과를합산하여 String 으로표현한다. Integer String String
Trigger[File] Trigger[Bus &&! ] Trigger[!Bus && ] Trigger[Bus ] Bus Reader Reader Transfer
Normal 2.2.2 trigger Time Setter 2.2.2.1 result result Control 2.2.1 Tag 2.2.3 trigger trigger Money Setter 2.2.3.1 Balance Setter 2.2.3.2 2.2.4 trigger Bus Setter 2.2.4.1 Setter 2.2.4.2 NoMoney 2.2.5 No Money Message
No_Money Tag /Enable Normal Money Setter Trigger[balnace] Balance Setter Normal Trigger[current time] Tick /Enable Normal Trigger[Bus] Trigger[] Time Setter Bus Setter Setter
Normal 2.1.2 Bus standard 2.1.2.1 Transfer 2.1.3 Standard Fee 2.1.2.2 Control 2.1.1 Additional 2.1.4 Bus to 2.1.3.1 to Bus 2.1.3.2 Customer File Writer 2.4.2.1 Card Tag In/Out Checker 1.2 Disadjust 2.1.5 Bus Additionall 2.1.4.1 result File Writer 2.4.2 Company File Writer 2.4.2.2 Parser 1.1 Transfer Checker 1.3 Traffic Checker 1.4 Customer data Additional 2.1.4.2 Bus disadjust 2.1.5.1 disadjust 2.1.5.2 transfer disadjust 2.1.5.3 File Control 2.4.1 Normal 2.2.2 Reader File Writer 2.4.2.3 Time Setter 2.2.2.1 Money Setter 2.2.3.1 File Disadjust Checker 1.5 Money Checker 1.5 Control 2.3.1 Money information Company File Writer 2.4.2.2 Company File Writer 2.4.2.2 result Control 2.2.1 Tag 2.2.3 2.2.4 Balance Setter 2.2.3.2 Bus Setter 2.2.4.1 Setter 2.2.4.2 2.3.2 Company File Writer 2.4.2.2 NoMoney 2.2.5
Normal 2.1.2 Bus standard 2.1.2.1 Transfer 2.1.3 Standard Fee 2.1.2.2 Control 2.1.1 Additional 2.1.4 Bus to 2.1.3.1 to Bus 2.1.3.2 Customer File Writer 2.4.2.1 Card Tag In/Out Checker 1.2 Disadjust 2.1.5 Bus Additionall 2.1.4.1 result File Writer 2.4.2 Company File Writer 2.4.2.2 Parser 1.1 Transfer Checker 1.3 Traffic Checker 1.4 Customer data Additional 2.1.4.2 Bus disadjust 2.1.5.1 disadjust 2.1.5.2 transfer disadjust 2.1.5.3 File Control 2.4.1 Normal 2.2.2 Reader File Writer 2.4.2.3 Time Setter 2.2.2.1 Money Setter 2.2.3.1 File Disadjust Checker 1.5 Money Checker 1.5 Control 2.3.1 Money information Company File Writer 2.4.2.2 Company File Writer 2.4.2.2 result Control 2.2.1 Tag 2.2.3 2.2.4 Balance Setter 2.2.3.2 Bus Setter 2.2.4.1 Setter 2.2.4.2 2.3.2 Company File Writer 2.4.2.2 NoMoney 2.2.5
hank u