



版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、附錄A(資料性附錄)UML符號說明本部分中使用的UML符號說明如圖A.1 所示。表示元數(shù)據(jù)實體類1類2表示實體間部分與整體的關系,類2包含類 1類 1類 2。1表示類 2包含類 1,一個類 2僅包含一個類 1類 11.N類 2表示類 2包含類 1,一個類 2可包含一個或多個類 1。類 10.N類 2表示類 2包含類 1,一個類 2可包含 0個或多個類 1。類 1類 20.1表示類 2包含類 1,一個類 2可包含 0個或 1個類 1。圖 A.1 UML符號說明附錄B(資料性附錄)物體描述方法示例B.1XML描述方法示例以下代碼是按照本部分中規(guī)定的內(nèi)容,利用XML描述一個智能門鎖例子。<?x
2、ml version="1.0" encoding="UTF-8" ?><ASAC><Attribute><Identification><ThingID>smartlock20161209</ThingID><ThingName>智能門鎖 </ThingName><ThingType> 智能門鎖 </ThingType><Keywords>遠程開門 </Keywords></Identification>
3、<Characteristic><CoreFunction> 控制門開關 </CoreFunction><Appearance> 好看 </Appearance><Evironment></Evironment><Production><ProducerName>xx 智能 </ProducerName><Model>smart-lock-001</Model><ProduceTime>2015-01-01</ProduceTime&
4、gt;<ValidTime>2018-12-31</ValidTime><Comment></Comment></Production><Environment> 家庭 </Environment></Characteristic></Attribute><State><Working><ResourceConsuming>小 </ResourceConsuming></Working><Location><N
5、etworkLocation><IPAddress><IP></IP><UserName></UserName><Password></Password></IPAddress><MacAddress></MacAddress><OtherAddress></OtherAddress></NetworkLocation><GeoLocation><Country> 中國 </Country><
6、Province> 北京市 </Province><City> 北京市 </City><DetailLocation></DetailLocation><Longitude></Longitude><Latitude></Latitude><Altitude></Altitude><County> 海淀區(qū) </County><Community>創(chuàng)新院 </Community></GeoLocation&
7、gt;<TimeReference></TimeReference></Location></State><Action><Interface><InterfaceParameter><ParameterID>value</ParameterID><ParameterType>enumstring</ParameterType><ParameterComment>開關的值 </ParameterComment><Value>ON
8、,OFF</Value><ValueComment>ON代表開, OFF代表關 </ValueComment></InterfaceParameter><InterfaceID>switch</InterfaceID><InterfaceName> 開關控制 </InterfaceName><InterfaceDirection>down</InterfaceDirection></Interface><Interface><InterfaceP
9、arameter><ParameterID>outtime</ParameterID><ParameterType>int</ParameterType><ParameterComment>失效時間 </ParameterComment><Value>0255</Value><ValueComment>0255*255 分鐘 </ValueComment></InterfaceParameter><InterfaceParameter><P
10、arameterID>outcount</ParameterID><ParameterType>int</ParameterType><ParameterComment>失效次數(shù) </ParameterComment><Value>0255</Value><ValueComment>密碼失效次數(shù)</ValueComment></InterfaceParameter><InterfaceParameter><ParameterID>password
11、</ParameterID><ParameterType>string</ParameterType><ParameterComment>密碼 </ParameterComment><Value>00</Value><ValueComment>添加的數(shù)字6 位密碼 </ValueComment></InterfaceParameter><InterfaceResult><ResultID>result</ResultID><Resul
12、tType>enumstring</ResultType><ResultComment>成功失敗 </ResultComment><value></value><valueComment></valueComment><Value>success,fail</Value><ValueComment>success 成功, fail失敗 </ValueComment></InterfaceResult><InterfaceID>add&
13、lt;/InterfaceID><InterfaceName> 添加密碼 </InterfaceName><InterfaceDirection>down-up</InterfaceDirection></Interface><Interface><InterfaceResult><ResultID>result</ResultID><ResultType>enumstring</ResultType><ResultComment>成功失敗 &l
14、t;/ResultComment><value></value><valueComment></valueComment><Value>success,fail</Value><ValueComment>success 成功, fail失敗 </ValueComment></InterfaceResult><InterfaceID>del</InterfaceID><InterfaceName> 刪除密碼 </InterfaceName&g
15、t;<InterfaceDirection>down-up</InterfaceDirection></Interface><Interface><InterfaceResult><ResultID>outtime</ResultID><ResultType>int</ResultType><ResultComment>失效時間 </ResultComment><value></value><valueComment></
16、valueComment><Value>0255</Value><ValueComment>0255*255 分鐘 </ValueComment></InterfaceResult><InterfaceResult><ResultID>outcount</ResultID><ResultType>int</ResultType><ResultComment>失效次數(shù) </ResultComment><value></value&
17、gt;<valueComment></valueComment><Value>0255</Value><ValueComment>密碼失效次數(shù)</ValueComment></InterfaceResult><InterfaceResult><ResultID>password</ResultID><ResultType>string</ResultType><ResultComment>密碼 </ResultComment>&
18、lt;value></value><valueComment></valueComment><Value>00</Value><ValueComment>返回 6 位數(shù)字密碼 </ValueComment></InterfaceResult><InterfaceID>get</InterfaceID><InterfaceName> 獲得密碼 </InterfaceName><InterfaceDirection>down-up<
19、/InterfaceDirection></Interface><Accessibility><Communication><ComMethod>Ethernet</ComMethod><ComProtocol>StandardProtocol</ComProtocol></Communication><Administration><ContactAddress></ContactAddress><ContactComment></Con
20、tactComment><LegalConstraints></LegalConstraints><SecurityConstraints>private</SecurityConstraints></Administration></Accessibility></Action><Capability><Function><FunctionID>switch</FunctionID><FunctionName> 開關控制 </Functi
21、onName><FunctionEffect>開關控制 </FunctionEffect><FunctionRelate><InterfaceID>switch</InterfaceID></FunctionRelate></Function><Function><FunctionID>add</FunctionID><FunctionName> 添加密碼 </FunctionName><FunctionEffect>添加密碼 <
22、;/FunctionEffect><FunctionRelate><InterfaceID>add</InterfaceID></FunctionRelate></Function><Function><FunctionID>del</FunctionID><FunctionName> 刪除密碼 </FunctionName><FunctionEffect>刪除密碼 </FunctionEffect><FunctionRelate>&
23、lt;InterfaceID>del</InterfaceID></FunctionRelate></Function><Function><FunctionID>get</FunctionID><FunctionName> 獲得密碼 </FunctionName><FunctionEffect>獲得密碼 </FunctionEffect><FunctionRelate><InterfaceID>get</InterfaceID>&l
24、t;/FunctionRelate></Function><Data><DataID></DataID><DataType></DataType><DataEffect></DataEffect><DataRelate><InterfaceID></InterfaceID></DataRelate></Data></Capability></ASAC>B.2JSON描述方法示例以下代碼表達的內(nèi)容同附錄A,切換成
25、JSON語言描述一個智能門鎖;"ASAC": "Attribute": "Identification": "ThingID": "smartlock20161209","ThingName": "智能門鎖 ","ThingType": ""Keywords": "智能門鎖遠程開門 "","Characteristic": "CoreFunctio
26、n": "控制門開關 ","Appearance": "好看 ","Evironment": "","Production": "ProducerName": "xx智能 ","Model": "smart-lock-001","ProduceTime": "2015-01-01","ValidTime": "2018
27、-12-31","Comment": "","Environment": "家庭 ","State": "Working": "UsingState": ,"FaultState": ,"ResourceConsuming": "小 ","Location": "NetworkLocation": "IPAddress": &q
28、uot;IP": "","UserName": "","Password": "","MacAddress": "","OtherAddress": "","GeoLocation": "Country": ""Province": ""City": "中國 ",北京市北京市 "
29、,","DetailLocation": "","Longitude": "","Latitude": "","Altitude": "","County": ""Community": "海淀區(qū) ",創(chuàng)新院","TimeReference": "","Action": "Int
30、erface": "InterfaceParameter": "ParameterID": "value","ParameterType": "enumstring","ParameterComment": "開關的值","Value": "ON,OFF","ValueComment": "ON代表開,OFF代表關","InterfaceResult&quo
31、t;: ,"InterfaceID": "switch","InterfaceName": "開關控制","InterfaceDirection": "down","InterfaceParameter": "ParameterID": "outtime","ParameterType": "int","ParameterComment": "失效
32、時間","Value": "0255","ValueComment": "0255*255分鐘 ","ParameterID": "outcount","ParameterType": "int","ParameterComment": "失效次數(shù)","Value": "0255","ValueComment": "密
33、碼失效次數(shù)","ParameterID": "password","ParameterType": "string","ParameterComment": "密碼 ","Value": "00","ValueComment": "添加的數(shù)字6位密碼","InterfaceResult": "ResultID": "result"
34、;,"ResultType": "enumstring","ResultComment": "成功失敗","value": "","valueComment": "","Value": "success,fail","ValueComment": "success成功,fail失敗 ","InterfaceID": "add&q
35、uot;,"InterfaceName": "添加密碼","InterfaceDirection": "down-up","InterfaceParameter": ,"InterfaceResult": "ResultID": "result","ResultType": "enumstring","ResultComment": "成功失敗","
36、;value": "","valueComment": "","Value": "success,fail","ValueComment": "success成功,fail失敗 ","InterfaceID": "del","InterfaceName": "刪除密碼","InterfaceDirection": "down-up&quo
37、t;,"InterfaceParameter": ,"InterfaceResult": "ResultID": "outtime","ResultType": "int","ResultComment": "失效時間","value": "","valueComment": "","Value": "0255",&q
38、uot;ValueComment": "0255*255分鐘 ","ResultID": "outcount","ResultType": "int","ResultComment": "失效次數(shù)","value": "","valueComment": "","Value": "0255","ValueComment
39、": "密碼失效次數(shù)","ResultID": "password","ResultType": "string","ResultComment": "密碼 ","value": "","valueComment": "","Value": "00","ValueComment": "返回6 位數(shù)字密碼","InterfaceID": "get","InterfaceName": "獲得密碼","InterfaceDirection": "down-up","Accessibility": "Communication": "ComMeth
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 哈爾濱醫(yī)科大學《書畫裝裱》2023-2024學年第二學期期末試卷
- 廣東工程職業(yè)技術學院《工程招投標與概預算》2023-2024學年第二學期期末試卷
- 江蘇航運職業(yè)技術學院《中學語文教學設計與技能訓練(二)》2023-2024學年第二學期期末試卷
- 黑龍江司法警官職業(yè)學院《模擬電子技術課程設計》2023-2024學年第二學期期末試卷
- 廣東司法警官職業(yè)學院《數(shù)字特效合成》2023-2024學年第二學期期末試卷
- 天津工藝美術職業(yè)學院《衛(wèi)生檢驗綜合技術》2023-2024學年第二學期期末試卷
- 東莞職業(yè)技術學院《計算機與操作系統(tǒng)》2023-2024學年第二學期期末試卷
- 武漢工程科技學院《外國文學名篇》2023-2024學年第二學期期末試卷
- 2025三年級湘教版語文下學期期末知識點歸納復習周末練習單
- PROMIS-評分量表-使用版
- 軟壓光機計算說明
- 森林防火安全責任書(施工隊用)
- 《汽車性能評價與選購》課程設計
- 35kV絕緣導線門型直線桿
- 水庫應急搶險與典型案例分析
- 49式武當太極劍動作方位
- 工程成本分析報告(新)
- 國際學術會議海報模板16-academic conference poster model
- 經(jīng)典誦讀比賽評分標準【精選文檔】
- 高值耗材參考目錄
- 步兵戰(zhàn)斗動作
評論
0/150
提交評論