本發明(ming)涉及(ji)一(yi)種統(tong)計(ji)技術,尤其涉及(ji)一(yi)種事件統(tong)計(ji)方法、裝置(zhi)、設備及(ji)存儲介質。
背景技術:
結構化(hua)事(shi)件(jian)指的(de)(de)是(shi)由兩個(ge)或者兩個(ge)以上的(de)(de)事(shi)件(jian)組合(he)而成的(de)(de)一個(ge)事(shi)件(jian)組合(he),對結構化(hua)事(shi)件(jian)進行統計能夠很(hen)好(hao)的(de)(de)掌握用戶(hu)(hu)對于(yu)當(dang)前應用的(de)(de)使用頻(pin)率,進而能夠獲(huo)取到用戶(hu)(hu)比較感興趣的(de)(de)應用。
現有技術中(zhong)對(dui)結(jie)構(gou)化事(shi)(shi)(shi)(shi)件(jian)(jian)的(de)統(tong)計(ji)方法為先對(dui)需要進行(xing)統(tong)計(ji)的(de)單(dan)個(ge)(ge)事(shi)(shi)(shi)(shi)件(jian)(jian)所對(dui)應(ying)的(de)代碼(ma)進行(xing)更改,進而實現針(zhen)對(dui)單(dan)個(ge)(ge)事(shi)(shi)(shi)(shi)件(jian)(jian)的(de)統(tong)計(ji),再將上(shang)述單(dan)個(ge)(ge)事(shi)(shi)(shi)(shi)件(jian)(jian)的(de)統(tong)計(ji)結(jie)果傳給(gei)下一個(ge)(ge)結(jie)構(gou)化事(shi)(shi)(shi)(shi)件(jian)(jian)中(zhong)的(de)單(dan)個(ge)(ge)事(shi)(shi)(shi)(shi)件(jian)(jian),并對(dui)下一個(ge)(ge)結(jie)構(gou)化事(shi)(shi)(shi)(shi)件(jian)(jian)中(zhong)的(de)單(dan)個(ge)(ge)事(shi)(shi)(shi)(shi)件(jian)(jian)所對(dui)應(ying)的(de)代碼(ma)進行(xing)更改,進而實現針(zhen)對(dui)下一個(ge)(ge)結(jie)構(gou)化事(shi)(shi)(shi)(shi)件(jian)(jian)中(zhong)的(de)單(dan)個(ge)(ge)事(shi)(shi)(shi)(shi)件(jian)(jian)的(de)統(tong)計(ji),以此類推,直到結(jie)構(gou)化事(shi)(shi)(shi)(shi)件(jian)(jian)統(tong)計(ji)結(jie)束(shu)。
現有技術存(cun)在(zai)的(de)(de)問題:由于對(dui)結構化(hua)事(shi)件進行統(tong)計需要(yao)改變(bian)單個(ge)事(shi)件對(dui)應的(de)(de)代(dai)碼(ma)(ma),也就是改動原有代(dai)碼(ma)(ma),因此(ci)很容易影響原有代(dai)碼(ma)(ma),侵入(ru)式(shi)非常(chang)強,也很容易將統(tong)計代(dai)碼(ma)(ma)和業務代(dai)碼(ma)(ma)混到一起,不容易區(qu)分(fen),耦合性(xing)非常(chang)高。
技術實現要素:
本發明實施例提供一(yi)種事件統(tong)計(ji)方法、裝置、設備及存(cun)儲介質,能夠提高(gao)結(jie)構化事件統(tong)計(ji)的效率,避(bi)免了對(dui)原有(you)代碼的影響。
第一方(fang)面,本發明實施例提供了(le)一種事件(jian)統計方(fang)法,包括:
根據(ju)結(jie)構化(hua)事(shi)件(jian)之間的(de)關系建立結(jie)構化(hua)事(shi)件(jian)列表(biao),其中(zhong),所(suo)述結(jie)構化(hua)事(shi)件(jian)包括至少兩個單一事(shi)件(jian);
基于(yu)所述(shu)結(jie)構化(hua)(hua)事(shi)(shi)件(jian)中(zhong)每個單(dan)一(yi)事(shi)(shi)件(jian)的觸發(fa)情況,更新所述(shu)結(jie)構化(hua)(hua)事(shi)(shi)件(jian)列表中(zhong)對應單(dan)一(yi)事(shi)(shi)件(jian)的觸發(fa)狀態(tai);
根據所(suo)述(shu)結構(gou)化事(shi)件(jian)列表中單一(yi)事(shi)件(jian)的觸發狀態(tai)確定所(suo)述(shu)結構(gou)化事(shi)件(jian)的統計結果。
進一步的,所述觸(chu)發狀(zhuang)態(tai)(tai)包括(kuo)已(yi)觸(chu)發狀(zhuang)態(tai)(tai)和未觸(chu)發狀(zhuang)態(tai)(tai);
在每(mei)次統計所述結(jie)構(gou)化事件之前,還包(bao)括:
初(chu)始化所(suo)述(shu)結構化事件(jian)列表中每個單一事件(jian)的觸發(fa)狀態為未觸發(fa)狀態;
基于所述結(jie)構化(hua)事(shi)件中每(mei)個單一(yi)事(shi)件的觸(chu)發情(qing)況(kuang),更新所述結(jie)構化(hua)事(shi)件列表(biao)中對應單一(yi)事(shi)件的觸(chu)發狀態,包括(kuo):
根(gen)據當(dang)前單(dan)一(yi)事件(jian)的觸發(fa)(fa)情況,判斷當(dang)前觸發(fa)(fa)的單(dan)一(yi)事件(jian)是否(fou)符合所述結構化事件(jian)列表中事件(jian)的觸發(fa)(fa)順序;
若是,則(ze)將所(suo)(suo)述(shu)結(jie)構(gou)化(hua)事件(jian)(jian)列表中對(dui)應當前(qian)檢測到的單一事件(jian)(jian)的觸(chu)(chu)發(fa)(fa)狀(zhuang)態(tai)更(geng)新為已觸(chu)(chu)發(fa)(fa)狀(zhuang)態(tai);否則(ze),將所(suo)(suo)述(shu)結(jie)構(gou)化(hua)事件(jian)(jian)列表中每個(ge)單一事件(jian)(jian)的觸(chu)(chu)發(fa)(fa)狀(zhuang)態(tai)重置為未觸(chu)(chu)發(fa)(fa)狀(zhuang)態(tai)。
進一步的(de)(de),所(suo)述根據所(suo)述結構化事(shi)件(jian)列(lie)表中單一事(shi)件(jian)的(de)(de)觸發狀態(tai)確定所(suo)述結構化事(shi)件(jian)的(de)(de)統計(ji)結果,包括:
判斷所述結構化事件列表(biao)中單(dan)一事件的觸發狀(zhuang)態是否全部更新為已(yi)觸發狀(zhuang)態;
若全部更新(xin)為已觸發狀態(tai),則(ze)統計所述結構化(hua)事件的(de)完成次數加(jia)1。
進(jin)一(yi)步的,所(suo)(suo)述若全(quan)部(bu)更新為已觸發狀態,則(ze)統(tong)計所(suo)(suo)述結構化事件的完成次數(shu)加1之后,還包(bao)括:
將所述結構化(hua)事(shi)件(jian)列表中每個單一事(shi)件(jian)的觸發狀態重置(zhi)為未觸發狀態。
第二方面,本發明(ming)實施(shi)例還提供了一(yi)種事件統計(ji)裝置(zhi),該(gai)裝置(zhi)包括(kuo):
列表(biao)建立模塊,用于根據結構化(hua)(hua)事(shi)件(jian)之間的關系(xi)建立結構化(hua)(hua)事(shi)件(jian)列表(biao),其中,所述(shu)結構化(hua)(hua)事(shi)件(jian)包括(kuo)至(zhi)少兩個單一事(shi)件(jian);
更(geng)新模塊,用于(yu)基于(yu)所(suo)述(shu)(shu)結(jie)構化(hua)(hua)事(shi)(shi)件中每個單一事(shi)(shi)件的觸發情(qing)況,更(geng)新所(suo)述(shu)(shu)結(jie)構化(hua)(hua)事(shi)(shi)件列表中對應單一事(shi)(shi)件的觸發狀態(tai);
確定(ding)模塊,用于根據(ju)所述(shu)結構(gou)化(hua)事件列表中單一事件的(de)觸(chu)發狀(zhuang)態(tai)確定(ding)所述(shu)結構(gou)化(hua)事件的(de)統計結果。
進(jin)一步的(de),所述(shu)觸發狀態(tai)包括已觸發狀態(tai)和未觸發狀態(tai);
還包括:
初始化(hua)模塊,用(yong)于在(zai)每(mei)次統計(ji)所(suo)述結(jie)構(gou)化(hua)事件(jian)之前(qian),初始化(hua)所(suo)述結(jie)構(gou)化(hua)事件(jian)列表中(zhong)每(mei)個單(dan)一(yi)事件(jian)的觸(chu)發(fa)狀(zhuang)態為未觸(chu)發(fa)狀(zhuang)態;
所述更新模塊包括:
判(pan)斷(duan)(duan)單(dan)(dan)元,用(yong)于根(gen)據當(dang)(dang)前單(dan)(dan)一(yi)事件(jian)的(de)觸發(fa)(fa)情況,判(pan)斷(duan)(duan)當(dang)(dang)前觸發(fa)(fa)的(de)單(dan)(dan)一(yi)事件(jian)是否(fou)符(fu)合所述結(jie)構化事件(jian)列(lie)表中(zhong)事件(jian)的(de)觸發(fa)(fa)順序(xu);
狀(zhuang)(zhuang)態更(geng)(geng)新單(dan)元,用于若(ruo)是,則將所述結構化事件列表中對應當前檢測(ce)到的單(dan)一(yi)事件的觸發狀(zhuang)(zhuang)態更(geng)(geng)新為已觸發狀(zhuang)(zhuang)態;
重置單(dan)元,用于否則,將所述結(jie)構化事(shi)件列表中每個單(dan)一事(shi)件的觸(chu)發狀(zhuang)態重置為(wei)未觸(chu)發狀(zhuang)態。
進一步(bu)的,所述確定模(mo)塊包括:
判(pan)斷單元(yuan),用(yong)于判(pan)斷所述(shu)結構化事(shi)件(jian)列(lie)表中單一事(shi)件(jian)的觸發狀(zhuang)態(tai)是否全(quan)部更新(xin)為已觸發狀(zhuang)態(tai);
統(tong)計單元(yuan),用于若全部(bu)更新(xin)為已觸(chu)發(fa)狀態(tai),則統(tong)計所述結構化(hua)事件的完成(cheng)次數加1。
進一步的,還包括:
重置單(dan)(dan)元,用于在(zai)所述(shu)(shu)若全部更新(xin)為已觸發狀(zhuang)態(tai),則統(tong)計所述(shu)(shu)結構(gou)化事(shi)件的完成次數加1之后,將所述(shu)(shu)結構(gou)化事(shi)件列表中每(mei)個單(dan)(dan)一事(shi)件的觸發狀(zhuang)態(tai)重置為未觸發狀(zhuang)態(tai)。
第三(san)方面,本發明實(shi)施例(li)還(huan)提供了一(yi)種計算(suan)機設備,包(bao)括存(cun)儲器(qi)、處(chu)理器(qi)及(ji)存(cun)儲在(zai)存(cun)儲器(qi)上并可(ke)在(zai)處(chu)理器(qi)上運行的計算(suan)機程(cheng)序(xu),所(suo)述處(chu)理器(qi)執行所(suo)述程(cheng)序(xu)時實(shi)現如本發明實(shi)施例(li)中任一(yi)所(suo)述的事件統計方法。
第四方(fang)面(mian),本發明(ming)實(shi)施例還提供(gong)了一種(zhong)計(ji)(ji)(ji)算機可讀存儲(chu)介質(zhi),其(qi)上存儲(chu)有計(ji)(ji)(ji)算機程序(xu),該(gai)程序(xu)被處(chu)理器執(zhi)行(xing)時實(shi)現如本發明(ming)實(shi)施例中任一所述的事件統計(ji)(ji)(ji)方(fang)法。
本發(fa)(fa)明實施例通(tong)過根據結(jie)(jie)構(gou)化(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)之(zhi)(zhi)間(jian)的關(guan)系(xi)建立結(jie)(jie)構(gou)化(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)列表(biao),基于(yu)(yu)結(jie)(jie)構(gou)化(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)中每個單(dan)一(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)的觸(chu)發(fa)(fa)情(qing)況,更新(xin)結(jie)(jie)構(gou)化(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)列表(biao)中對(dui)應單(dan)一(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)的觸(chu)發(fa)(fa)狀態(tai),根據結(jie)(jie)構(gou)化(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)列表(biao)中單(dan)一(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)的觸(chu)發(fa)(fa)狀態(tai)確定結(jie)(jie)構(gou)化(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)的統計結(jie)(jie)果,統計過程(cheng)獨立于(yu)(yu)待測程(cheng)序之(zhi)(zhi)外運行,盡(jin)量(liang)避(bi)免介入待測程(cheng)序的代(dai)碼(ma),只對(dui)發(fa)(fa)生的事(shi)件(jian)(jian)(jian)(jian)(jian)進(jin)行檢(jian)測,能夠提(ti)高結(jie)(jie)構(gou)化(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)統計的效率,簡單(dan)方(fang)便(bian)可靠,避(bi)免了對(dui)原(yuan)有代(dai)碼(ma)的影響。
附圖說明
圖1是本發明(ming)實(shi)施例(li)一中(zhong)的一種(zhong)事件統計方法的流程圖;
圖2a是本(ben)發明實施例二中的(de)一種事件統計方法的(de)流程圖;
圖2b是本發(fa)明實施(shi)例(li)二中的結構(gou)化事(shi)件示意(yi)圖;
圖3是本發(fa)明實施例三中的(de)一種事件統計裝置的(de)結構示(shi)意(yi)圖;
圖4是本發(fa)明實(shi)施例四中的(de)一種計算機設備的(de)結構(gou)示意圖。
具體實施方式
下面結合附圖和實施例對本(ben)(ben)(ben)發(fa)(fa)(fa)明作進一步的詳細(xi)說(shuo)(shuo)明。可以理解(jie)的是(shi),此處所描述的具(ju)體實施例僅僅用于解(jie)釋本(ben)(ben)(ben)發(fa)(fa)(fa)明,而(er)非(fei)對本(ben)(ben)(ben)發(fa)(fa)(fa)明的限(xian)定。另(ling)外還需要(yao)說(shuo)(shuo)明的是(shi),為了便(bian)于描述,附圖中僅示出了與(yu)本(ben)(ben)(ben)發(fa)(fa)(fa)明相(xiang)關(guan)的部分而(er)非(fei)全部結構。
實施例一
圖1為本(ben)發(fa)明實(shi)施例(li)一(yi)提(ti)供(gong)的(de)一(yi)種事(shi)(shi)件(jian)(jian)(jian)統(tong)計方法(fa)的(de)流(liu)程圖,本(ben)實(shi)施例(li)可(ke)(ke)(ke)適用(yong)于事(shi)(shi)件(jian)(jian)(jian)統(tong)計的(de)情(qing)況,該(gai)方法(fa)可(ke)(ke)(ke)以由本(ben)發(fa)明實(shi)施例(li)中(zhong)的(de)事(shi)(shi)件(jian)(jian)(jian)統(tong)計裝置(zhi)來執行,該(gai)裝置(zhi)可(ke)(ke)(ke)采用(yong)軟件(jian)(jian)(jian)和(he)/或硬(ying)件(jian)(jian)(jian)的(de)方式實(shi)現,如圖1所示,該(gai)方法(fa)具體包括(kuo)如下步驟(zou):
s110,根據結(jie)構(gou)(gou)化(hua)事(shi)(shi)件之間的關系建立結(jie)構(gou)(gou)化(hua)事(shi)(shi)件列表,其(qi)中,結(jie)構(gou)(gou)化(hua)事(shi)(shi)件包括至少兩個(ge)單(dan)一事(shi)(shi)件。
其(qi)中,所述結(jie)構(gou)化(hua)事(shi)(shi)(shi)件(jian)之(zhi)間(jian)(jian)的(de)(de)關(guan)系指(zhi)的(de)(de)是構(gou)成結(jie)構(gou)化(hua)事(shi)(shi)(shi)件(jian)的(de)(de)單(dan)一(yi)(yi)事(shi)(shi)(shi)件(jian)之(zhi)間(jian)(jian)的(de)(de)關(guan)系,例如可以是,結(jie)構(gou)化(hua)事(shi)(shi)(shi)件(jian)為(wei)用戶先點擊(ji)頁面a(單(dan)一(yi)(yi)事(shi)(shi)(shi)件(jian)a),再點擊(ji)頁面b(單(dan)一(yi)(yi)事(shi)(shi)(shi)件(jian)b),之(zhi)后點擊(ji)頁面c(單(dan)一(yi)(yi)事(shi)(shi)(shi)件(jian)c),結(jie)構(gou)化(hua)事(shi)(shi)(shi)件(jian)之(zhi)間(jian)(jian)的(de)(de)關(guan)系也就是單(dan)一(yi)(yi)事(shi)(shi)(shi)件(jian)a、單(dan)一(yi)(yi)事(shi)(shi)(shi)件(jian)b和單(dan)一(yi)(yi)事(shi)(shi)(shi)件(jian)c之(zhi)間(jian)(jian)的(de)(de)關(guan)系。
其中,結構(gou)(gou)化(hua)事(shi)(shi)件(jian)(jian)列(lie)(lie)表(biao)指的(de)(de)是將(jiang)單一(yi)事(shi)(shi)件(jian)(jian)按照在(zai)結構(gou)(gou)化(hua)事(shi)(shi)件(jian)(jian)中的(de)(de)先后順(shun)序(xu)排(pai)列(lie)(lie)的(de)(de)列(lie)(lie)表(biao)。例如可(ke)以(yi)是,按照在(zai)結構(gou)(gou)化(hua)事(shi)(shi)件(jian)(jian)中的(de)(de)先后順(shun)序(xu),結構(gou)(gou)化(hua)事(shi)(shi)件(jian)(jian)列(lie)(lie)表(biao)中的(de)(de)順(shun)序(xu)為先是單一(yi)事(shi)(shi)件(jian)(jian)a,再(zai)是單一(yi)事(shi)(shi)件(jian)(jian)b,最(zui)后是單一(yi)事(shi)(shi)件(jian)(jian)c。
s120,基于所述結(jie)構化事件(jian)中每個(ge)單(dan)一事件(jian)的(de)觸發(fa)(fa)情況,更新結(jie)構化事件(jian)列表中對(dui)應(ying)單(dan)一事件(jian)的(de)觸發(fa)(fa)狀態。
其(qi)中(zhong),單(dan)一事(shi)(shi)件的觸(chu)(chu)發(fa)情況(kuang)指的是(shi)單(dan)一事(shi)(shi)件的發(fa)生情況(kuang),例如可以是(shi),如果用(yong)戶點開(kai)頁面a,則打開(kai)頁面a這一單(dan)一事(shi)(shi)件就被(bei)觸(chu)(chu)發(fa)了。
具體(ti)的(de)(de)(de)(de),根據單(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)件(jian)的(de)(de)(de)(de)觸(chu)發(fa)(fa)情況更(geng)新結構(gou)(gou)化事(shi)件(jian)列(lie)(lie)表中(zhong)(zhong)單(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)件(jian)的(de)(de)(de)(de)觸(chu)發(fa)(fa)狀態,例如(ru)可以是,如(ru)果用戶(hu)點(dian)(dian)開(kai)頁面(mian)(mian)a,則(ze)(ze)更(geng)新結構(gou)(gou)化事(shi)件(jian)列(lie)(lie)表中(zhong)(zhong)打開(kai)頁面(mian)(mian)a這一(yi)(yi)(yi)(yi)單(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)件(jian)的(de)(de)(de)(de)觸(chu)發(fa)(fa)狀態,如(ru)果用戶(hu)接下來點(dian)(dian)開(kai)頁面(mian)(mian)b,若打開(kai)頁面(mian)(mian)b為結構(gou)(gou)化事(shi)件(jian)列(lie)(lie)表中(zhong)(zhong)打開(kai)頁面(mian)(mian)a這一(yi)(yi)(yi)(yi)單(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)件(jian)之后(hou)的(de)(de)(de)(de)下一(yi)(yi)(yi)(yi)個單(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)件(jian),則(ze)(ze)更(geng)新結構(gou)(gou)化事(shi)件(jian)列(lie)(lie)表中(zhong)(zhong)打開(kai)頁面(mian)(mian)b這一(yi)(yi)(yi)(yi)單(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)件(jian)的(de)(de)(de)(de)觸(chu)發(fa)(fa)狀態。
s130,根據結構(gou)化事(shi)件列表中單一事(shi)件的(de)觸發狀態確定結構(gou)化事(shi)件的(de)統計結果(guo)。
具體(ti)的(de)(de),若結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)列表(biao)中(zhong)(zhong)單(dan)一(yi)(yi)事件(jian)(jian)(jian)的(de)(de)觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai)均(jun)為(wei)(wei)已(yi)觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai),則(ze)確定結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)發(fa)(fa)生了(le)1次(ci),將(jiang)結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)發(fa)(fa)生的(de)(de)次(ci)數(shu)進(jin)行記(ji)錄(lu),并(bing)將(jiang)結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)列表(biao)中(zhong)(zhong)單(dan)一(yi)(yi)事件(jian)(jian)(jian)的(de)(de)觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai)重置為(wei)(wei)未觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai),繼續(xu)根據單(dan)一(yi)(yi)事件(jian)(jian)(jian)的(de)(de)觸(chu)發(fa)(fa)情況(kuang),更新(xin)結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)列表(biao)中(zhong)(zhong)對(dui)應(ying)單(dan)一(yi)(yi)事件(jian)(jian)(jian)的(de)(de)觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai),直(zhi)至結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)列表(biao)中(zhong)(zhong)單(dan)一(yi)(yi)事件(jian)(jian)(jian)的(de)(de)觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai)均(jun)為(wei)(wei)已(yi)觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai),則(ze)確定結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)發(fa)(fa)生了(le)2次(ci),將(jiang)結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)發(fa)(fa)生的(de)(de)次(ci)數(shu)進(jin)行記(ji)錄(lu),并(bing)將(jiang)結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)列表(biao)中(zhong)(zhong)單(dan)一(yi)(yi)事件(jian)(jian)(jian)的(de)(de)觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai)重置為(wei)(wei)未觸(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai),重復執行上述步驟,進(jin)而(er)實現(xian)對(dui)結(jie)(jie)構(gou)化(hua)(hua)(hua)事件(jian)(jian)(jian)的(de)(de)統計(ji),獲取統計(ji)結(jie)(jie)果。
本發明實施例的(de)(de)(de)技術(shu)方案,通過根據結(jie)(jie)構化(hua)事(shi)(shi)件(jian)之(zhi)(zhi)間的(de)(de)(de)關系建立結(jie)(jie)構化(hua)事(shi)(shi)件(jian)列表(biao),基于所述結(jie)(jie)構化(hua)事(shi)(shi)件(jian)中(zhong)每個單一事(shi)(shi)件(jian)的(de)(de)(de)觸發情況,更新結(jie)(jie)構化(hua)事(shi)(shi)件(jian)列表(biao)中(zhong)對(dui)應(ying)單一事(shi)(shi)件(jian)的(de)(de)(de)觸發狀態(tai),根據結(jie)(jie)構化(hua)事(shi)(shi)件(jian)列表(biao)中(zhong)單一事(shi)(shi)件(jian)的(de)(de)(de)觸發狀態(tai)確(que)定結(jie)(jie)構化(hua)事(shi)(shi)件(jian)的(de)(de)(de)統計結(jie)(jie)果,統計過程(cheng)獨立于待(dai)測程(cheng)序之(zhi)(zhi)外運(yun)行,盡量避(bi)免介入待(dai)測程(cheng)序的(de)(de)(de)代碼,只對(dui)發生的(de)(de)(de)事(shi)(shi)件(jian)進行檢測,能夠提(ti)高結(jie)(jie)構化(hua)事(shi)(shi)件(jian)統計的(de)(de)(de)效率,簡單方便可靠,避(bi)免了對(dui)原有代碼的(de)(de)(de)影響。
實施例二
圖2a為(wei)本發(fa)(fa)(fa)(fa)明實(shi)施例二(er)中(zhong)的(de)一(yi)(yi)種(zhong)事(shi)(shi)(shi)(shi)件統計方法的(de)流程圖,本實(shi)施例以上述(shu)(shu)實(shi)施例為(wei)基礎(chu)進行優(you)化(hua)(hua),在本實(shi)施例中(zhong),觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態包(bao)括(kuo)已觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態和(he)未觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態;在每次統計所(suo)述(shu)(shu)結(jie)(jie)構(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)件之前(qian),還包(bao)括(kuo):初始(shi)化(hua)(hua)所(suo)述(shu)(shu)結(jie)(jie)構(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)件列(lie)表(biao)(biao)中(zhong)每個單(dan)(dan)一(yi)(yi)事(shi)(shi)(shi)(shi)件的(de)觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態為(wei)未觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態;基于所(suo)述(shu)(shu)結(jie)(jie)構(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)件中(zhong)每個單(dan)(dan)一(yi)(yi)事(shi)(shi)(shi)(shi)件的(de)觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)情(qing)況,更新所(suo)述(shu)(shu)結(jie)(jie)構(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)件列(lie)表(biao)(biao)中(zhong)對應單(dan)(dan)一(yi)(yi)事(shi)(shi)(shi)(shi)件的(de)觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態,包(bao)括(kuo):根據當(dang)前(qian)單(dan)(dan)一(yi)(yi)事(shi)(shi)(shi)(shi)件的(de)觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)情(qing)況,判斷當(dang)前(qian)觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)的(de)單(dan)(dan)一(yi)(yi)事(shi)(shi)(shi)(shi)件是(shi)否符合結(jie)(jie)構(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)件列(lie)表(biao)(biao)中(zhong)事(shi)(shi)(shi)(shi)件的(de)觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)順序;若(ruo)是(shi),則將結(jie)(jie)構(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)件列(lie)表(biao)(biao)中(zhong)對應當(dang)前(qian)檢測到的(de)單(dan)(dan)一(yi)(yi)事(shi)(shi)(shi)(shi)件的(de)觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態更新為(wei)已觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態;否則,將結(jie)(jie)構(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)件列(lie)表(biao)(biao)中(zhong)每個單(dan)(dan)一(yi)(yi)事(shi)(shi)(shi)(shi)件的(de)觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態重置(zhi)為(wei)未觸(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)態。
由此(ci),判斷當前檢(jian)測到的(de)單一(yi)事件是(shi)否是(shi)結(jie)構化(hua)事件列(lie)表中(zhong)排序最靠前的(de)未觸發狀態下的(de)單一(yi)事件,這樣(yang)可以(yi)防止出現統(tong)(tong)計出來(lai)的(de)結(jie)構化(hua)事件的(de)發生(sheng)次數(shu)與實(shi)際不符的(de)情況。能夠達到更準確的(de)實(shi)現對結(jie)構化(hua)事件的(de)統(tong)(tong)計。
相應的,本實(shi)施例提(ti)供的方法具體包(bao)括如(ru)下步驟(zou):
s210,根據結構化事件(jian)之(zhi)間的關系建立結構化事件(jian)列表,其中,所述結構化事件(jian)包括至少兩個(ge)單(dan)一(yi)事件(jian)。
s220,初始(shi)化所述結構化事(shi)件列(lie)表中每個單一(yi)事(shi)件的觸發狀態(tai)為未(wei)觸發狀態(tai)。
具體的(de),將結構化事(shi)(shi)件(jian)列表中(zhong)的(de)所(suo)有的(de)單一事(shi)(shi)件(jian)的(de)觸發(fa)(fa)狀態(tai)均設置(zhi)為(wei)未觸發(fa)(fa)狀態(tai),以便(bian)后續(xu)根據用戶的(de)操作進行統計。
s230,根(gen)據當(dang)前單(dan)一事件(jian)的觸(chu)(chu)發情(qing)況,判斷當(dang)前觸(chu)(chu)發的單(dan)一事件(jian)是否符(fu)合所(suo)述結構化事件(jian)列表中事件(jian)的觸(chu)(chu)發順序,若是,則(ze)執(zhi)行(xing)s240,若否,則(ze)執(zhi)行(xing)s250。
具體的(de)(de)(de)(de),結(jie)(jie)構(gou)(gou)(gou)化(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)是(shi)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian)按照一(yi)(yi)(yi)(yi)定的(de)(de)(de)(de)順(shun)序(xu)排(pai)(pai)列(lie)(lie)構(gou)(gou)(gou)建的(de)(de)(de)(de)組合型事(shi)(shi)(shi)(shi)(shi)件(jian),若(ruo)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian)是(shi)結(jie)(jie)構(gou)(gou)(gou)化(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)列(lie)(lie)表中排(pai)(pai)序(xu)最(zui)(zui)靠(kao)前(qian)(qian)(qian)的(de)(de)(de)(de)未(wei)觸(chu)發(fa)狀(zhuang)態(tai)下(xia)的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian),則(ze)說(shuo)明當前(qian)(qian)(qian)觸(chu)發(fa)的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian)是(shi)構(gou)(gou)(gou)成(cheng)結(jie)(jie)構(gou)(gou)(gou)化(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian),且當前(qian)(qian)(qian)觸(chu)發(fa)的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian)滿足構(gou)(gou)(gou)成(cheng)結(jie)(jie)構(gou)(gou)(gou)化(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)的(de)(de)(de)(de)排(pai)(pai)列(lie)(lie)順(shun)序(xu)。若(ruo)當前(qian)(qian)(qian)觸(chu)發(fa)的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian)不(bu)是(shi)結(jie)(jie)構(gou)(gou)(gou)化(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)列(lie)(lie)表中排(pai)(pai)序(xu)最(zui)(zui)靠(kao)前(qian)(qian)(qian)的(de)(de)(de)(de)未(wei)觸(chu)發(fa)狀(zhuang)態(tai)下(xia)的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian),則(ze)說(shuo)明當前(qian)(qian)(qian)觸(chu)發(fa)的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian)不(bu)是(shi)構(gou)(gou)(gou)成(cheng)結(jie)(jie)構(gou)(gou)(gou)化(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian)或者當前(qian)(qian)(qian)檢(jian)測到的(de)(de)(de)(de)單(dan)(dan)(dan)(dan)(dan)一(yi)(yi)(yi)(yi)事(shi)(shi)(shi)(shi)(shi)件(jian)不(bu)滿足構(gou)(gou)(gou)成(cheng)結(jie)(jie)構(gou)(gou)(gou)化(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)的(de)(de)(de)(de)排(pai)(pai)列(lie)(lie)順(shun)序(xu)。
s240,將所述結(jie)構化事件列表中(zhong)對應(ying)當前檢測到的單一事件的觸發(fa)狀態(tai)更(geng)新為已(yi)觸發(fa)狀態(tai)。
s250,將(jiang)所述結構(gou)化事件(jian)列表中每個(ge)單一事件(jian)的觸發狀(zhuang)態重置為(wei)未觸發狀(zhuang)態。
具體的(de),將結構化事件列(lie)表中(zhong)每個單(dan)一(yi)事件的(de)觸發狀態全部重置為(wei)未觸發狀態,以便于根(gen)據用戶的(de)操作執行下一(yi)輪(lun)統(tong)計。
s260,根據所述(shu)結(jie)構(gou)化事(shi)(shi)件列表中單一(yi)事(shi)(shi)件的觸(chu)發狀態確定所述(shu)結(jie)構(gou)化事(shi)(shi)件的統(tong)計結(jie)果。
可選的,所(suo)述(shu)(shu)根(gen)據(ju)所(suo)述(shu)(shu)結構(gou)化事(shi)件(jian)(jian)列表中單(dan)一事(shi)件(jian)(jian)的觸發(fa)狀態(tai)確定所(suo)述(shu)(shu)結構(gou)化事(shi)件(jian)(jian)的統計結果,包括:
判斷所(suo)述結(jie)構化事(shi)(shi)件(jian)(jian)列表中單一事(shi)(shi)件(jian)(jian)的觸(chu)發(fa)狀(zhuang)態是否全部更(geng)新(xin)為已觸(chu)發(fa)狀(zhuang)態;
若全部(bu)更新為已觸發(fa)狀態,則(ze)統(tong)計(ji)所(suo)述(shu)結構化事件(jian)的完成次數加(jia)1。
具體的,若結構化事(shi)件(jian)的觸(chu)發狀態均為(wei)(wei)已(yi)觸(chu)發狀態,則統(tong)計結構化事(shi)件(jian)的完成(cheng)(cheng)次數(shu)加1。初始化統(tong)計結構化事(shi)件(jian)的完成(cheng)(cheng)次數(shu)為(wei)(wei)0。
可選的(de),所述若全部(bu)更新為已觸發狀態,則統計所述結構(gou)化事件的(de)完成次數加(jia)1之后,還包括:
將(jiang)所述結構化事(shi)件(jian)列表中每個單一事(shi)件(jian)的觸(chu)(chu)發狀態重置為未觸(chu)(chu)發狀態。
具(ju)體的(de),在(zai)統(tong)計結構化事(shi)件(jian)的(de)完成次數加1之(zhi)后(hou),將結構化事(shi)件(jian)列(lie)表中(zhong)單一事(shi)件(jian)的(de)觸發狀態重置為初始狀態,開始新(xin)一輪的(de)統(tong)計。
在(zai)一(yi)(yi)(yi)(yi)(yi)個(ge)具體的(de)(de)(de)例子中(zhong),結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)統(tong)計(ji)(ji)的(de)(de)(de)過程為(wei)(wei):步(bu)驟(zou)(zou)(zou)1:將要(yao)(yao)統(tong)計(ji)(ji)的(de)(de)(de)結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)根據結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)中(zhong)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)之間的(de)(de)(de)關系建立結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)列(lie)表(biao)存(cun)于一(yi)(yi)(yi)(yi)(yi)個(ge)鏈表(biao)中(zhong),每(mei)個(ge)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)有已(yi)(yi)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai)和未觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai)兩種(zhong)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai),需要(yao)(yao)統(tong)計(ji)(ji)的(de)(de)(de)每(mei)個(ge)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)都能(neng)夠接(jie)收上一(yi)(yi)(yi)(yi)(yi)個(ge)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)的(de)(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai);步(bu)驟(zou)(zou)(zou)2:開始(shi)檢(jian)測單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)的(de)(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)情況,接(jie)收到(dao)用戶(hu)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)a,則判斷(duan)用戶(hu)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)的(de)(de)(de)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)a是(shi)(shi)(shi)否符合結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)列(lie)表(biao)中(zhong)的(de)(de)(de)結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)(單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)順序也(ye)要(yao)(yao)一(yi)(yi)(yi)(yi)(yi)致);步(bu)驟(zou)(zou)(zou)3:若(ruo)用戶(hu)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)的(de)(de)(de)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)a符合結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)列(lie)表(biao)中(zhong)的(de)(de)(de)結(jie)(jie)構(gou)(gou)(gou)(gou)(gou),則將單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)a的(de)(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai)更新(xin)(xin)為(wei)(wei)已(yi)(yi)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai),若(ruo)用戶(hu)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)的(de)(de)(de)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)a不符合結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)列(lie)表(biao)中(zhong)的(de)(de)(de)結(jie)(jie)構(gou)(gou)(gou)(gou)(gou),則將所(suo)述結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)列(lie)表(biao)中(zhong)所(suo)有單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)的(de)(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai)重置為(wei)(wei)未觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai),重復執(zhi)行(xing)(xing)步(bu)驟(zou)(zou)(zou)2;步(bu)驟(zou)(zou)(zou)4:用戶(hu)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)a后(hou)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)b,判斷(duan)用戶(hu)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)的(de)(de)(de)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)b是(shi)(shi)(shi)否是(shi)(shi)(shi)結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)列(lie)表(biao)中(zhong)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)a下(xia)一(yi)(yi)(yi)(yi)(yi)個(ge)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian),如(ru)果是(shi)(shi)(shi),那么更新(xin)(xin)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)b的(de)(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai)更新(xin)(xin)為(wei)(wei)已(yi)(yi)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai),如(ru)果不是(shi)(shi)(shi),則將所(suo)述結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)列(lie)表(biao)中(zhong)所(suo)有單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)的(de)(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai)重置為(wei)(wei)未觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai),重復執(zhi)行(xing)(xing)步(bu)驟(zou)(zou)(zou)2;步(bu)驟(zou)(zou)(zou)5:判斷(duan)結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)列(lie)表(biao)中(zhong)單(dan)(dan)(dan)一(yi)(yi)(yi)(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)的(de)(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai)是(shi)(shi)(shi)否全部(bu)更新(xin)(xin)為(wei)(wei)已(yi)(yi)觸(chu)(chu)(chu)(chu)(chu)發(fa)(fa)(fa)(fa)狀(zhuang)(zhuang)(zhuang)(zhuang)態(tai)(tai)(tai),如(ru)果是(shi)(shi)(shi),則此結(jie)(jie)構(gou)(gou)(gou)(gou)(gou)化(hua)(hua)(hua)(hua)(hua)(hua)事(shi)件(jian)(jian)(jian)(jian)(jian)(jian)(jian)為(wei)(wei)統(tong)計(ji)(ji)加1;如(ru)果否,重復執(zhi)行(xing)(xing)步(bu)驟(zou)(zou)(zou)3或步(bu)驟(zou)(zou)(zou)4。
在另(ling)一(yi)個(ge)(ge)具(ju)體(ti)的(de)(de)例子中(zhong)(zhong),如(ru)圖2b所示(shi),從(cong)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、b頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)到e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)的(de)(de)路(lu)徑總共有4條,分別為(wei)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-d頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、b頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、b頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-d頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian),如(ru)果這時候要添加一(yi)個(ge)(ge)結(jie)構(gou)(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)來統(tong)計(ji)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)這個(ge)(ge)結(jie)構(gou)(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian),那(nei)么(me)(me)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)結(jie)構(gou)(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)統(tong)計(ji)的(de)(de)過程為(wei):步(bu)(bu)驟(zou)1、將(jiang)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)這個(ge)(ge)結(jie)構(gou)(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)轉化(hua)(hua)為(wei)結(jie)構(gou)(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)列表,初始化(hua)(hua)結(jie)構(gou)(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)列表中(zhong)(zhong)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)的(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai)為(wei)未(wei)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai);步(bu)(bu)驟(zou)2、在a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、b頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、d頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)和e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)軟(ruan)件(jian)(jian)代碼中(zhong)(zhong)設置能夠接(jie)收事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai)的(de)(de)打(da)點接(jie)口;步(bu)(bu)驟(zou)3、用戶(hu)從(cong)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)進去,也就(jiu)是觸(chu)(chu)(chu)(chu)(chu)發(fa)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian),那(nei)么(me)(me)將(jiang)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)的(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai)更新(xin)為(wei)已(yi)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai);步(bu)(bu)驟(zou)4、接(jie)著用戶(hu)從(cong)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)進入c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian),那(nei)么(me)(me)將(jiang)c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)的(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai)更新(xin)為(wei)已(yi)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai);步(bu)(bu)驟(zou)5、若(ruo)(ruo)用戶(hu)從(cong)c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)直接(jie)到e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian),那(nei)么(me)(me)將(jiang)e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)的(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai)更新(xin)為(wei)已(yi)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai),完成了a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)結(jie)構(gou)(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)的(de)(de)統(tong)計(ji);若(ruo)(ruo)用戶(hu)從(cong)c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)到d頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian),由于d頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)不符(fu)合結(jie)構(gou)(gou)化(hua)(hua)事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)-e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian),所以(yi)不會被統(tong)計(ji)到此事(shi)(shi)(shi)(shi)(shi)件(jian)(jian)中(zhong)(zhong),將(jiang)a頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、c頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)、e頁(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)(ye)面(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)(mian)的(de)(de)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai)重置為(wei)未(wei)觸(chu)(chu)(chu)(chu)(chu)發(fa)狀(zhuang)(zhuang)態(tai)(tai)(tai)(tai),重復執(zhi)行步(bu)(bu)驟(zou)3。
本實施例的(de)(de)(de)(de)技術方案,通過初始化(hua)(hua)結構(gou)(gou)化(hua)(hua)事(shi)(shi)件(jian)(jian)(jian)(jian)列(lie)表中(zhong)(zhong)單(dan)一事(shi)(shi)件(jian)(jian)(jian)(jian)的(de)(de)(de)(de)觸發(fa)(fa)(fa)狀(zhuang)態(tai)為未觸發(fa)(fa)(fa)狀(zhuang)態(tai),根據當前(qian)單(dan)一事(shi)(shi)件(jian)(jian)(jian)(jian)的(de)(de)(de)(de)觸發(fa)(fa)(fa)情況(kuang),判斷當前(qian)觸發(fa)(fa)(fa)的(de)(de)(de)(de)單(dan)一事(shi)(shi)件(jian)(jian)(jian)(jian)是否(fou)符(fu)合結構(gou)(gou)化(hua)(hua)事(shi)(shi)件(jian)(jian)(jian)(jian)列(lie)表中(zhong)(zhong)事(shi)(shi)件(jian)(jian)(jian)(jian)的(de)(de)(de)(de)觸發(fa)(fa)(fa)順序(xu);若是,則(ze)(ze)將結構(gou)(gou)化(hua)(hua)事(shi)(shi)件(jian)(jian)(jian)(jian)列(lie)表中(zhong)(zhong)對(dui)應當前(qian)檢(jian)測到的(de)(de)(de)(de)單(dan)一事(shi)(shi)件(jian)(jian)(jian)(jian)的(de)(de)(de)(de)觸發(fa)(fa)(fa)狀(zhuang)態(tai)更新為已觸發(fa)(fa)(fa)狀(zhuang)態(tai);否(fou)則(ze)(ze),將結構(gou)(gou)化(hua)(hua)事(shi)(shi)件(jian)(jian)(jian)(jian)列(lie)表中(zhong)(zhong)每個(ge)單(dan)一事(shi)(shi)件(jian)(jian)(jian)(jian)的(de)(de)(de)(de)觸發(fa)(fa)(fa)狀(zhuang)態(tai)重置為未觸發(fa)(fa)(fa)狀(zhuang)態(tai),避免出現(xian)統(tong)(tong)計出來(lai)的(de)(de)(de)(de)結構(gou)(gou)化(hua)(hua)事(shi)(shi)件(jian)(jian)(jian)(jian)的(de)(de)(de)(de)發(fa)(fa)(fa)生次數與實際不符(fu)的(de)(de)(de)(de)情況(kuang)。統(tong)(tong)計過程(cheng)獨立于待測程(cheng)序(xu)之外運行,盡量避免介(jie)入待測程(cheng)序(xu)的(de)(de)(de)(de)代碼,只對(dui)發(fa)(fa)(fa)生的(de)(de)(de)(de)事(shi)(shi)件(jian)(jian)(jian)(jian)進行檢(jian)測,能夠達到更準確的(de)(de)(de)(de)實現(xian)對(dui)結構(gou)(gou)化(hua)(hua)事(shi)(shi)件(jian)(jian)(jian)(jian)的(de)(de)(de)(de)統(tong)(tong)計。
實施例三
圖(tu)(tu)(tu)3為本發(fa)明實(shi)施例(li)三提供的一種事件(jian)統(tong)計(ji)裝置的結構(gou)示意圖(tu)(tu)(tu)。本實(shi)施例(li)可(ke)適用(yong)于事件(jian)統(tong)計(ji)的情(qing)況,該裝置可(ke)采用(yong)軟(ruan)件(jian)和/或硬(ying)件(jian)的方式實(shi)現,該裝置可(ke)集成在任何提供事件(jian)統(tong)計(ji)功能的設備中(zhong),如(ru)圖(tu)(tu)(tu)3所示,所述(shu)事件(jian)統(tong)計(ji)裝置具體包(bao)括:列表建立模塊(kuai)(kuai)(kuai)310、更新模塊(kuai)(kuai)(kuai)320和確定模塊(kuai)(kuai)(kuai)330。
其(qi)中,列表建立(li)模塊310,用(yong)于(yu)根據結構化事(shi)件(jian)之間的關系(xi)建立(li)結構化事(shi)件(jian)列表,其(qi)中,所述(shu)結構化事(shi)件(jian)包括(kuo)至(zhi)少兩(liang)個(ge)單一事(shi)件(jian);
更(geng)新模塊320,用于(yu)基于(yu)所述結(jie)構(gou)化(hua)事件中(zhong)每個(ge)單一事件的觸發情(qing)況(kuang),更(geng)新所述結(jie)構(gou)化(hua)事件列表中(zhong)對應單一事件的觸發狀態;
確定模塊330,用于根據(ju)所述結(jie)構(gou)化事件(jian)列表中單一事件(jian)的觸發狀態確定所述結(jie)構(gou)化事件(jian)的統計結(jie)果(guo)。
可(ke)選的,所述(shu)觸發(fa)(fa)狀(zhuang)態(tai)包(bao)括已觸發(fa)(fa)狀(zhuang)態(tai)和未觸發(fa)(fa)狀(zhuang)態(tai);
還包括:
初(chu)始化模塊(kuai),用于在每次統計所述結構化事件之(zhi)前(qian),初(chu)始化所述結構化事件列表中每個單(dan)一事件的觸發(fa)狀(zhuang)(zhuang)態(tai)為未觸發(fa)狀(zhuang)(zhuang)態(tai);
所述更新模塊包括:
判(pan)斷單元,用于(yu)根據當前單一事件的觸(chu)(chu)發情況(kuang),判(pan)斷當前觸(chu)(chu)發的單一事件是否符合所述結構化(hua)事件列(lie)表(biao)中事件的觸(chu)(chu)發順序;
狀態(tai)(tai)更新單元,用于若是,則將所述結構化事件列表中對應當前檢測到(dao)的(de)單一(yi)事件的(de)觸(chu)(chu)發(fa)(fa)狀態(tai)(tai)更新為已觸(chu)(chu)發(fa)(fa)狀態(tai)(tai);
重置單元,用于否則,將所(suo)述結構(gou)化事(shi)件列(lie)表中每個單一事(shi)件的觸(chu)發狀態重置為未觸(chu)發狀態。
可(ke)選的,所述確定模(mo)塊包括:
判斷單元,用于判斷所(suo)述結(jie)構化事件列表中單一事件的(de)觸發(fa)狀態是否全部更新為(wei)已觸發(fa)狀態;
統(tong)計單元,用于若全部更新為(wei)已(yi)觸發狀態,則統(tong)計所述(shu)結構化(hua)事(shi)件的完成次數加1。
可選的,還包括:
重(zhong)置單元,用(yong)于在所(suo)(suo)述(shu)若全(quan)部更新為(wei)(wei)已觸(chu)發狀(zhuang)(zhuang)態(tai),則(ze)統計所(suo)(suo)述(shu)結(jie)構化(hua)事(shi)(shi)件的完成次數加1之后,將(jiang)所(suo)(suo)述(shu)結(jie)構化(hua)事(shi)(shi)件列表中每個單一事(shi)(shi)件的觸(chu)發狀(zhuang)(zhuang)態(tai)重(zhong)置為(wei)(wei)未觸(chu)發狀(zhuang)(zhuang)態(tai)。
本實施例(li)的(de)技術方案,通過根(gen)據結(jie)構(gou)(gou)(gou)化(hua)事(shi)件(jian)(jian)之(zhi)間的(de)關系(xi)建立結(jie)構(gou)(gou)(gou)化(hua)事(shi)件(jian)(jian)列(lie)(lie)表,基于結(jie)構(gou)(gou)(gou)化(hua)事(shi)件(jian)(jian)中每(mei)個(ge)單(dan)一事(shi)件(jian)(jian)的(de)觸(chu)(chu)發(fa)(fa)情況,更新(xin)結(jie)構(gou)(gou)(gou)化(hua)事(shi)件(jian)(jian)列(lie)(lie)表中對(dui)應單(dan)一事(shi)件(jian)(jian)的(de)觸(chu)(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai)(tai),根(gen)據結(jie)構(gou)(gou)(gou)化(hua)事(shi)件(jian)(jian)列(lie)(lie)表中單(dan)一事(shi)件(jian)(jian)的(de)觸(chu)(chu)發(fa)(fa)狀(zhuang)(zhuang)態(tai)(tai)確定結(jie)構(gou)(gou)(gou)化(hua)事(shi)件(jian)(jian)的(de)統計(ji)結(jie)果,統計(ji)過程(cheng)獨立于待測(ce)(ce)程(cheng)序之(zhi)外(wai)運(yun)行(xing),盡(jin)量避免(mian)介入待測(ce)(ce)程(cheng)序的(de)代碼,只對(dui)發(fa)(fa)生的(de)事(shi)件(jian)(jian)進行(xing)檢(jian)測(ce)(ce),能夠提高結(jie)構(gou)(gou)(gou)化(hua)事(shi)件(jian)(jian)統計(ji)的(de)效(xiao)率,簡單(dan)方便可靠,避免(mian)了對(dui)原有代碼的(de)影響。
實施例四
圖(tu)(tu)4為本(ben)發(fa)明(ming)實施例四提供的(de)(de)(de)一種計算機(ji)設(she)備(bei)的(de)(de)(de)結(jie)構示(shi)(shi)意圖(tu)(tu)。圖(tu)(tu)4示(shi)(shi)出了適于用來實現本(ben)發(fa)明(ming)實施方式的(de)(de)(de)示(shi)(shi)例性計算機(ji)設(she)備(bei)12的(de)(de)(de)框圖(tu)(tu)。圖(tu)(tu)4顯示(shi)(shi)的(de)(de)(de)計算機(ji)設(she)備(bei)12僅(jin)僅(jin)是一個示(shi)(shi)例,不應對本(ben)發(fa)明(ming)實施例的(de)(de)(de)功(gong)能和(he)使(shi)用范圍帶來任何限制(zhi)。
如圖4所示(shi),計算機(ji)(ji)設備(bei)12以通用計算設備(bei)的(de)形式表現。計算機(ji)(ji)設備(bei)12的(de)組(zu)件(jian)可(ke)以包括但不限(xian)于:一個(ge)或(huo)者(zhe)多個(ge)處(chu)理器(qi)(qi)或(huo)者(zhe)處(chu)理單(dan)元16,系統存儲(chu)器(qi)(qi)28,連接(jie)不同系統組(zu)件(jian)(包括系統存儲(chu)器(qi)(qi)28和(he)處(chu)理單(dan)元16)的(de)總線(xian)18。
總(zong)(zong)(zong)線(xian)(xian)(xian)18表示幾類總(zong)(zong)(zong)線(xian)(xian)(xian)結(jie)(jie)構(gou)中(zhong)(zhong)的(de)(de)一(yi)種或(huo)多種,包括(kuo)存儲(chu)(chu)器(qi)(qi)總(zong)(zong)(zong)線(xian)(xian)(xian)或(huo)者存儲(chu)(chu)器(qi)(qi)控制器(qi)(qi),外圍總(zong)(zong)(zong)線(xian)(xian)(xian),圖形加(jia)速端口(kou),處理器(qi)(qi)或(huo)者使用多種總(zong)(zong)(zong)線(xian)(xian)(xian)結(jie)(jie)構(gou)中(zhong)(zhong)的(de)(de)任(ren)意總(zong)(zong)(zong)線(xian)(xian)(xian)結(jie)(jie)構(gou)的(de)(de)局域總(zong)(zong)(zong)線(xian)(xian)(xian)。舉例(li)來說(shuo),這些體(ti)系結(jie)(jie)構(gou)包括(kuo)但不限于工業標準體(ti)系結(jie)(jie)構(gou)(isa)總(zong)(zong)(zong)線(xian)(xian)(xian),微通(tong)道體(ti)系結(jie)(jie)構(gou)(mac)總(zong)(zong)(zong)線(xian)(xian)(xian),增(zeng)強型isa總(zong)(zong)(zong)線(xian)(xian)(xian)、視頻電子標準協會(vesa)局域總(zong)(zong)(zong)線(xian)(xian)(xian)以及外圍組件互連(pci)總(zong)(zong)(zong)線(xian)(xian)(xian)。
計算(suan)(suan)機設備12典型地包括(kuo)多(duo)種(zhong)計算(suan)(suan)機系統可(ke)(ke)讀介(jie)質(zhi)(zhi)。這些(xie)介(jie)質(zhi)(zhi)可(ke)(ke)以是(shi)任(ren)何能(neng)夠被計算(suan)(suan)機設備12訪問的可(ke)(ke)用介(jie)質(zhi)(zhi),包括(kuo)易失性和非易失性介(jie)質(zhi)(zhi),可(ke)(ke)移動的和不可(ke)(ke)移動的介(jie)質(zhi)(zhi)。
系統存(cun)(cun)(cun)(cun)(cun)儲器(qi)(qi)28可(ke)(ke)(ke)(ke)以包(bao)括(kuo)易失(shi)性存(cun)(cun)(cun)(cun)(cun)儲器(qi)(qi)形式的(de)(de)計(ji)(ji)算機系統可(ke)(ke)(ke)(ke)讀(du)介(jie)質(zhi),例(li)(li)(li)如(ru)隨機存(cun)(cun)(cun)(cun)(cun)取存(cun)(cun)(cun)(cun)(cun)儲器(qi)(qi)(ram)30和/或(huo)高速緩存(cun)(cun)(cun)(cun)(cun)存(cun)(cun)(cun)(cun)(cun)儲器(qi)(qi)32。計(ji)(ji)算機設備12可(ke)(ke)(ke)(ke)以進一步包(bao)括(kuo)其它可(ke)(ke)(ke)(ke)移(yi)(yi)動(dong)(dong)/不可(ke)(ke)(ke)(ke)移(yi)(yi)動(dong)(dong)的(de)(de)、易失(shi)性/非易失(shi)性計(ji)(ji)算機系統存(cun)(cun)(cun)(cun)(cun)儲介(jie)質(zhi)。僅作為舉例(li)(li)(li),存(cun)(cun)(cun)(cun)(cun)儲系統34可(ke)(ke)(ke)(ke)以用于(yu)(yu)讀(du)寫(xie)不可(ke)(ke)(ke)(ke)移(yi)(yi)動(dong)(dong)的(de)(de)、非易失(shi)性磁(ci)介(jie)質(zhi)(圖4未顯示,通常稱為“硬盤(pan)驅動(dong)(dong)器(qi)(qi)”)。盡管圖4中(zhong)未示出,可(ke)(ke)(ke)(ke)以提供用于(yu)(yu)對可(ke)(ke)(ke)(ke)移(yi)(yi)動(dong)(dong)非易失(shi)性磁(ci)盤(pan)(例(li)(li)(li)如(ru)“軟(ruan)盤(pan)”)讀(du)寫(xie)的(de)(de)磁(ci)盤(pan)驅動(dong)(dong)器(qi)(qi),以及對可(ke)(ke)(ke)(ke)移(yi)(yi)動(dong)(dong)非易失(shi)性光盤(pan)(例(li)(li)(li)如(ru)cd-rom,dvd-rom或(huo)者其它光介(jie)質(zhi))讀(du)寫(xie)的(de)(de)光盤(pan)驅動(dong)(dong)器(qi)(qi)。在(zai)這些情況下,每(mei)個驅動(dong)(dong)器(qi)(qi)可(ke)(ke)(ke)(ke)以通過一個或(huo)者多個數據介(jie)質(zhi)接口(kou)與總(zong)線(xian)18相連。存(cun)(cun)(cun)(cun)(cun)儲器(qi)(qi)28可(ke)(ke)(ke)(ke)以包(bao)括(kuo)至少一個程(cheng)序(xu)產品,該程(cheng)序(xu)產品具(ju)有一組(例(li)(li)(li)如(ru)至少一個)程(cheng)序(xu)模塊,這些程(cheng)序(xu)模塊被配置以執行本發明各實施例(li)(li)(li)的(de)(de)功能。
具(ju)有一(yi)組(至少一(yi)個(ge))程序模(mo)塊42的(de)程序/實用工具(ju)40,可以存儲在(zai)例如存儲器(qi)28中,這樣(yang)的(de)程序模(mo)塊42包括——但不限于——操作系(xi)統(tong)、一(yi)個(ge)或者多個(ge)應用程序、其(qi)它程序模(mo)塊以及程序數據,這些(xie)示例中的(de)每一(yi)個(ge)或某種組合(he)中可能包括網(wang)絡(luo)環境(jing)的(de)實現(xian)。程序模(mo)塊42通常(chang)執行本發明所(suo)描述(shu)的(de)實施例中的(de)功能和/或方法(fa)。
計算(suan)機設(she)(she)備12也可以(yi)(yi)與(yu)一個或(huo)(huo)(huo)(huo)多(duo)(duo)個外部設(she)(she)備14(例(li)如鍵盤(pan)、指向(xiang)設(she)(she)備、顯示(shi)(shi)器(qi)24等(deng))通(tong)信(xin)(xin),還(huan)可與(yu)一個或(huo)(huo)(huo)(huo)者多(duo)(duo)個使得用(yong)戶能與(yu)該(gai)計算(suan)機設(she)(she)備12交互(hu)的設(she)(she)備通(tong)信(xin)(xin),和(he)(he)/或(huo)(huo)(huo)(huo)與(yu)使得該(gai)計算(suan)機設(she)(she)備12能與(yu)一個或(huo)(huo)(huo)(huo)多(duo)(duo)個其它計算(suan)設(she)(she)備進行(xing)通(tong)信(xin)(xin)的任(ren)何設(she)(she)備(例(li)如網卡,調制解調器(qi)等(deng)等(deng))通(tong)信(xin)(xin)。這種通(tong)信(xin)(xin)可以(yi)(yi)通(tong)過輸入/輸出(i/o)接口22進行(xing)。并且,計算(suan)機設(she)(she)備12還(huan)可以(yi)(yi)通(tong)過網絡適(shi)配器(qi)20與(yu)一個或(huo)(huo)(huo)(huo)者多(duo)(duo)個網絡(例(li)如局域(yu)網(lan),廣域(yu)網(wan)和(he)(he)/或(huo)(huo)(huo)(huo)公(gong)共網絡,例(li)如因特網)通(tong)信(xin)(xin)。如圖所示(shi)(shi),網絡適(shi)配器(qi)20通(tong)過總線18與(yu)計算(suan)機設(she)(she)備12的其它模塊通(tong)信(xin)(xin)。應當明白,盡管圖中未示(shi)(shi)出,可以(yi)(yi)結合計算(suan)機設(she)(she)備12使用(yong)其它硬件和(he)(he)/或(huo)(huo)(huo)(huo)軟件模塊,包括但不限(xian)于:微代碼(ma)、設(she)(she)備驅動(dong)(dong)器(qi)、冗余處理單(dan)元、外部磁盤(pan)驅動(dong)(dong)陣(zhen)列、raid系(xi)統、磁帶驅動(dong)(dong)器(qi)以(yi)(yi)及數據(ju)備份存儲系(xi)統等(deng)。
處理(li)單(dan)元16通過運行存儲在系統(tong)存儲器28中(zhong)(zhong)的程序,從而執行各種功能應用以及數據(ju)處理(li),例(li)如實(shi)現(xian)本(ben)發明實(shi)施例(li)所提(ti)供的事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)統(tong)計(ji)方(fang)法:根據(ju)結(jie)構化(hua)(hua)事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)之間的關系建(jian)立結(jie)構化(hua)(hua)事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)列(lie)表,其中(zhong)(zhong),所述(shu)結(jie)構化(hua)(hua)事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)包括(kuo)至少兩個單(dan)一事(shi)(shi)(shi)(shi)件(jian)(jian)(jian);基于所述(shu)結(jie)構化(hua)(hua)事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)中(zhong)(zhong)每(mei)個單(dan)一事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)的觸發情(qing)況,更新所述(shu)結(jie)構化(hua)(hua)事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)列(lie)表中(zhong)(zhong)對應單(dan)一事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)的觸發狀態(tai);根據(ju)所述(shu)結(jie)構化(hua)(hua)事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)列(lie)表中(zhong)(zhong)單(dan)一事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)的觸發狀態(tai)確定所述(shu)結(jie)構化(hua)(hua)事(shi)(shi)(shi)(shi)件(jian)(jian)(jian)的統(tong)計(ji)結(jie)果(guo)。
實施例五
本(ben)發(fa)(fa)(fa)明實(shi)(shi)施例五提供了一(yi)(yi)種計算機可(ke)讀存儲介質(zhi),其上存儲有計算機程序(xu)(xu),該程序(xu)(xu)被處理器執(zhi)行時實(shi)(shi)現如本(ben)申(shen)請所(suo)有發(fa)(fa)(fa)明實(shi)(shi)施例提供的(de)事(shi)件(jian)(jian)(jian)(jian)統計方法:根(gen)據(ju)(ju)結(jie)構(gou)化事(shi)件(jian)(jian)(jian)(jian)之間(jian)的(de)關系建立結(jie)構(gou)化事(shi)件(jian)(jian)(jian)(jian)列(lie)表,其中,所(suo)述(shu)(shu)(shu)結(jie)構(gou)化事(shi)件(jian)(jian)(jian)(jian)包括至(zhi)少兩個單一(yi)(yi)事(shi)件(jian)(jian)(jian)(jian);基于所(suo)述(shu)(shu)(shu)結(jie)構(gou)化事(shi)件(jian)(jian)(jian)(jian)中每個單一(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)的(de)觸發(fa)(fa)(fa)情況,并根(gen)據(ju)(ju)檢測結(jie)果更(geng)新所(suo)述(shu)(shu)(shu)結(jie)構(gou)化事(shi)件(jian)(jian)(jian)(jian)列(lie)表中對應單一(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)的(de)觸發(fa)(fa)(fa)狀(zhuang)態;根(gen)據(ju)(ju)所(suo)述(shu)(shu)(shu)結(jie)構(gou)化事(shi)件(jian)(jian)(jian)(jian)列(lie)表中單一(yi)(yi)事(shi)件(jian)(jian)(jian)(jian)的(de)觸發(fa)(fa)(fa)狀(zhuang)態確定所(suo)述(shu)(shu)(shu)結(jie)構(gou)化事(shi)件(jian)(jian)(jian)(jian)的(de)統計結(jie)果。
可(ke)(ke)(ke)(ke)(ke)以采用一個(ge)或(huo)(huo)多個(ge)計(ji)(ji)(ji)(ji)(ji)算(suan)機(ji)(ji)可(ke)(ke)(ke)(ke)(ke)讀的(de)(de)(de)(de)介(jie)質(zhi)的(de)(de)(de)(de)任意(yi)組合。計(ji)(ji)(ji)(ji)(ji)算(suan)機(ji)(ji)可(ke)(ke)(ke)(ke)(ke)讀介(jie)質(zhi)可(ke)(ke)(ke)(ke)(ke)以是(shi)計(ji)(ji)(ji)(ji)(ji)算(suan)機(ji)(ji)可(ke)(ke)(ke)(ke)(ke)讀信號(hao)介(jie)質(zhi)或(huo)(huo)者(zhe)(zhe)計(ji)(ji)(ji)(ji)(ji)算(suan)機(ji)(ji)可(ke)(ke)(ke)(ke)(ke)讀存(cun)儲(chu)(chu)介(jie)質(zhi)。計(ji)(ji)(ji)(ji)(ji)算(suan)機(ji)(ji)可(ke)(ke)(ke)(ke)(ke)讀存(cun)儲(chu)(chu)介(jie)質(zhi)例如(ru)可(ke)(ke)(ke)(ke)(ke)以是(shi)——但不限(xian)于——電(dian)(dian)、磁(ci)(ci)、光(guang)、電(dian)(dian)磁(ci)(ci)、紅(hong)外(wai)線、或(huo)(huo)半導體(ti)的(de)(de)(de)(de)系統(tong)、裝置或(huo)(huo)器(qi)件(jian)(jian),或(huo)(huo)者(zhe)(zhe)任意(yi)以上(shang)的(de)(de)(de)(de)組合。計(ji)(ji)(ji)(ji)(ji)算(suan)機(ji)(ji)可(ke)(ke)(ke)(ke)(ke)讀存(cun)儲(chu)(chu)介(jie)質(zhi)的(de)(de)(de)(de)更具體(ti)的(de)(de)(de)(de)例子(非窮舉的(de)(de)(de)(de)列(lie)表)包(bao)括:具有一個(ge)或(huo)(huo)多個(ge)導線的(de)(de)(de)(de)電(dian)(dian)連接、便攜式(shi)計(ji)(ji)(ji)(ji)(ji)算(suan)機(ji)(ji)磁(ci)(ci)盤、硬盤、隨機(ji)(ji)存(cun)取存(cun)儲(chu)(chu)器(qi)(ram)、只(zhi)讀存(cun)儲(chu)(chu)器(qi)(rom)、可(ke)(ke)(ke)(ke)(ke)擦式(shi)可(ke)(ke)(ke)(ke)(ke)編程只(zhi)讀存(cun)儲(chu)(chu)器(qi)(eprom或(huo)(huo)閃存(cun))、光(guang)纖、便攜式(shi)緊湊磁(ci)(ci)盤只(zhi)讀存(cun)儲(chu)(chu)器(qi)(cd-rom)、光(guang)存(cun)儲(chu)(chu)器(qi)件(jian)(jian)、磁(ci)(ci)存(cun)儲(chu)(chu)器(qi)件(jian)(jian)、或(huo)(huo)者(zhe)(zhe)上(shang)述的(de)(de)(de)(de)任意(yi)合適(shi)的(de)(de)(de)(de)組合。在本(ben)文件(jian)(jian)中,計(ji)(ji)(ji)(ji)(ji)算(suan)機(ji)(ji)可(ke)(ke)(ke)(ke)(ke)讀存(cun)儲(chu)(chu)介(jie)質(zhi)可(ke)(ke)(ke)(ke)(ke)以是(shi)任何包(bao)含或(huo)(huo)存(cun)儲(chu)(chu)程序(xu)的(de)(de)(de)(de)有形(xing)介(jie)質(zhi),該程序(xu)可(ke)(ke)(ke)(ke)(ke)以被(bei)指令執行系統(tong)、裝置或(huo)(huo)者(zhe)(zhe)器(qi)件(jian)(jian)使(shi)用或(huo)(huo)者(zhe)(zhe)與其結合使(shi)用。
計算(suan)(suan)機(ji)(ji)可(ke)(ke)讀(du)的(de)信號(hao)介質(zhi)可(ke)(ke)以(yi)包括(kuo)在基帶中或者(zhe)作為載波一部(bu)分(fen)傳(chuan)播的(de)數據(ju)信號(hao),其(qi)中承載了計算(suan)(suan)機(ji)(ji)可(ke)(ke)讀(du)的(de)程序(xu)(xu)代碼。這(zhe)種傳(chuan)播的(de)數據(ju)信號(hao)可(ke)(ke)以(yi)采用(yong)多種形式(shi),包括(kuo)——但不(bu)限于——電磁信號(hao)、光信號(hao)或上(shang)述的(de)任(ren)意合(he)適(shi)的(de)組合(he)。計算(suan)(suan)機(ji)(ji)可(ke)(ke)讀(du)的(de)信號(hao)介質(zhi)還可(ke)(ke)以(yi)是計算(suan)(suan)機(ji)(ji)可(ke)(ke)讀(du)存儲介質(zhi)以(yi)外的(de)任(ren)何計算(suan)(suan)機(ji)(ji)可(ke)(ke)讀(du)介質(zhi),該計算(suan)(suan)機(ji)(ji)可(ke)(ke)讀(du)介質(zhi)可(ke)(ke)以(yi)發送、傳(chuan)播或者(zhe)傳(chuan)輸用(yong)于由指令執行系統、裝置或者(zhe)器件(jian)使用(yong)或者(zhe)與其(qi)結合(he)使用(yong)的(de)程序(xu)(xu)。
計(ji)算機可讀介質上(shang)包含的程序代碼可以用任(ren)何適當(dang)的介質傳輸(shu),包括——但不限于(yu)——無線(xian)、電線(xian)、光纜、rf等(deng)等(deng),或(huo)者上(shang)述(shu)的任(ren)意(yi)合適的組合。
可(ke)以以一種或(huo)多(duo)種程(cheng)(cheng)序(xu)(xu)設計(ji)(ji)(ji)(ji)語言(yan)或(huo)其組合來編寫(xie)用(yong)于執(zhi)(zhi)行(xing)本(ben)發明操作的(de)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)程(cheng)(cheng)序(xu)(xu)代(dai)碼,所(suo)述程(cheng)(cheng)序(xu)(xu)設計(ji)(ji)(ji)(ji)語言(yan)包(bao)括(kuo)面向(xiang)對象的(de)程(cheng)(cheng)序(xu)(xu)設計(ji)(ji)(ji)(ji)語言(yan)—諸如java、smalltalk、c++,還包(bao)括(kuo)常規(gui)的(de)過(guo)程(cheng)(cheng)式程(cheng)(cheng)序(xu)(xu)設計(ji)(ji)(ji)(ji)語言(yan)—諸如”c”語言(yan)或(huo)類似的(de)程(cheng)(cheng)序(xu)(xu)設計(ji)(ji)(ji)(ji)語言(yan)。程(cheng)(cheng)序(xu)(xu)代(dai)碼可(ke)以完全(quan)地在用(yong)戶(hu)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)上(shang)執(zhi)(zhi)行(xing)、部分(fen)(fen)地在用(yong)戶(hu)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)上(shang)執(zhi)(zhi)行(xing)、作為(wei)一個獨立(li)的(de)軟件包(bao)執(zhi)(zhi)行(xing)、部分(fen)(fen)在用(yong)戶(hu)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)上(shang)部分(fen)(fen)在遠程(cheng)(cheng)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)上(shang)執(zhi)(zhi)行(xing)、或(huo)者完全(quan)在遠程(cheng)(cheng)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)或(huo)服務(wu)器(qi)上(shang)執(zhi)(zhi)行(xing)。在涉及遠程(cheng)(cheng)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)的(de)情形中,遠程(cheng)(cheng)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)可(ke)以通過(guo)任意種類的(de)網(wang)絡——包(bao)括(kuo)局域(yu)網(wang)(lan)或(huo)廣域(yu)網(wang)(wan)—連(lian)接到用(yong)戶(hu)計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji),或(huo)者,可(ke)以連(lian)接到外(wai)部計(ji)(ji)(ji)(ji)算(suan)(suan)機(ji)(ji)(例如利用(yong)因(yin)特網(wang)服務(wu)提供商(shang)來通過(guo)因(yin)特網(wang)連(lian)接)。
注意(yi),上述僅為本(ben)發明的(de)較(jiao)佳實(shi)(shi)施(shi)(shi)例及(ji)所(suo)運用技術原理。本(ben)領(ling)域技術人員(yuan)會(hui)理解(jie),本(ben)發明不限于(yu)這里所(suo)述的(de)特定實(shi)(shi)施(shi)(shi)例,對(dui)本(ben)領(ling)域技術人員(yuan)來說能夠進行各種明顯的(de)變化、重(zhong)新調(diao)整和(he)替(ti)代(dai)而不會(hui)脫離本(ben)發明的(de)保護(hu)范圍(wei)。因此,雖然通(tong)過(guo)以(yi)上實(shi)(shi)施(shi)(shi)例對(dui)本(ben)發明進行了較(jiao)為詳細的(de)說明,但是本(ben)發明不僅僅限于(yu)以(yi)上實(shi)(shi)施(shi)(shi)例,在不脫離本(ben)發明構思的(de)情(qing)況下,還可以(yi)包括更多其他(ta)等效實(shi)(shi)施(shi)(shi)例,而本(ben)發明的(de)范圍(wei)由(you)所(suo)附的(de)權利要求范圍(wei)決定。