CN108540545A - The two-way dual asynchronous transport method of cloud computing environment spatial data based on multi-Agent - Google Patents

The two-way dual asynchronous transport method of cloud computing environment spatial data based on multi-Agent Download PDF

Info

Publication number
CN108540545A
CN108540545A CN201810260279.5A CN201810260279A CN108540545A CN 108540545 A CN108540545 A CN 108540545A CN 201810260279 A CN201810260279 A CN 201810260279A CN 108540545 A CN108540545 A CN 108540545A
Authority
CN
China
Prior art keywords
spatial data
xml
data transmission
read
agent
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.)
Granted
Application number
CN201810260279.5A
Other languages
Chinese (zh)
Other versions
CN108540545B (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.)
Wuhan University of Technology WUT
Original Assignee
Wuhan University of Technology WUT
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 Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
Priority to CN201810260279.5A priority Critical patent/CN108540545B/en
Publication of CN108540545A publication Critical patent/CN108540545A/en
Application granted granted Critical
Publication of CN108540545B publication Critical patent/CN108540545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote

Abstract

The invention discloses the two-way dual asynchronous transport methods of cloud computing environment spatial data based on multi-Agent, the present invention is realized by four class Agent, is spatial data request Agent1, spatial data response Agent2, spatial data transmission Agent1 and spatial data transmission Agent2 respectively.Without Direct Communication between each Agent, but communicated indirectly by the content of example1.xml and example2.xml, read-write properties, to realize two-way, dual asynchronous space data transmission, substantially increase the efficiency of system with it is fault-tolerant.

Description

