CN104965864B - A kind of identification method of remote object and the mark system of remote object - Google Patents

A kind of identification method of remote object and the mark system of remote object Download PDF

Info

Publication number
CN104965864B
CN104965864B CN201510304753.6A CN201510304753A CN104965864B CN 104965864 B CN104965864 B CN 104965864B CN 201510304753 A CN201510304753 A CN 201510304753A CN 104965864 B CN104965864 B CN 104965864B
Authority
CN
China
Prior art keywords
remote object
end device
far end
remote
unique identity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510304753.6A
Other languages
Chinese (zh)
Other versions
CN104965864A (en
Inventor
方李志
赖勇辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201510304753.6A priority Critical patent/CN104965864B/en
Publication of CN104965864A publication Critical patent/CN104965864A/en
Application granted granted Critical
Publication of CN104965864B publication Critical patent/CN104965864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of identification method of remote object, and applied to customer set up, the identification method of remote object includes defining remote object;Establish and communicate to connect with far end device;The method name for obtaining remote object and query path are sent to far end device, so that far end device obtains remote object using the method for obtaining remote object according to query path, and causes far end device using unique identity number mark remote object;And receive the unique identity number for the remote object that far end device is sent.The present invention also provides a kind of mark system of remote object.The identification method of remote object provided by the invention and the mark system of remote object can support cross-platform access remote object, and utilize unique identity number mark remote object, reduce the data volume for communication, and possess the ability for very easily obtaining and identifying other objects associated therewith by the relation between remote object, so as to add the quantity for the remote object that can be operated.

Description

A kind of identification method of remote object and the mark system of remote object
Technical field
The present invention relates to the identification method and remote object in computer communication technology field, more particularly to a kind of remote object Mark system.
Background technology
By remote object mark and remote method call, customer set up can intuitively and easily striding course, cross-platform make With remote object function, so as to fulfill functions such as Distributed Calculation, automatic tests.Specifically, when an object is other one When software function is provided in a process or system, this object is referred to as " remote object ".It is long-range that this is identified in customer set up The mode of object is known as " remote object mark ".The function that remote object provides usually is packaged into method one by one, is known as " long-range Object method ".It is known as " remote method call " using these methods.
Wherein, " automatic test " refers to by test program come test target product.Automatic test is " mesh to be measured Each window of mark product " is decomposed into user interface (User Interface, UI) element one by one, the UI members in each window Plain (including window is in itself) is all a remote object for test program.There are set membership, whole window between object All objects of mouth collectively form an object tree.Operation to these remote objects not only includes obtaining and setting a property, also Including traveling through these remote objects." traversal " refers to, from an object, same object being got by set membership Other objects on tree.
In the prior art, identify and have different implementations, such as remote method call (Remote using remote object Method Invocation, RMI), The Component Object Model (Component Object Model, COM) etc..Wherein, COM with RMI is similar, be by first defining, afterwards realize, re-registration, the mode finally used realizes.But both schemes must make a reservation for Adopted remote object simultaneously could use the object after registering the remote object, it has not been convenient to access the other remote objects being associated (such as the parent object of the object, or subobject);Secondly, it does not support cross-platform access, because not every platform is all Support COM and RMI mechanism.
Realized in addition, identifying and can also pass through following implementation using remote object:Use socket (Socket) process where remote object and the communication connection between client process are established, and by similar to extensible markup road Query path (Query Path, QPath) character string descriptor one of footpath language (XML Path Language, XPath) is long-range Object.
The object is found in the object tree of target product by the information that QPath is included, then, then incoming remote parties The required parameter of method carries out remote method call.Communication of this scheme between the process where customer set up and remote object Transmission is all string data, and special requirement is implemented without to communication, and therefore, it supports that cross-platform access is remotely right As realization mechanism also allows to realize using multilingual.But it also has limitation part, weight is required for before using object every time The object could be operated after the object by newly being found out by query path, and query path does not possess and intuitively identifies other associations Remote object (such as its fraternal object) ability.
The content of the invention
In view of this, the present invention, which provides one kind, can support cross-platform access remote object, and the data volume for communicating is few, The identification method of remote object more than the quantity for the remote object that can be operated.
The present invention provides a kind of identification method of remote object, applied to customer set up, the mark side of the remote object Method includes defining remote object;Establish and communicate to connect with far end device;Send the method name for obtaining remote object and inquiry road Footpath is to the far end device, so that the far end device is obtained using the method for obtaining remote object according to the query path Remote object, and cause the far end device to identify the remote object using unique identity number;And receive described remote The unique identity number for the remote object that end device is sent.
The present invention also provides a kind of identification method of remote object, applied to far end device, the mark of the remote object Method includes defining remote object;Establish and communicate to connect with customer set up;It is remotely right to respond the acquisition that the customer set up is sent The method name of elephant and query path, remote object is obtained using the acquisition remote object method according to the query path; The remote object is identified using unique identity number;And the unique identity number of the remote object is sent described in Customer set up.
The present invention also provides a kind of mark system of remote object, the mark system of the remote object includes customer set up And far end device;The customer set up, which is used to establish with the far end device, to be communicated to connect, and is sent and obtained remote object Method name and query path are to the far end device;The far end device is looked into using the method for obtaining remote object according to Ask path and obtain remote object, and the remote object is identified using unique identity number, and by the remote object only One identity identification number is sent to the customer set up.
The identification method of remote object provided by the invention and the mark system of remote object are in customer set up and long-range right As place process between communications be all string data, special requirement is implemented without to communication, therefore, it It can support cross-platform access remote object, realization mechanism also allows to realize using multilingual, and utilizes unique identity number Remote object is identified, need not all search, reduce for communication again through query path before using remote object every time Data volume, and possess and very easily obtain and identify other object (examples associated therewith by the relation between remote object Such as fraternal object) ability, so as to add the quantity for the remote object that can be operated.
Above and other objects, features and advantages to allow the present invention can become apparent, preferred embodiment cited below particularly, And coordinate institute's accompanying drawings, it is described in detail below.
Brief description of the drawings
Fig. 1 is the flow chart of the identification method for the remote object that first embodiment provides.
Fig. 2 is the flow chart of the identification method for the remote object that second embodiment provides.
Fig. 3 is the flow chart of the identification method for the remote object that 3rd embodiment provides.
Fig. 4 is the flow chart of the identification method for the remote object that fourth embodiment provides.
Fig. 5 is the flow chart of the identification method for the remote object that the 5th embodiment provides.
Fig. 6 is the flow chart of the identification method for the remote object that sixth embodiment provides.
Fig. 7 is the flow chart of the identification method for the remote object that the 7th embodiment provides.
Fig. 8 is the flow chart of the identification method for the remote object that the 8th embodiment provides.
Fig. 9 is the structure chart for the customer set up that the 5th embodiment provides.
Figure 10 is the structure chart for the far end device that sixth embodiment provides.
Figure 11 is the structure chart of the mark system for the remote object that the 7th embodiment provides.
Embodiment
Further to illustrate that the present invention is to realize technological means and effect that predetermined goal of the invention taken, below in conjunction with Attached drawing and preferred embodiment, to embodiment, structure, feature and its effect according to the present invention, describe in detail as after.
First embodiment
Fig. 1 is the flow chart of the identification method for the remote object that first embodiment provides.As shown in Figure 1, remote object Identification method comprises the following steps:
Step S11:Define remote object.
Specifically, remote object is defined to refer to carry out protocol conventions with the remote object for providing method.For example, will " getControl " is defined as " acquisition object ", " getProperty " is defined as " acquisition object properties ", will " getParent " is defined as " acquisition parent object ", and " click " is defined as " clicking operation " etc..
Step S12:Establish and communicate to connect with far end device.
Specifically, it can be, but not limited to realize using the mode of socket (Socket) and establish communication link with far end device Connect.Other manner such as web socket cross-platform, across language is supported it is understood that can also utilize (websocket) realize to establish with far end device and communicate to connect.
Step S13:The method name for obtaining remote object and query path are sent to the far end device, so that described Far end device obtains remote object using the method for obtaining remote object according to the query path, and causes the far end device The remote object is identified using unique identity number.
Specifically, the data format of the communication between the customer set up and the far end device can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that the customer set up and distal end dress The data format of communication between putting can also use the other data formats for supporting numerous types of data to represent and transmit for example Extensible markup language (XML) etc..
Specifically, remote object is obtained according to the query path using the method for obtaining remote object to refer to look into described Parameter call of the path as the method for the acquisition remote object is ask, to obtain remote object.
Specifically, it can be, but not limited to travel through all remote objects of the far end device according to the query path, most The remote object for meeting the query path is found eventually.Traversal refers to from a remote object, according between remote object The other remote objects of Relation acquisition.
Specifically, the unique identity number can determine how many byte used according to the quantity of remote object.
Specifically, the unique identity number can be, but not limited to produce using hashing algorithm (also known as hash algorithm), It is understood that the mode that other manner can also be used for example to be set by program designer oneself produces, as long as each remote The unique identity number of journey object is different.
Step S14:Receive the unique identity number for the remote object that the far end device is sent.
Where client process and remote object of the identification method of remote object provided by the invention in customer set up into Communications between journey are all string datas, and special requirement is implemented without to communication, and therefore, it can be supported across flat Platform accesses remote object, and realization mechanism also allows to realize using multilingual, and long-range right using unique identity number mark As, it need not all be searched before using remote object every time again through query path, reduce the data volume for communication, and Possess and very easily obtain and identify other objects associated therewith (such as fraternal object) by the relation between remote object Ability, so as to add the quantity for the remote object that can be operated.
Second embodiment
Fig. 2 is the flow chart of the identification method for the remote object that second embodiment provides.As shown in Fig. 2, remote object Identification method comprises the following steps:
Step S21:Define remote object.
Step S22:Establish and communicate to connect with far end device.
Step S23:The method name for obtaining remote object and query path are sent to the far end device, so that described Far end device obtains remote object using the method for obtaining remote object according to the query path, and causes the far end device The remote object is identified using unique identity number.
Step S24:Receive the unique identity number for the remote object that the far end device is sent.
Step S25:Method name, the title of attribute and the unique identity number for sending acquisition attribute are extremely described remote End device, so that the far end device finds the remote object using the unique identity number, and causes described Far end device obtains the corresponding property value of title of the attribute of the remote object using the method for obtaining attribute.
Specifically, the data format of the communication between the customer set up and the far end device can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getProperty ', ' uid ':Uid, ' params ':size}”.It is understood that the customer set up The data format of communication between the far end device, which can also use, supports numerous types of data to represent and transmit other Data format is such as extensible markup language (XML).
Specifically, the title of attribute can be, but not limited to the attribute being defined for remote object such as size, type Deng.
Step S26:The title for receiving the attribute for the remote object that the far end device is sent is corresponding described Property value.
Where client process and remote object of the identification method of remote object provided by the invention in customer set up into Communications between journey are all string datas, and special requirement is implemented without to communication, and therefore, it can be supported across flat Platform accesses remote object, and realization mechanism also allows to realize using multilingual, and long-range right using unique identity number mark As, it need not all be searched before the attribute such as object size of object is obtained using remote object again through query path, and It is directly to be searched by unique identity number, reduces the data volume for communication.
3rd embodiment
Fig. 3 is the flow chart of the identification method for the remote object that 3rd embodiment provides.As shown in figure 3, remote object Identification method comprises the following steps:
Step S31:Define remote object.
Step S32:Establish and communicate to connect with far end device.
Step S33:The method name for obtaining remote object and query path are sent to the far end device, so that described Far end device obtains remote object using the method for obtaining remote object according to the query path, and causes the far end device The remote object is identified using unique identity number.
Step S34:Receive the unique identity number for the remote object that the far end device is sent.
Step S35:Send the unique identities identifier of the method name for obtaining Seismicity object and the remote object To the far end device, so that the far end device finds the remote object using the unique identity number, and So that the far end device obtains Seismicity object using the method for obtaining Seismicity object, and cause the far end device The Seismicity object is identified using unique identity number.
Specifically, the data format of the communication between the customer set up and the far end device can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that the customer set up and distal end dress The data format of communication between putting can also use the other data formats for supporting numerous types of data to represent and transmit for example Extensible markup language (XML) etc..
Specifically, the Seismicity object can be the parent object or subobject or fraternal object of the remote object.
Specifically, the unique identity number of the Seismicity object can be, but not limited to using hashing algorithm (also known as Hash algorithm) produce, it is to be understood that the mode that other manner can also be used for example to be set by program designer oneself is produced It is raw, as long as the unique identity number of each remote object is different.
Step S36:Receive the unique identity number for the Seismicity object that the far end device is sent.
Where client process and remote object of the identification method of remote object provided by the invention in customer set up into Communications between journey are all string datas, and special requirement is implemented without to communication, and therefore, it can be supported across flat Platform accesses remote object, and realization mechanism also allows to realize using multilingual, and long-range right using unique identity number mark As it is (such as fraternal right very easily can to obtain and identify other objects associated therewith by the relation between remote object As), so as to add the quantity for the remote object that can be operated.
Fourth embodiment
Fig. 4 is the flow chart of the identification method for the remote object that fourth embodiment provides.As shown in figure 4, remote object Identification method comprises the following steps:
Step S41:Define remote object.
Step S42:Establish and communicate to connect with far end device.
Step S43:The method name for obtaining remote object and query path are sent to the far end device, so that described Far end device obtains remote object using the method for obtaining remote object according to the query path, and causes the far end device The remote object is identified using unique identity number.
Step S44:Receive the unique identity number for the remote object that the far end device is sent.
Step S45:The unique identities identifier of the method name of sending action and the remote object to the distal end fills Put, so that the far end device finds the remote object using the unique identity number, and cause described long-range Object performs action using the method for action.
Specifically, the data format of the communication between the customer set up and the far end device can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that the customer set up and distal end dress The data format of communication between putting can also use the other data formats for supporting numerous types of data to represent and transmit for example Extensible markup language (XML) etc..
Specifically, the method name of the action can be, but not limited to as the action names such as click, the remote object profit The operation such as click is performed with the method for action.
Step S46:Receive the result produced after the method for the execution action that the far end device is sent.
Where client process and remote object of the identification method of remote object provided by the invention in customer set up into Communications between journey are all string datas, and special requirement is implemented without to communication, and therefore, it can be supported across flat Platform accesses remote object, and realization mechanism also allows to realize using multilingual, and long-range right using unique identity number mark As when such as clicking operation is acted using remote object execution, all without being searched again through query path, reducing Data volume for communication.
5th embodiment
Fig. 5 is the flow chart of the identification method for the remote object that the 5th embodiment provides.As shown in figure 5, remote object Identification method comprises the following steps:
Step S51:Define remote object.
Specifically, remote object is defined to refer to carry out protocol conventions with the remote object for providing method.For example, will " getControl " is defined as " acquisition object ", " getProperty " is defined as " acquisition object properties ", will " getParent " is defined as " acquisition parent object ", and " click " is defined as " clicking operation " etc..
Step S52:Establish and communicate to connect with customer set up.
Specifically, it can be, but not limited to realize using the mode of socket (Socket) and establish communication link with customer set up Connect.Other manner such as web socket cross-platform, across language is supported it is understood that can also utilize (websocket) realize to establish with customer set up and communicate to connect.
Step S53:Method name and the query path for the acquisition remote object that the customer set up is sent are responded, using obtaining The method of remote object is taken to obtain remote object according to the query path.
Specifically, the data format of the communication between the customer set up and the far end device can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that the customer set up and distal end dress The data format of communication between putting can also use the other data formats for supporting numerous types of data to represent and transmit for example Extensible markup language (XML) etc..
Step S54:The remote object is identified using unique identity number.
Specifically, it can be, but not limited to travel through all remote objects of the far end device according to the query path, most The remote object for meeting the query path is found eventually.Traversal refers to from a remote object, according between remote object The other remote objects of Relation acquisition.
Specifically, the unique identity number can determine how many byte used according to the quantity of remote object.
Specifically, the unique identity number can be, but not limited to produce using hashing algorithm (also known as hash algorithm), It is understood that the mode that other manner can also be used for example to be set by program designer oneself produces, as long as each remote The unique identity number of journey object is different.
Step S55:Send the unique identity number extremely customer set up of the remote object.
Where client process and remote object of the identification method of remote object provided by the invention in customer set up into Communications between journey are all string datas, and special requirement is implemented without to communication, and therefore, it can be supported across flat Platform accesses remote object, and realization mechanism also allows to realize using multilingual, and long-range right using unique identity number mark As, it need not all be searched before using remote object every time again through query path, reduce the data volume for communication, and Possess and very easily obtain and identify other objects associated therewith (such as fraternal object) by the relation between remote object Ability, so as to add the quantity for the remote object that can be operated.
Sixth embodiment
Fig. 6 is the flow chart of the identification method for the remote object that sixth embodiment provides.As shown in fig. 6, remote object Identification method comprises the following steps:
Step S61:Define remote object.
Step S62:Establish and communicate to connect with customer set up.
Step S63:Method name and the query path for the acquisition remote object that the customer set up is sent are responded, using obtaining The method of remote object is taken to obtain remote object according to the query path.
Step S64:The remote object is identified using unique identity number.
Step S65:Send the unique identity number extremely customer set up of the remote object.
Step S66:Respond the method name of the acquisition attribute that the customer set up is sent, the title of attribute and described unique Identity number, the remote object is found using the unique identity number, and is obtained using the method for obtaining attribute The corresponding property value of title of the attribute of the remote object.
Specifically, the data format of the communication between the customer set up and the far end device can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that the customer set up and distal end dress The data format of communication between putting can also use the other data formats for supporting numerous types of data to represent and transmit for example Extensible markup language (XML) etc..
Specifically, the title of attribute can be, but not limited to the attribute being defined for remote object such as size, type Deng.
Step S67:Send the corresponding property value of title of the attribute of the remote object and fill to the client Put.
Where client process and remote object of the identification method of remote object provided by the invention in customer set up into Communications between journey are all string datas, and special requirement is implemented without to communication, and therefore, it can be supported across flat Platform accesses remote object, and realization mechanism also allows to realize using multilingual, and long-range right using unique identity number mark As, it need not all be searched before the attribute such as object size of object is obtained using remote object again through query path, and It is directly to be searched by unique identity number, reduces the data volume for communication.
7th embodiment
Fig. 7 is the flow chart of the identification method for the remote object that the 7th embodiment provides.As shown in fig. 7, remote object Identification method comprises the following steps:
Step S71:Define remote object.
Step S72:Establish and communicate to connect with customer set up.
Step S73:Method name and the query path for the acquisition remote object that the customer set up is sent are responded, using obtaining The method of remote object is taken to obtain remote object according to the query path.
Step S74:The remote object is identified using unique identity number.
Step S75:Send the unique identity number extremely customer set up of the remote object.
Step S76:Respond the method name of the acquisition Seismicity object that the customer set up is sent and described long-range right The unique identities identifier of elephant, the remote object is found using the unique identity number, and is remotely closed using obtaining The method for joining object obtains Seismicity object, and identifies the Seismicity object using unique identity number.
Specifically, the data format of the communication between the customer set up and the far end device can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that the customer set up and distal end dress The data format of communication between putting can also use the other data formats for supporting numerous types of data to represent and transmit for example Extensible markup language (XML) etc..
Specifically, the Seismicity object can be the parent object or subobject or fraternal object of the remote object.
Specifically, the unique identity number of the Seismicity object can be, but not limited to using hashing algorithm (also known as Hash algorithm) produce, it is to be understood that the mode that other manner can also be used for example to be set by program designer oneself is produced It is raw, as long as the unique identity number of each remote object is different.
Step S77:Send the unique identity number extremely customer set up of the Seismicity object.
Where client process and remote object of the identification method of remote object provided by the invention in customer set up into Communications between journey are all string datas, and special requirement is implemented without to communication, and therefore, it can be supported across flat Platform accesses remote object, and realization mechanism also allows to realize using multilingual, and long-range right using unique identity number mark As it is (such as fraternal right very easily can to obtain and identify other objects associated therewith by the relation between remote object As), so as to add the quantity for the remote object that can be operated.
8th embodiment
Fig. 8 is the flow chart of the identification method for the remote object that the 8th embodiment provides.As shown in figure 8, remote object Identification method comprises the following steps:
Step S81:Define remote object.
Step S82:Establish and communicate to connect with customer set up.
Step S83:Method name and the query path for the acquisition remote object that the customer set up is sent are responded, using obtaining The method of remote object is taken to obtain remote object according to the query path.
Step S84:The remote object is identified using unique identity number.
Step S85:Send the unique identity number extremely customer set up of the remote object.
Step S86:Respond the method name of action and the unique identities of the remote object that the customer set up is sent Identifier, the remote object is found using the unique identity number, and causes the remote object according to action Method performs action.
Specifically, the data format of the communication between the customer set up and the far end device can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that the customer set up and distal end dress The data format of communication between putting can also use the other data formats for supporting numerous types of data to represent and transmit for example Extensible markup language (XML) etc..
Specifically, the method name of the action can be, but not limited to as the action names such as click, the remote object profit The operation such as click is performed with the method for action.
Step S87:The result that is produced after the method for performing the action is sent to the customer set up.
Where client process and remote object of the identification method of remote object provided by the invention in customer set up into Communications between journey are all string datas, and special requirement is implemented without to communication, and therefore, it can be supported across flat Platform accesses remote object, and realization mechanism also allows to realize using multilingual, and long-range right using unique identity number mark As when such as clicking operation is acted using remote object execution, all without being searched again through query path, reducing Data volume for communication.
9th embodiment
Fig. 9 is the structure chart for the customer set up that the 9th embodiment provides.As shown in figure 9, the customer set up 90 includes the One communication unit 900 and the second communication unit 901.
Wherein, the first communication unit 900 is used to establish with far end device and communicates to connect, to send the side for obtaining remote object Legitimate name and query path are to far end device.Second communication unit 901 is for receiving the remote object of far end device transmission only One identity identification number.
Wherein, the first communication unit 900 and the second communication unit 901 may include various existing for performing these functions Circuit element, for example, antenna, RF transceiver, digital signal processor, memory etc..First communication unit 900 and Two communication units 901 can be communicated or be passed through wireless network with various networks such as internet, intranet, wireless network Communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).It is above-mentioned Wireless network can use various communication standards, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division multiple Access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time division multiple access technology (time Division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) is (such as U.S. State Institute of Electrical and Electric Engineers standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement of news and short message, and any other suitable communications protocol, or even may include that those are not developed currently yet Agreement.
Specifically, the first communication unit 900 can be, but not limited to establish with far end device using socket (Socket) logical Letter connection.It is understood that can also utilize support it is cross-platform, establish communication link across the other manner and far end device of language Connect.
Specifically, the data format of the communication between customer set up 90 and the far end device can be, but not limited to use and add Scripting object mark (Javascript object Notation, JSON) data format realization, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that customer set up 90 and the far end device Between communication data format can also use support numerous types of data represent and transmission other data formats for example may be used Extending mark language (XML) etc..
Specifically, the unique identity number can determine how many byte used according to the quantity of remote object.
Specifically, the unique identity number can be, but not limited to produce using hashing algorithm (also known as hash algorithm), It is understood that the mode that other manner can also be used for example to be set by program designer oneself produces, as long as each remote The unique identity number of journey object is different.
The communications between process where the client process and remote object of customer set up provided by the invention are all It is string data, special requirement is implemented without to communication, therefore, it can supports cross-platform access remote object, realize Mechanism also allows to realize using multilingual, and identifies remote object using unique identity number, every time using remote object It is preceding all to be searched again through query path, reduce the data volume for communication, and possess by between remote object Relation very easily obtain and identify the abilities of other objects associated therewith (such as fraternal object), can so as to add The quantity of the remote object operated.
Tenth embodiment
Figure 10 is the structure chart for the far end device that the tenth embodiment provides.As shown in Figure 10, far end device 100 includes the 3rd Communication unit 1000, first processing units 1001 and fourth communication unit 1002.The processing of third communication unit 1000, first is single Member 1001 and fourth communication unit 1002 can be, but not limited to mutually communicate by one or more communication bus/signal wire.
Wherein, third communication unit 1000 and fourth communication unit 1002 may include various existing for performing these The circuit element of function, for example, antenna, RF transceiver, digital signal processor, memory etc..Third communication unit 1000 and fourth communication unit 1002 can be communicated with various networks such as internet, intranet, wireless network or Communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Person's Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, and including but not limited to the whole world is mobile Communication system (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division Multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/ Or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement of news and short message, and any other suitable communications protocol, or even may include that those are not developed currently yet Agreement.
Wherein, third communication unit 1000 is used to establish with customer set up and communicates to connect, and is sent out with receiving the customer set up The method name of the acquisition remote object sent and the query path.First processing units 1001 are used for long-range using obtaining The method of object obtains remote object according to the query path, and identifies the remote object using unique identity number. Fourth communication unit 1002 is used to send the unique identity number of the remote object to the customer set up.
Wherein, far end device 100 can also include storage unit, and storage unit is used to store the unique of the remote object Identity number.It is understood that third communication unit 1000, first processing units 1001, fourth communication unit 1002 and The storage unit may be disposed in memory.Memory may include nonvolatile memory, as one or more is magnetic Storage device, flash memory or other non-volatile solid state memories.
Specifically, it can be, but not limited to realize using the mode of socket (Socket) and establish communication link with customer set up Connect.Other manner such as web socket cross-platform, across language is supported it is understood that can also utilize (websocket) realize to establish with customer set up and communicate to connect.
Specifically, the data format of the communication between the customer set up and far end device 100 can be, but not limited to use Scripting object mark (Javascript object Notation, JSON) data format is added to realize, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that the customer set up and far end device The data format of communication between 100 can also use the other data formats for supporting numerous types of data to represent and transmit for example Extensible markup language (XML) etc..
Specifically, it can be, but not limited to travel through all remote objects of the far end device according to the query path, most The remote object for meeting the query path is found eventually.Traversal refers to from a remote object, according between remote object The other remote objects of Relation acquisition.
Specifically, the unique identity number can determine how many byte used according to the quantity of remote object.
Specifically, the unique identity number can be, but not limited to produce using hashing algorithm (also known as hash algorithm), It is understood that the mode that other manner can also be used for example to be set by program designer oneself produces, as long as each remote The unique identity number of journey object is different.
Process where the remote object of far end device provided by the invention and leading between the client process of customer set up Letter transmission is all string data, is implemented without special requirement to communication, therefore, it can support that cross-platform access is long-range Object, realization mechanism also allow to realize using multilingual, and using unique identity number mark remote object, use every time It need not all be searched before remote object again through query path, reduce the data volume for communication, and possess by remote Relation between journey object very easily obtains and identifies the ability of other objects associated therewith (such as fraternal object), so that Add the quantity for the remote object that can be operated.
11st embodiment
Figure 11 is the structure chart of the mark system for the remote object that the 11st embodiment provides.As shown in figure 11, it is long-range right The mark system of elephant includes customer set up 110 and far end device 120.
Wherein, remote object mark system can be, but not limited to as test system, customer set up 110 can be, but not limited to for The test device of testing results program, far end device 120 can be, but not limited to as terminal to be measured such as smart mobile phone, tablet electricity Brain, pocket computer on knee and desktop computer etc..
Wherein, customer set up 110 is used to establish with far end device 120 and communicates to connect, and sends the side for obtaining remote object Legitimate name and query path are to far end device 120.Far end device 120 utilizes the method for obtaining remote object according to the inquiry road Footpath obtains remote object, and identifies the remote object using unique identity number, and by unique body of the remote object Part identification number is sent to customer set up 110.
Specifically, can be, but not limited to realize customer set up 110 and far end device using the mode of socket (Socket) 120 establish communication connection.Other manner such as network set cross-platform, across language is supported it is understood that can also utilize The mode for connecing word (websocket) realizes that customer set up 110 establishes communication connection with far end device 120.
Specifically, the data format of the communication between customer set up 110 and far end device 120 can be, but not limited to use and add Scripting object mark (Javascript object Notation, JSON) data format realization, such as using “{‘method’:' getControl ', ' qpath ':qpath}”.It is understood that customer set up 110 and far end device 120 Between communication data format can also use support numerous types of data represent and transmission other data formats for example may be used Extending mark language (XML) etc..
Specifically, far end device 120 can be, but not limited to travel through all remote objects according to the query path, finally look for To the remote object for meeting the query path.
Specifically, the unique identity number can determine how many byte used according to the quantity of remote object.
Specifically, the unique identity number can be, but not limited to produce using hashing algorithm (also known as hash algorithm), It is understood that the mode that other manner can also be used for example to be set by program designer oneself produces, as long as each remote The unique identity number of journey object is different.
It is understood that customer set up 110 can with but be not limited to use in send and obtain the method name of attribute, attribute Title and the unique identity number to far end device 120;Far end device 120 is additionally operable to utilize the unique identity The remote object number is found, and the title for obtaining using the method for obtaining attribute the attribute for stating remote object is corresponding Property value, and the property value is sent to customer set up 110.
It is understood that customer set up 110 can with but be not limited to use in send obtain Seismicity object method The unique identities identifier of title and the remote object is to far end device 120;Far end device 120 is additionally operable to using described unique Identity number finds the remote object, and obtains Seismicity object using the method for obtaining Seismicity object, and The unique identity number of the Seismicity object is sent out using after the unique identity number mark Seismicity object Send to customer set up 110.
It is understood that customer set up 110 can with but be not limited to use in the method name of sending action and described remote To far end device 120, far end device 120 is additionally operable to look into using the unique identity number the unique identities identifier of journey object The remote object is found, and causes the remote object to perform action using the method for action, and sends and performs the action Method after the result that produces to customer set up 110.
The mark system of remote object provided by the invention is logical between the process where customer set up and remote object Letter transmission is all string data, is implemented without special requirement to communication, therefore, it can support that cross-platform access is long-range Object, realization mechanism also allow to realize using multilingual, and using unique identity number mark remote object, use every time It need not all be searched before remote object again through query path, reduce the data volume for communication, and possess by remote Relation between journey object very easily obtains and identifies the ability of other objects associated therewith (such as fraternal object), so that Add the quantity for the remote object that can be operated.
It is noted that each embodiment in this specification is described by the way of progressive, each embodiment emphasis What is illustrated is all the difference with other embodiment, between each embodiment identical similar part mutually referring to.It is right For device class embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part referring to The part explanation of embodiment of the method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or device including a series of elements not only will including those Element, but also including other elements that are not explicitly listed, or further include as this process, method, article or device Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there are other identical element in process, method, article or device including key element.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
More than, only it is presently preferred embodiments of the present invention, not makees limitation in any form to the present invention, although this Invention is disclosed above with preferred embodiment, but is not limited to the present invention, any person skilled in the art, Do not depart from the range of technical solution of the present invention, when the technology contents using the disclosure above make a little change or are modified to equivalent The equivalent embodiment of change, as long as being without departing from technical solution of the present invention content, the technical spirit according to the present invention is real to more than Any simple modification, equivalent change and modification that example is made is applied, in the range of still falling within technical solution of the present invention.

Claims (10)

  1. A kind of 1. identification method of remote object, applied to customer set up, it is characterised in that the identification method of the remote object Including:
    Define remote object;
    Establish and communicate to connect with far end device;
    The method name for obtaining remote object and query path are sent to the far end device, so that the far end device utilizes The method for obtaining remote object obtains remote object according to the query path, and causes the far end device to utilize unique identities Identification number identifies the remote object;And
    Receive the unique identity number for the remote object that the far end device is sent;
    Wherein, also wrapped after the step of unique identity of the remote object for receiving the far end device transmission Include:Send the method name of acquisition Seismicity object and unique identities identifier to the distal end of the remote object fills Put, so that the far end device finds the remote object using the unique identity number, and cause the distal end Device obtains Seismicity object using the method for obtaining Seismicity object, and causes the far end device to utilize unique identities Identification number identifies the Seismicity object;And receive the unique body for the Seismicity object that the far end device is sent Part identification number;
    Wherein, also wrapped after the step of unique identity of the remote object for receiving the far end device transmission Include:The unique identities identifier of the method name of sending action and the remote object is to the far end device, so that described Far end device finds the remote object using the unique identity number, and causes the remote object using action Method performs action;And receive the result produced after the method for the execution action that the far end device is sent.
  2. 2. the identification method of remote object as claimed in claim 1, it is characterised in that described to receive the far end device transmission The remote object unique identity the step of after further include:
    The method name, the title of attribute and the unique identity number that obtain attribute are sent to the far end device, so that Obtain the far end device and find the remote object using the unique identity number, and the far end device is utilized Obtain the corresponding property value of title of the attribute of the method acquisition remote object of attribute;And
    Receive the corresponding property value of title of the attribute for the remote object that the far end device is sent.
  3. 3. the identification method of remote object as claimed in claim 1, it is characterised in that the Seismicity object includes described The parent object or subobject of remote object or fraternal object.
  4. A kind of 4. identification method of remote object, applied to far end device, it is characterised in that the identification method of the remote object Including:
    Define remote object;
    Establish and communicate to connect with customer set up;
    Method name and the query path for the acquisition remote object that the customer set up is sent are responded, using obtaining remote object Method obtains remote object according to the query path;
    The remote object is identified using unique identity number;And
    Send the unique identity number extremely customer set up of the remote object;
    Wherein, further included after the unique identity number for sending the remote object to the step of customer set up: Respond the method name for the acquisition Seismicity object that the customer set up is sent and the unique identities identification of the remote object Number, the remote object is found using the unique identity number, and obtain using the method for obtaining Seismicity object Seismicity object, and identify the Seismicity object using unique identity number;And send the Seismicity pair The unique identity number of the elephant extremely customer set up;
    Wherein, further included after the unique identity number for sending the remote object to the step of customer set up: Respond the method name of action and the unique identities identifier of the remote object that the customer set up is sent, using it is described only One identity identification number finds the remote object, and causes the remote object to perform action using the method for action;And The result that is produced after the method for performing the action is sent to the customer set up.
  5. 5. the identification method of remote object as claimed in claim 4, it is characterised in that described to send the remote object only Further included after the step of one identity identification number to customer set up:
    Method name, the title of attribute and the unique identity number for the acquisition attribute that the customer set up is sent are responded, The remote object is found using the unique identity number, and the remote object is obtained using the method for obtaining attribute The attribute the corresponding property value of title;And
    The corresponding property value of title of the attribute of the remote object is sent to the customer set up.
  6. 6. the identification method of remote object as claimed in claim 4, it is characterised in that the Seismicity object includes described The parent object or subobject of remote object or fraternal object.
  7. A kind of 7. mark system of remote object, it is characterised in that the mark system of the remote object include customer set up with And far end device;
    The customer set up be used for the far end device establish communicate to connect, and send obtain remote object method name and Query path is to the far end device;
    The far end device obtains remote object using the method for obtaining remote object according to the query path, and using uniquely Identity number identifies the remote object, and the unique identity number of the remote object is sent to the client and is filled Put;
    Wherein, the customer set up be additionally operable to send obtain Seismicity object method name and the remote object it is unique Identity recognition number is to the far end device;The far end device is additionally operable to find using the unique identity number described remote Journey object, and Seismicity object is obtained using the method for obtaining Seismicity object, and identified using unique identity number The unique identity number of the Seismicity object is sent to the customer set up after the Seismicity object;
    The customer set up is additionally operable to the method name of sending action and the unique identities identifier of the remote object to described Far end device;The far end device is additionally operable to find the remote object using the unique identity number, and causes institute State remote object and perform action using the method for action, and send the result that is produced after the method for the execution action to the visitor Family device.
  8. 8. the mark system of remote object as claimed in claim 7, it is characterised in that the customer set up includes:
    First communication unit, communicates to connect for being established with the far end device, to send the method for the acquisition remote object Title and the query path are to the far end device;And
    Second communication unit, the unique identity number of the remote object sent for receiving the far end device.
  9. 9. the mark system of remote object as claimed in claim 7, it is characterised in that the far end device includes:
    Third communication unit, communicates to connect for being established with the customer set up, to receive described in the customer set up transmission Obtain the method name of remote object and the query path;
    First processing units, for obtaining remote object, and profit according to the query path using the method for obtaining remote object The remote object is identified with unique identity number;And
    Fourth communication unit, for sending the unique identity number of the remote object to the customer set up.
  10. 10. the mark system of remote object as claimed in claim 7, it is characterised in that the customer set up is additionally operable to send Obtain method name, the title of attribute and the unique identity number extremely far end device of attribute;The far end device It is additionally operable to find the remote object using the unique identity number, and is obtained and stated remotely using the method for obtaining attribute The corresponding property value of title of the attribute of object, and the property value is sent to the customer set up.
CN201510304753.6A 2015-06-04 2015-06-04 A kind of identification method of remote object and the mark system of remote object Active CN104965864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510304753.6A CN104965864B (en) 2015-06-04 2015-06-04 A kind of identification method of remote object and the mark system of remote object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510304753.6A CN104965864B (en) 2015-06-04 2015-06-04 A kind of identification method of remote object and the mark system of remote object

Publications (2)

Publication Number Publication Date
CN104965864A CN104965864A (en) 2015-10-07
CN104965864B true CN104965864B (en) 2018-05-08

Family

ID=54219900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510304753.6A Active CN104965864B (en) 2015-06-04 2015-06-04 A kind of identification method of remote object and the mark system of remote object

Country Status (1)

Country Link
CN (1) CN104965864B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1298513A (en) * 1998-02-26 2001-06-06 太阳微系统公司 Methods and apparatus for remote mothod invocation
CN1797402A (en) * 2004-12-29 2006-07-05 国际商业机器公司 Method and device that allow to connect to multiple database server
CN101202689A (en) * 2006-10-23 2008-06-18 韩国电子通信研究院 Network robot system and method of communication therein
CN103250390A (en) * 2010-11-23 2013-08-14 高通股份有限公司 Object-based transport protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1298513A (en) * 1998-02-26 2001-06-06 太阳微系统公司 Methods and apparatus for remote mothod invocation
CN1797402A (en) * 2004-12-29 2006-07-05 国际商业机器公司 Method and device that allow to connect to multiple database server
CN101202689A (en) * 2006-10-23 2008-06-18 韩国电子通信研究院 Network robot system and method of communication therein
CN103250390A (en) * 2010-11-23 2013-08-14 高通股份有限公司 Object-based transport protocol

Also Published As

Publication number Publication date
CN104965864A (en) 2015-10-07

Similar Documents

Publication Publication Date Title
CN103905447B (en) Service link selects control method and equipment
KR101811966B1 (en) Mechanisms for semantics publishing and discovery
CN105379313B (en) Semantic support and management in M2M systems
WO2016019287A2 (en) Mechanism and service for device naming
CN104580179B (en) A kind of message treatment method, device and server
CN104067671A (en) Method and apparatus for automatic service discovery and connectivity
CN106326091A (en) Browser webpage compatibility detection method and system
CN108353022A (en) A kind of processing method of data message, apparatus and system
KR102461022B1 (en) Method and Apparatus for Analysis of Log Data
CN110557336A (en) Addressing routing method and system
CN107608720A (en) Using the display methods of footmark, device, mobile terminal and storage medium
EP3075174B1 (en) Method and apparatus for identifying application instances within a machine-to-machine network domain
US7512715B2 (en) System and method for requesting a resource over at least one network with reduced overhead
CN105049452B (en) Switching method, device and the intelligent terminal of resource downloading mode
CN104363261B (en) Information-pushing method, device and server
CN104410724A (en) Method for realizing device type recognition in intelligent gateway based on HTTP protocol
JP2008510332A (en) Client provisioning with links
CN104965864B (en) A kind of identification method of remote object and the mark system of remote object
CN104092720A (en) Playlist sharing method and device
US9622070B2 (en) Updating subscription information
US9131360B2 (en) Apparatus and method of open mobile alliance
CN106528175A (en) Generation method of data interface oriented to BS frame
CN107733767B (en) Method, device and system for establishing social relationship network
KR101532877B1 (en) Advertisment service server and system for providing advertisement to the user terminal through wireless access point
CN106028469A (en) Communication connection establishment method and device, and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant