Electronic apparatus that uses program from another program working on different platforms, and method
09652304 ยท 2017-05-16
Assignee
Inventors
Cpc classification
H04N2201/0094
ELECTRICITY
H04N1/0097
ELECTRICITY
International classification
Abstract
An electronic apparatus includes a storage device storing a first platform, a first program working on the first platform, a second platform, and a second program working on the second platform, and a control device that performs the first program working on the first platform so as to execute at least one component of the first platform. The first platform includes a second program using unit for the first program to use the second program executing at least one component of the second platform. The second program using unit loads a necessity component necessary for performing the second program among components of the second platform from the second platform so that the second program can work on a temporary platform constituted of the loaded necessity component.
Claims
1. An electronic apparatus, comprising: a storage device storing a first platform, a first program working on the first platform, a second platform, and a second program working on the second platform; and a control device that performs the first program working on the first platform so as to execute at least one component of the first platform, wherein: the first platform includes a second program using unit for the first program to use the second program executing at least one component of the second platform; and the second program using unit loads a necessity component necessary for performing the second program among components of the second platform from the second platform so that the second program can work on a temporary platform constituted of the loaded necessity component, wherein: the storage device stores necessity component specifying information for specifying the necessity component; and the second program using unit specifies the necessity component on the basis of the necessity component specifying information, and wherein: the necessity component specifying information includes (i) execution target component specifying information for specifying an execution target component as an execution target of the second program among components of the second platform, and (ii) dependent component specifying information for specifying a dependent component necessary for the execution target component to be an active state among components of the second platform; and the second program using unit specifies (i) the execution target component specified on the basis of the second program and the execution target component specifying information, and (ii) the dependent component specified on the basis of the execution target component and the dependent component specifying information, as the necessity component.
2. A method of controlling an electronic apparatus, comprising: causing the electronic apparatus to store a first platform, a first program working on the first platform, a second platform, and a second program working on the second platform; performing the first program working on the first platform so as to execute at least one component of the first platform; causing the first program to use the second program executing at least one component of the second platform; causing the electronic apparatus to further store necessity component specifying information for specifying a necessity component necessary for performing the second program among components of the second platform, wherein the necessity component specifying information includes (i) execution target component specifying information for specifying an execution target component as an execution target of the second program among components of the second platform, and (ii) dependent component specifying information for specifying a dependent component necessary for the execution target component to be an active state among components of the second platform; specifying the necessity component on the basis of the necessity component specifying information, wherein (i) the execution target component specified on the basis of the second program and the execution target component specifying information, and (ii) the dependent component specified on the basis of the execution target component and the dependent component specifying information, are specified as the necessity component; and loading the specified necessity component from the second platform so that the second program can work on a temporary platform constituted of the loaded necessity component.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION
(12) Now, an embodiment of the present disclosure is described with reference to the drawings.
(13) First, a structure of a multifunction peripheral (MFP) as an electronic apparatus according to this embodiment is described.
(14)
(15) As illustrated in
(16) The storage device 20 stores a platform 30 as a first platform of the present disclosure, a program 40 as a first program of the present disclosure working on the platform 30, a platform 50 as a second platform of the present disclosure, and a program 60 as a second program of the present disclosure working on the platform 50.
(17) The platform 30 and the platform 50 are execution environments such as Windows (registered trademark), Linux (registered trademark), Open Service Gateway initiative (OSGi) (registered trademark), on which programs work. The platform 30 and the platform 50 are different platforms.
(18)
(19) As illustrated in
(20) The platform 31 is constituted of a plurality of components including a component 31a, a component 31b, and a component 31c. Each of the components constituting the platform 31 is made up of at least one application program interface (API).
(21) The extension function 32 is made up of at least one API. The extension function 32 is a function for the program 40 (see
(22)
(23) As illustrated in
(24) Here, FuncA-1 is a function for executing the component 31a (see
(25) In addition, FuncA is a function for executing the extension function 32 (see
(26)
(27) As illustrated in
(28)
(29) As illustrated in
(30) Here, FuncB-1 is a function for executing the component 51a (see
(31)
(32) As illustrated in
(33) As illustrated in
(34) The necessity component specifying information 70 includes execution target component specifying information 71 for specifying execution target component as an execution target of the program 60 among components of the platform 50, and dependent component specifying information 72 for specifying a dependent component necessary for the execution target component to be an active state among components of the platform 50.
(35)
(36) The execution target component specifying information 71 illustrated in
(37)
(38) The dependent component specifying information 72 illustrated in
(39) The control device 80 illustrated in
(40) Next, there is described an operation of the MFP 10 when causing the program 40 to work on the platform 30.
(41)
(42) As illustrated in
(43) Next, the control device 80 performs the FuncA (program 60) of the program 40 so as to execute an extension function execution process illustrated in
(44)
(45) As illustrated in
(46)
(47) As illustrated in
(48) Next, the extension function 32 specifies dependent components of the execution target components specified in S161 on the basis of the dependent component specifying information 72 (S162). In other words, the extension function 32 specifies the components 51b to 51d as dependent components of the component 51a. In addition, the extension function 32 specifies the components 51c and 51e as dependent components of the component 51b. In addition, the extension function 32 specifies the components 51d and 51e as dependent components of the component 51c.
(49) The extension function 32 specifies the component 51a as the execution target component of the function FuncB-1 of the program 60 and the components 51b to 51d as the dependent components of the component 51a, as the necessity components of the function FuncB-1 in the necessity component specifying process illustrated in
(50) When the process of S162 is finished, the extension function 32 finishes the necessity component specifying process illustrated in
(51) As illustrated in
(52) Next, the extension function 32 allows the program 60 to work on a temporary platform constituted of the components 51a to 51e loaded in S132, so as to perform the program 60 (S133).
(53) Next, the extension function 32 unloads the necessity components of the program 60, namely, the components 51a to 51e from the RAM, so as to stop the components 51a to 51e (S134), and finishes the extension function execution process illustrated in
(54) As illustrated in
(55) Next, the control device 80 performs the FuncA-3 of the program 40 so as to execute the component 31c of the platform 30 (S104), and finishes the operation illustrated in
(56) As described above, the MFP 10 can perform the program 60 working on the platform 50, seamlessly without transplanting the program 60 to work on the platform 30.
(57) In addition, when the program 40 working on the platform 30 uses the program 60 working on the platform 50, the MFP 10 loads the components 51a to 51e necessary for performing the program 60 among components of the platform 50 from the platform 50 (S132), and allows the program 60 to work on the temporary platform constituted of the loaded components 51a to 51e (S133). Thus, the program 40 working on the platform 30 can use the program 60 working on the platform 50 with a simple structure.
(58) In addition, the MFP 10 specifies the components 51a to 51e necessary for performing the program 60 on the basis of the necessity component specifying information 70, and hence the program 40 working on the platform 30 can use the program 60 working on the platform 50 with a simple structure.
(59) In addition, when there are a plurality of programs, i.e., other programs, working on the platform 50, the MFP 10 is not required to store the necessity component specifying information 70 independently for each of the other programs, but can store the dependent component specifying information 72 of the necessity component specifying information 70 as common information for the plurality of other programs. Thus, the program 40 working on the platform 30 can use the program 60 working on the platform 50 with a simple structure.
(60) The present disclosure is effective for an embedded system with limited resources such as MFP 10, because the program 40 working on the platform 30 can use the program 60 working on the platform 50 with a simple structure.
(61) Further, in this embodiment, the platform 30 and the platform 50 are realized by the same hardware configuration. However, the platform 30 and the platform 50 may be realized by different hardware configurations.
(62) The electronic apparatus of the present disclosure is the MFP in this embodiment, but may be an image forming apparatus other than the MFP, such as a dedicated printer, a dedicated copier, or a dedicated facsimile machine, or may be an electronic apparatus other than an image forming apparatus, such as a personal computer (PC).
(63) As described above, with the electronic apparatus according to the present disclosure, it is possible that one of two programs working on different platforms can use the other program with a simple structure.
(64) In addition, with the method of controlling an electronic apparatus according to the present disclosure, it is possible that a program working on a platform can use another program working on another platform with a simple structure.