The two-way dual asynchronous transmission of cloud computing environment spatial data based on multi-Agent Method
Technical field
The invention belongs to geographic information system technology fields, and in particular under a kind of cloud computing environment based on multi-Agent Spatial data is two-way, dual asynchronous transmission mechanism, realize trans-departmental, integration across database spatial data efficiently, reliable transmission.
Background technology
The transmitted data on network amount of spatial information is big, period of reservation of number is long, is always to influence user experience and hinder empty Between information sharing a problem, with the maturation of cloud computing technology, the spatial information sharing based on cloud platform, become one compel The demand cut.The present invention, by multi-Agent technology, it is two-way, dual different to devise a kind of spatial data on the framework of cloud platform Transmission mechanism is walked, to realize that Space-based information transmission provides a new feasible program with shared.
Agent refers to meter continuing independently to play a role, having many characteristics, such as independence, interactivity, reactivity and initiative Entity is calculated, it can be by personification to react the preference of user, and represent user and interacted with other Agent.Multiple Agent can be with Specific complex task is completed in the group of one cooperation of composition, can coordinate respective behavior, Bargaining Solution between these Agent Certainly mutual conflict is cooperated with each other to complete common target.
Invention content
It is big for Space-based information transmission amount, the time is long, synchronous real-time Transmission needs system to fall into a long wait, and then influences cloud The problem of computing platform working efficiency, two-way, dual asynchronous transport method that the present invention provides a kind of spatial datas.
The technical solution adopted in the present invention is:A kind of cloud computing environment spatial data based on multi-Agent is two-way double Weight asynchronous transport method, which is characterized in that include the following steps:
Step 1:Spatial data request Agen1, which generates a spatial data transmission, to be asked and an xml document is written Example1.xml, it is writeable then to change document properties;Start a watcher thread, judges whether the document attribute is only It reads;
Step 2:Whether the example1.xml document properties in spatial data transmission Agent1 judgment steps 1 are changed to can It writes, then reads spatial data transmission request content in this way, and spatial data transmission request is sent to response by cloud platform The spatial data transmission Agent2 at end;
Step 3:The spatial data transmission request content of reception is written one by the spatial data transmission Agent2 of responder Xml document example2.xml, and example2.xml document properties are rewritten as writeable;
Step 4:Spatial data response Agent2 judges example2.xml document properties;It is such as writeable, then read space number According to transmission request content, corresponding spatial data is generated, and file to be transmitted is written, metadata is written Example2.xml, it is read-only then to rewrite its document properties;
Step 5:After spatial data transmission Agent2 determines that example2.xml document properties are read-only, read wherein to be passed Defeated metadata, and start the endpoint that transmission process is sent to where spatial data request Agnet1;
Step 6:The spatial data transmission Agent1 of spatial data request end receives data, and the metadata that will receive data Example1.xml documents are written, it is read-only then to change its attribute;
Step 7:Spatial data request Agent1 judges example1.xml document properties after read-only, to read the sky of reception Between data metadata information, read transmission come spatial data, complete a unidirectional, dual asynchronous transmission process;
Step 8:The rapid 1- steps 7 of reverse execution realize two-way, asynchronous spatial data transmission process.
The present invention realized by four class Agent, be respectively spatial data request Agent1, spatial data response Agent2, Spatial data transmission Agent1 and spatial data transmission Agent2.Without Direct Communication between each Agent, but pass through Content, the read-write properties of example1.xml and example2.xml are communicated indirectly, to realize two-way, dual asynchronous sky Between data transmission, substantially increase the efficiency of system with it is fault-tolerant.
Description of the drawings
Fig. 1 is the flow chart of the embodiment of the present invention;
Fig. 2 is the spacing query method flow chart of the embodiment of the present invention.
Specific implementation mode
Understand for the ease of those of ordinary skill in the art and implement the present invention, with reference to the accompanying drawings and embodiments to this hair It is bright to be described in further detail, it should be understood that implementation example described herein is merely to illustrate and explain the present invention, not For limiting the present invention.
Referring to Fig.1, a kind of cloud computing environment spatial data based on multi-Agent provided by the invention is two-way dual asynchronous Transmission method is realized by four class Agent, is spatial data request Agent1, spatial data response Agent2, space number respectively According to transmission Agent1 and spatial data transmission Agent2;Without Direct Communication between each Agent, but pass through Content, the read-write properties of example1.xml and example2.xml are communicated indirectly, to realize two-way, dual asynchronous sky Between data transmission;
Specifically include following steps:
Step 1:Spatial data request Agen1, which generates a spatial data transmission, to be asked and an xml document is written Example1.xml, it is writeable then to change document properties;Start a watcher thread, judges whether the document attribute is only It reads;
When spatial data request Agent1 obtains a file transmission request character string, by example1.xml files Attribute changes are writeable, then call " writing XML methods " that transmission request character string is written in XML file, while by type The value of node is changed to " C# " (indicating that C# programs are modified XML file), then starts a thread and monitors, when It when the attribute of example1.xml files is writeable, calls " reading XML document method ";
Step 2:Whether the example1.xml document properties in spatial data transmission Agent1 judgment steps 1 are changed to can It writes, then reads spatial data transmission request content in this way, and spatial data transmission request is sent to response by cloud platform The spatial data transmission Agent2 at end;
One " reading XML behaviors " is designed in spatial data transmission Agent1, judges example.xml texts every 100ms The attribute of part reads data transfer request content, on this basis if type nodes if this document is writeable attribute Value is " C# " and the value of queryStr nodes is not that sky then starts " sending message behavior ", which is asked to put down by cloud Platform is sent to the data transmission Agent2 of the other end;
Step 3:The spatial data transmission request content of reception is written one by the spatial data transmission Agent2 of responder Xml document example2.xml, and example2.xml document properties are rewritten as writeable;
There are one the behavior of " receiving message " in the spatial data transmission Agent2 of responder, function is to receive data to pass The message that defeated Agent1 is sent, normal condition are constantly in blocked state, wait message to be received.Once receiving message, the behavior Start " writing XML behaviors " first, the attribute of example2.xml files is changed to writeable, then will come from request of data Agent1 File transmission request character string write in specified XML file, and by the value of type nodes be set as " Java " (indicate Java journeys Sequence is modified XML file).Then start a watcher thread, when example1.xm2 files attribute be can It when writing, calls " reading XML document method ";
Step 4:Spatial data response Agent2 judges example2.xml document properties;It is such as writeable, then read space number According to transmission request content, corresponding spatial data is generated, and file to be transmitted is written, by filename to be transmitted, the text at place Example2.xml is written in the metadata such as part folder, and it is read-only then to rewrite its document properties;
The design one " reading XML methods " in spatial data responds Agent2, this method will judge once every 100ms The attribute of example2.xml files is read through if the XML file is writeable attribute, and judges that its type node is It is no to be " value of Java " and queryStr nodes is not sky, after reading XML file, according to request of data Agent1 to space letter The request of breath, spacing query method obtains spatial data (see Fig. 2) in invoking server generalized information system, and text to be transmitted is written Part presss from both sides, and example2.xml is written in the metadata such as file at filename to be transmitted, place, then rewriting its document properties is It is read-only;
Step 5:After spatial data transmission Agent2 determines that example2.xml document properties are read-only, read wherein to be passed Defeated metadata, and start the endpoint that transmission process is sent to where spatial data request Agnet1;
Step 6:The spatial data transmission Agent1 of spatial data request end receives data, and the metadata that will receive data Example1.xml documents are written, it is read-only then to change its attribute;
The spatial data transmission Agent1 at request of data end is after receiving transmitted data by its filename, store path Etc. metadata example1.xml documents are written, it is read-only then to change its attribute, is then sent to data transmission Agent2 true Recognize information;
Step 7:Spatial data request Agent1 judges example1.xml document properties after read-only, to read the sky of reception Between data metadata information, read transmission come spatial data, complete a unidirectional, dual asynchronous transmission process;
Step 8:The rapid 1- steps 7 of reverse execution realize two-way, asynchronous spatial data transmission process.
It should be understood that the part that this specification does not elaborate belongs to the prior art.
It should be understood that the above-mentioned description for preferred embodiment is more detailed, can not therefore be considered to this The limitation of invention patent protection range, those skilled in the art under the inspiration of the present invention, are not departing from power of the present invention Profit requires under protected ambit, can also make replacement or deformation, each fall within protection scope of the present invention, this hair It is bright range is claimed to be determined by the appended claims.

Claims (3)

1. a kind of two-way dual asynchronous transport method of cloud computing environment spatial data based on multi-Agent, it is characterised in that:It is logical It crosses four class Agent to realize, is spatial data request Agent1, spatial data response Agent2, spatial data transmission respectively Agent1 and spatial data transmission Agent2;Without Direct Communication between each Agent, but by example1.xml with Content, the read-write properties of example2.xml are communicated indirectly, to realize two-way, dual asynchronous space data transmission;
The method specifically includes following steps:
Step 1:Spatial data request Agen1, which generates a spatial data transmission, to be asked and an xml document is written Example1.xml, it is writeable then to change document properties;Start a watcher thread, judges whether the document attribute is only It reads;
Step 2:It is writeable whether the example1.xml document properties in spatial data transmission Agent1 judgment steps 1 are changed to, such as It is to read spatial data transmission request content, and spatial data transmission request is sent to the sky of responder by cloud platform Between data transmission Agent2;
Step 3:An xml text is written in the spatial data transmission request content of reception by the spatial data transmission Agent2 of responder Shelves example2.xml, and example2.xml document properties are rewritten as writeable;
Step 4:Spatial data response Agent2 judges example2.xml document properties;It is such as writeable, then read spatial data biography Defeated request content generates corresponding spatial data, and file to be transmitted is written, and example2.xml is written in metadata, so After rewrite its document properties be it is read-only;
Step 5:After spatial data transmission Agent2 determines that example2.xml document properties are read-only, member wherein to be transmitted is read Data, and start the endpoint that transmission process is sent to where spatial data request Agnet1;
Step 6:The spatial data transmission Agent1 of spatial data request end receives data, and the metadata for receiving data is written Example1.xml documents, it is read-only then to change its attribute;
Step 7:Spatial data request Agent1 judges example1.xml document properties after read-only, to read the space number of reception According to metadata information, read transmission come spatial data, complete a unidirectional, dual asynchronous transmission process;
Step 8:The rapid 1- steps 7 of reverse execution realize two-way, asynchronous spatial data transmission process.
2. the two-way dual asynchronous transmission side of the cloud computing environment spatial data according to claim 1 based on multi-Agent Method, it is characterised in that:Metadata described in step 4 include file name information to be transmitted, place folder information.
3. the two-way dual asynchronous transmission side of the cloud computing environment spatial data according to claim 1 based on multi-Agent Method, it is characterised in that:It includes file name information, store path information that the metadata of data is received described in step 6.
CN201810260279.5A 2018-03-27 2018-03-27 Spatial data bidirectional double asynchronous transmission method in cloud computing environment based on multiple agents Active CN108540545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810260279.5A CN108540545B (en) 2018-03-27 2018-03-27 Spatial data bidirectional double asynchronous transmission method in cloud computing environment based on multiple agents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810260279.5A CN108540545B (en) 2018-03-27 2018-03-27 Spatial data bidirectional double asynchronous transmission method in cloud computing environment based on multiple agents

Publications (2)

Publication Number Publication Date
CN108540545A true CN108540545A (en) 2018-09-14
CN108540545B CN108540545B (en) 2020-05-08

Family

ID=63485339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810260279.5A Active CN108540545B (en) 2018-03-27 2018-03-27 Spatial data bidirectional double asynchronous transmission method in cloud computing environment based on multiple agents

Country Status (1)

Country Link
CN (1) CN108540545B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002250353A1 (en) * 2001-03-14 2002-09-24 Microsoft Corporation Service-to-service communication for network services
CN101815064A (en) * 2010-01-11 2010-08-25 北京世纪高通科技有限公司 Data interaction method and device thereof
CN103942063A (en) * 2013-11-08 2014-07-23 国家电网公司 Centralized configuration and remote deployment method for Java Web application
CN106561032A (en) * 2015-10-06 2017-04-12 镇江鼎拓科技信息有限公司 Message communication method based on XML

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002250353A1 (en) * 2001-03-14 2002-09-24 Microsoft Corporation Service-to-service communication for network services
CN101815064A (en) * 2010-01-11 2010-08-25 北京世纪高通科技有限公司 Data interaction method and device thereof
CN103942063A (en) * 2013-11-08 2014-07-23 国家电网公司 Centralized configuration and remote deployment method for Java Web application
CN106561032A (en) * 2015-10-06 2017-04-12 镇江鼎拓科技信息有限公司 Message communication method based on XML

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黎华等: "基于网络的三维地形可视化系统的框架研究", 《2011 AASRI CONFERENCE ON APPLIED INFORMATION TECHNOLOGY(AASRI-AIT 2011)》 *

Also Published As

Publication number Publication date
CN108540545B (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US7565443B2 (en) Common persistence layer
US7890955B2 (en) Policy based message aggregation framework
US6636855B2 (en) Method, system, and program for accessing stored procedures in a message broker
US9898517B2 (en) Declarative synchronization of shared data
US7609703B2 (en) Group communication system and method
EP2047382A1 (en) Two-way and multi-master synchronization over web syndications
US20120224482A1 (en) Credit feedback system for parallel data flow control
KR101545626B1 (en) System for interoperation between dds and dbms
US20060271384A1 (en) Reference data aggregate service population
US8527995B2 (en) Synchronization system for entities maintained by multiple applications
US20080215957A1 (en) Systems and methods for generating technical documentation from enterprise service-oriented architecture content
US9639513B2 (en) Multiplexed forms
US20040142683A1 (en) Programming interface layer of a service provider for data service delivery
KR101663412B1 (en) Method for Defining Quality of Things based on DDS in Internet of Things
US8752071B2 (en) Identifying subscriber data while processing publisher event in transaction
US8386932B2 (en) Method for displaying document-based help with the help system for a processing application
CN108540545A (en) The two-way dual asynchronous transport method of cloud computing environment spatial data based on multi-Agent
US20030177279A1 (en) Creation of middleware adapters from paradigms
Zhang et al. HBaseMQ: a distributed message queuing system on clouds with HBase
KR101888131B1 (en) Method for Performing Real-Time Changed Data Publish Service of DDS-DBMS Integration Tool
US11301538B1 (en) Data management in multi-application web pages
Krizevnik et al. Improved SOA persistence architectural model
Woolf et al. Patterns of system integration with enterprise messaging
Tai et al. Message queuing patterns for middleware-mediated transactions
CN100432993C (en) Scalably accessing data in an arbitrarily large document

Legal Events

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