412686412686
本發明係有關於資訊系統技術 付别是有關於 有夕通道元件介面之主/從式架構。 it «馒双軾體易於維護的優點。然而,當軟 體破切割成三層次時,卻無法享有主/從式 (cl ient/server)架構的優點。 因此,本發明之一目的,在於提供一種具有多通道元 件"面之主/從式架構,在不損及多層次軟體架構的前提 下,視資訊系統所在環境,靈活地調整其執行通道為二階 式或多階式。 為獲致上述目的,本發明可藉由提供一種具有多通道 元件介面之主/從式架構來完成。一種具有多通道元件介 面之主/從式架構,包括一伺服端與一用戶端。伺服端包 括一第一多通道元件介面及一資料庫。用戶端包括一第二 多通道元件介面,而第一多通道元件介面具有一多通道切 換模組。若多通道切換模組知一用戶係以三階式通道呼 叫,則經由第一多通道元件介面對資料庫做資料存取;若 多通道切換模組知用戶係以二階式通道呼叫,則經由第二 多通道元件介面對該資料庫做資料存取。 再者’本發明尚提出一種主/從式架構,包括一飼服 端與一用戶端。伺服端包括一邏輯控制層和一資料層。用 戶端包括一使用者介面層,而使用者介面層具有一多通逍The present invention relates to information system technology, in addition to the master / slave architecture of the channel component interface. it «馒 Double carcass has the advantage of easy maintenance. However, when the software is broken into three layers, it cannot enjoy the advantages of the master / slave (cl ient / server) architecture. Therefore, an object of the present invention is to provide a master / slave architecture with multi-channel components. Without prejudice to the multi-level software architecture, depending on the environment of the information system, the execution channel can be flexibly adjusted to Second-order or multi-order. To achieve the above object, the present invention can be accomplished by providing a master / slave architecture with a multi-channel device interface. A master / slave architecture with a multi-channel component interface includes a server and a client. The server includes a first multi-channel component interface and a database. The client includes a second multi-channel component interface, and the first multi-channel component interface has a multi-channel switching module. If the multi-channel switching module knows that a user is calling by a third-order channel, then the first multi-channel component interface accesses the database for data access; if the multi-channel switching module knows that the user is calling by a second-order channel, then via The second multi-channel component accesses the database for data access. Furthermore, the present invention also proposes a master / slave architecture including a feeding server and a client. The server includes a logic control layer and a data layer. The client includes a user interface layer, and the user interface layer has a
第4頁 412686______ 五、發明說明(2) 切換模組。若多通道切換模組知一用戶係以三階式通道呼 叫,則逕由使用者介面層對資料層做資料存取;若多通道 切換模組知用戶係以二階式通道呼叫,則經由邏輯控制層 對資料層做資料存取。 據此,當於設計軟體時,依用戶端與伺服端不同元件 規格’包裝成一式兩份的元件介面,再於用戶端元件介面 上,加設多通道切換模組1 1做二階式通道或三階式通道之 判斷*=因此,根據本發明之主/從架構所設計之軟體元件 (通常是與資料庫存取相關之元件),可讓使用者依建置需 求’於三階式或二階式的運作環境下能彈性地切換。 為讓本發明之上述和其他目的 '特徵、和優點能更明 顯易廣’下文特舉一較佳實施例,並配合所附圖式’作詳 細說明如下: 圖示之簡單說明: 第1圖係顯示根據本發明具有多通道元件介面之主/從 Ϊ架構之示意圖。 符號說明: 1 m _ 〜用戶端;2〜伺服端;3-6~通道;1〇~用戶端多通道 次、,面;11〜多通道切換模組;12~元件核心模組;13〜 制* 父易處理元件;20〜伺服端多通道元件介面;21~資 件核心模組;以及,23〜資料庫交易處理元 實施例: &设某軟體公司正在設計三階式軟體元件架構的套裝Page 4 412686______ 5. Description of the invention (2) Switching module. If the multi-channel switching module knows that a user is calling by a third-order channel, the user interface layer accesses the data layer. If the multi-channel switching module knows that the user is calling by a second-order channel, it will pass the logic. The control layer performs data access to the data layer. According to this, when designing the software, according to the different component specifications of the client and the server, the components are packaged in duplicate, and the multi-channel switching module 11 is added to the client component interface to make a second-order channel or Judgment of the third-order channel * = Therefore, the software components designed according to the master / slave architecture of the present invention (usually the components related to the data library) can allow users to build on their needs in the third-order or second-order Can be switched flexibly under the operating environment. In order to make the above-mentioned and other objects of the present invention 'characteristics and advantages more obvious and easy to expand', a preferred embodiment is given below and described in detail with the accompanying drawings' as follows: Brief description of the drawings: Figure 1 It is a schematic diagram showing a master / slave architecture with a multi-channel device interface according to the present invention. Symbol description: 1 m _ ~ user side; 2 ~ servo side; 3-6 ~ channel; 10 ~ user side multi-channel time, surface; 11 ~ multi-channel switching module; 12 ~ component core module; 13 ~ System * Parent easy-to-handle component; 20 ~ server multi-channel component interface; 21 ~ data core module; and 23 ~ database transaction processing meta example: & Let a software company design a three-tier software component architecture Outfit
第5頁 五' 發明說明(3$ ' --------- 應用軟體。但是, 配置來運作、戍0在無法掌握用戶群究竟是以二階式硬體 何以口 Μ政 S是以三階式硬體配置來運作的情況下’如 用戶的建晉堂*软體且執行效率兼顧的前題下,滿足不同 本發明即4+制_ ηβ ^ 主/從式架構,將如雜1題’提出具有多通道元件介面之 包奘出一, 將軟體依用戶端與祠服端不同元件規格’ π夕式兩份的元件介面’再於用戶端元件介面上,加 道切換模組做二階式通道或三階式通道之判斷依 清參照第1圖’所示為根據本發明具有多通道元件介 面,主/從式架構之示意圖。圖示中,標號1代表用戶端, ,號2代表伺服端。根據本發明,用戶端1則包括一用戶端 多通道元件介面10 ’用戶端多通道元件介面1〇具有一多通 道切換模組11及一元件核心模組1 2。至於伺服端2包括一 飼服端多通道元件介面2〇與一資料庫21 ’而伺服端多通道 元件介面20具有元件核心模組22。 若就多層次軟體架構而言,用戶端多通道元件介面10 係屬使用者介面層次’伺服端多通道元件介面20為邏輯控 制層次、而資料庫21為資料層次。 如第1圖所示’標號3和4代表二階式通道,5和6代表 三階式通道。其中’二階式通道3係自多通道切換模組u 及至元件核心模組1 2 ’二階式通道4係自元件核心模組1 2 及於資料庫21 ’三階式通道5係自多通道切換模組11及至 元件核心模組22,而三階式通道6係自元件核心模組22及Page 5 of the invention description (3 $ '--------- application software. However, the configuration to operate, 戍 0 can not grasp whether the user group is based on the second-order hardware, why is it In the case of a three-stage hardware configuration to operate, such as the previous question of the user's Jianjintang * software and execution efficiency, satisfying the different invention of the 4+ system _ ηβ ^ master / slave architecture, such as miscellaneous 'Propose a package with a multi-channel component interface. Put the software according to the different component specifications of the client and the server.' Π Xi-style two-component component interface ', and then add the switching module to the second-order component interface. The judgment of the type channel or the third-order channel is based on the reference to FIG. 1 ', which shows a schematic diagram of a multi-channel component interface and a master / slave architecture according to the present invention. In the figure, the number 1 represents the client, and the number 2 represents Servo. According to the present invention, the client 1 includes a client multi-channel component interface 10 ′. The client multi-channel component interface 10 has a multi-channel switching module 11 and a component core module 12. As for the servo 2 Includes a feeding end multi-channel element interface 20 and a Library 21 'and the server-side multi-channel component interface 20 has a component core module 22. In terms of multi-level software architecture, the client-side multi-channel component interface 10 belongs to the user interface level. The server-side multi-channel component interface 20 is The logic control level, and the database 21 is the data level. As shown in Figure 1, 'Numbers 3 and 4 represent second-order channels, and 5 and 6 represent third-order channels. Among them,' second-order channel 3 is a multi-channel switching module u and to the component core module 12 2 'second-order channel 4 series from the component core module 1 2 and to the database 21' third-order channel 5 series from the multi-channel switching module 11 and to the component core module 22, and the third-order channel Channel 6 series self-component core module 22 and
第6頁 ^__413686 五、發明說明" ' ^料庫21。元件核心模組12與元件核心模組22以資料庫 道6處理70件1 3和23,分別及於二階式通道4與三階式通 當使用者自用戶端1以三階式通道登入並呼叫元件A做 p ^,會先執行多通道切換模組11。若多通道切換模組n :°使用者是以三階式通道呼叫後,即改經由通道3執行 ^件核心模組12,利用内部之資料庫交易處理元件13,經 通道4對資料庫21進行資料存取。 §使用者自用戶端1以二階式通道登入並呼叫元件A做 ,時,多通道切換模組11會先執行。若多通道切換模組u 得知使用者是以二階式通道呼叫後,即改經由通道5執行 兀件核心模組22,利用内部之資料庫交易處理元件23,經 由通道6對資料庫21進行資料存取。 換言之’本發明將軟體依用户端與伺服端不同元件規 格,包裝成一式兩份的元件介面1〇和2〇,再於用戶端元件 介面1〇上,加设多通道切換模组11做二階式通道戍三階式 通道之判斷。因此,根據本發明之主;"從架構所設計一之軟 體元件(通常是與資料庫存取相關之元件),可讓使用者依 建置需求,於二階式或二階式的運作環境下能彈性地切 換0 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和缸圍内,當可作更動與潤飾,因此本發明之保護範圍當 視後附之申請專利範圍所界定者為準。Page 6 ^ __ 413686 V. Description of the invention " ^ Material library 21. The component core module 12 and the component core module 22 process 70 pieces 1 3 and 23 with the database channel 6 respectively in the second-order channel 4 and the third-order communication. When the user logs in from the client 1 through the third-order channel and When the calling element A does p ^, the multi-channel switching module 11 is executed first. If the multi-channel switching module n: ° is called by a third-order channel, the user executes the ^ core module 12 via channel 3 instead, using the internal database transaction processing element 13, and the database 21 via channel 4. For data access. § When the user logs in through the second-order channel from client 1 and calls component A to do so, the multi-channel switching module 11 will execute first. If the multi-channel switching module u learns that the user is calling through a second-order channel, it will execute the core module 22 via channel 5 instead, use the internal database transaction processing element 23, and perform database 21 via channel 6. Data access. In other words, according to the present invention, the software is packaged into duplicate component interfaces 10 and 20 according to different component specifications of the client and the server, and a multi-channel switching module 11 is added to the client component interface 10 as a second order. Judgment of the three-stage channel. Therefore, according to the main component of the present invention, a software component designed from the architecture (usually a component related to the data library) can allow users to build according to their needs and be able to operate in a two-stage or two-stage operating environment. Elastically switch 0 Although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art can make changes and decorations without departing from the spirit of the present invention and the cylinder enclosure. Therefore, the protection scope of the present invention shall be determined by the scope of the appended patent application.