CN105260170A - Method and system for deducing sudden event situation based on case - Google Patents

Method and system for deducing sudden event situation based on case Download PDF

Info

Publication number
CN105260170A
CN105260170A CN201510398451.XA CN201510398451A CN105260170A CN 105260170 A CN105260170 A CN 105260170A CN 201510398451 A CN201510398451 A CN 201510398451A CN 105260170 A CN105260170 A CN 105260170A
Authority
CN
China
Prior art keywords
event
case
scalable vector
accident
map
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
CN201510398451.XA
Other languages
Chinese (zh)
Other versions
CN105260170B (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.)
Institute of Computing Technology of CAS
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN201510398451.XA priority Critical patent/CN105260170B/en
Publication of CN105260170A publication Critical patent/CN105260170A/en
Application granted granted Critical
Publication of CN105260170B publication Critical patent/CN105260170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a system for deducing a sudden event situation based on a case. The method comprises the steps of generating a case script of the case, abstracting the case script, extracting a case event link and storing the case event link in a server database; by a client, obtaining the case event link from the server database, analyzing the case event link, generating a logic relationship and specific information of the event in the case, generating a scalable vector diagram of the event based on the logic relationship and the specific information and adding the scalable vector diagram to a page of a webpage; and adjusting the scalable vector diagram based on the logic relationship, finishing the showing of the sudden event situation by combining with a visualization technology, and finishing deduction of the event automatically by adopting a Bayesian probability statistics principle and by combining with the internal logic probability of the event. According to the method and the system for deducing the sudden event situation based on the case, a visual showing and editing function of the event link is provided, and assistance is offered for non-specialized persons to edit and drill the script.

Description

A kind of accident deducing manoeuver method and system of Design case based
Technical field
The present invention relates to deducing manoeuver field, particularly a kind of accident deducing manoeuver method and system of Design case based.
Background technology
Accident chain can be used for the aspect such as emergency drilling and disaster prevention.Traditional emergency drilling mainly uses the mode of " desktop maneuvers " to carry out, before rehearsal, professional is according to the object of rehearsal and theme, case is chosen from rehearsal storehouse, and according to rehearsal duration and scale etc., layout is carried out to existing content, rehearsal storehouse is the text or the video/audio image storehouse that store a large amount of exercise scenario, usually with the form tissue of papery or electronic document, each exercise scenario in storehouse is according to objective reality, by professional in conjunction with rehearsal sight, meticulously layout for the purpose of the teaching, case library comprises flood, earthquake, checked-up lake and fire etc., and the case to be comprehensively made up of above-mentioned event, when rehearsal is carried out, professional presides over rehearsal activity according to prior programmed case, play video simultaneously, the data such as word and picture shows event situation, drill evolution according to the feedback adjusting of the personnel that take part in a performance and carry out speed simultaneously.
In traditional accident rehearsal process, generation and the editor of accident chain often need more professional knowledge and practical experience, and in rehearsal process, layman is difficult to according to current event evolves state, objective assessment is made to the event evolves situation of subsequent time, thus cause in rehearsal process and occur that event evolves logic is unintelligible, lack the problems such as conditioning, in traditional deduction process, the situation of event is passively expressed usually, namely after host announces the state of affairs, just carry out documentary information issue, play the work such as video and picture playing, this passive expression way, be difficult to provide sensation on the spot in person to the personnel of taking part in a performance, thus clearly can not understand the situation of current event, Consumer's Experience is not good, in addition, in rehearsal process, event information is usually with independently, discrete, the mode irrelevant with geography information is expressed, expression-form is more single, and seldom and spatial information closely merge.
Patent of invention " a kind of Catastrophe emergency rescue preplan visualization and deduction system ", this disclosure of the invention belongs to a kind of Catastrophe emergency rescue preplan visualization and the deduction system in area of computer aided emergency disaster relief Mitigation field.This system is based on prediction scheme storehouse and scenario models, by visual advanced technologies such as integrated application GIS, VR, FLASH, abstract expression is carried out to each key element in emergency preplan, marks on remote sensing image and Vector Electronic Map with the compound pattern symbol of correspondence; Deduce with the prediction scheme of the various ways such as multi-spatial scale, many time serieses to different calamity kind simultaneously.This invention achieves the visual of decision-making prediction scheme and deduction, for calamity emergency decision-making provides Visual decision-making environment, for improving, the accuracy of China catastrophe Emergency decision, validity and quick-reaction capability (QRC) are significant, but the problem that this invention mainly solves is the visualization deduction of prediction scheme, is mainly disaster decision-making and provides support.And this system is expressed event mainly through GIS, and the present invention mainly for be the visual presentation of event situation, and provide visual event chain edit methods, merged by WebGIS and audio and video information, show current situation.
Summary of the invention
Not enough for prior art, the present invention proposes a kind of accident deducing manoeuver method and system of Design case based, to solve above technical matters.
The present invention proposes a kind of accident deducing manoeuver method of Design case based, comprising:
Step 1, generates the case case script of described case, and carries out abstract to described case case script, extracts case event chain and is deposited server database;
Step 2, client obtains from described server database, obtains described case event chain, and resolve described case event chain, generate logical relation and the specifying information of event in described case, according to described logical relation and described specifying information, generate the Scalable Vector figure of described event, described Scalable Vector figure is added to the page of webpage;
Step 3, according to described logical relation, adjusts described Scalable Vector figure, and completes the displaying of accident situation in conjunction with visualization technique, adopts the internal logic probability of Bayesian probability Statistics binding events, automatically completes the deduction of event.
The accident deducing manoeuver method of described Design case based, described step 2 also comprises: for the pel of described Scalable Vector figure adds event call-back function, realize the interactive function of image and mouse.
The accident deducing manoeuver method of described Design case based, by Geographic Information System (GIS) data and described Scalable Vector figure to combination.
The accident deducing manoeuver method of described Design case based, the scene being also included in described event adds figure, word and video display button, and user completes content displaying by button click.
The accident deducing manoeuver method of described Design case based, the map being also included in described Geographic Information System (GIS) data shows that interface is that map picture adds 3D display function, and integrated physical engine function.
The present invention also proposes a kind of accident deducing manoeuver system of Design case based, comprising:
Generating case event chain module, for generating the case case script of described case, and carrying out abstract to described case case script, extract case event chain and deposited server database;
Generate Scalable Vector module, obtain for client from described server database, obtain described case event chain, and resolve described case event chain, generate logical relation and the specifying information of event in described case, according to described logical relation and described specifying information, generate the Scalable Vector figure of described event, described Scalable Vector figure is added to the page of webpage;
Adjustment is display module also, for according to described logical relation, described Scalable Vector figure is adjusted, and completes the displaying of accident situation in conjunction with visualization technique, adopt the internal logic probability of Bayesian probability Statistics binding events, automatically complete the deduction of event.
The accident deducing manoeuver system of described Design case based, described generation Scalable Vector module also comprises: for the pel of described Scalable Vector figure adds event call-back function, realize the interactive function of image and mouse.
The accident deducing manoeuver system of described Design case based, also comprises map and Scalable Vector figure binding modules, for by Geographic Information System (GIS) data and described Scalable Vector figure to combination.
The accident deducing manoeuver system of described Design case based, the scene that described map and Scalable Vector figure binding modules are also included in described event adds figure, word and video display button, and user completes content displaying by button click.
The accident deducing manoeuver system of described Design case based, the map that described map and Scalable Vector figure binding modules are also included in described Geographic Information System (GIS) data shows that interface is that map picture adds 3D display function, and integrated physical engine function.
From above scheme, the invention has the advantages that:
The present invention is compared with traditional rehearsal technology, the invention provides visual presentation and the editting function of event chain, offer help for layman edits rehearsal script, simultaneity factor provides the displaying of real-time evolution-information, the personnel of taking part in a performance are made to obtain situation information in real time, in addition the present invention is also by audio-visual, the information such as image and three-dimensional, integrates, provide information acquiring pattern more intuitively to the personnel of taking part in a performance with Geographic Information System.
Accompanying drawing explanation
Fig. 1 is that logical diagram shown by map;
Fig. 2 is for generating SVG logical diagram;
Fig. 3 is the event chain design sketch realized;
Fig. 4 is the event and geography information syncretizing effect figure that realize;
Fig. 5 is overall flow figure of the present invention.
Wherein Reference numeral is:
Step 101/102/103.
Embodiment
Following technology is quoted for overcoming the above problems this patent, completing the visual of high immersion to represent and expression: Bayesian network (BayesianNetwork) is the graphical network based on probability inference, is one of the expression of current uncertain knowledge and the most effective theoretical model in reasoning field; SVG (ScalableVectorGraphics) scalable vector graphics, it is a kind of X-Y scheme representation language adopting XML (extend markup language) grammer, creating image by drawing element figure in webpage, generating image complicated arbitrarily; WebGIS (network geographic information system) refers to use on internet, adopt the Geographic Information System of procotol client, and the request/acknowledgement mechanism based on browser/server (B/S) provides user interactions ability easily.In addition, the technology such as database, PHP, AJAX, JavaScript, JSON, HTML5 and CSS3 is also used in the present invention.
Be below the overall flow of the inventive method, as shown in Figure 5:
Step 101, generates the case case script of described case, and carries out abstract to described case case script, extracts case event chain and is deposited server database;
Step 102, client obtains from described server database, obtains described case event chain, and resolve described case event chain, generate logical relation and the specifying information of event in described case, according to described logical relation and described specifying information, generate the Scalable Vector figure of described event, described Scalable Vector figure is added to the page of webpage, as shown in Figure 3;
Step 103, according to described logical relation, adjusts described Scalable Vector figure, and completes the displaying of accident situation in conjunction with visualization technique, adopts the internal logic probability of Bayesian probability Statistics binding events, automatically completes the deduction of event.
Step 102 also comprises: for the pel of described Scalable Vector figure adds event call-back function, realize the interactive function of image and mouse.
By Geographic Information System (GIS) data and described Scalable Vector figure to combination, the scene of described event adds figure, word and video display button, user completes content displaying by button click, show that interface is that map picture adds 3D display function at the map of described Geographic Information System (GIS) data, and integrated physical engine function, as shown in Figure 4.
The present invention also proposes a kind of accident deducing manoeuver system of Design case based, comprising:
Generating case event chain module, for generating the case case script of described case, and carrying out abstract to described case case script, extract case event chain and deposited server database;
Generate Scalable Vector module, obtain for client from described server database, obtain described case event chain, and resolve described case event chain, generate logical relation and the specifying information of event in described case, according to described logical relation and described specifying information, generate the Scalable Vector figure of described event, described Scalable Vector figure is added to the page of webpage;
Adjustment is display module also, for the size according to described logical relation and the described page, adjusts described Scalable Vector figure, shows to complete and deduces described accident situation.
Described generation Scalable Vector module also comprises: for the pel of described Scalable Vector figure adds event call-back function, realize the interactive function of image and mouse.
Also comprise map and Scalable Vector figure binding modules, for by Geographic Information System (GIS) data and described Scalable Vector figure to combination.
The scene that described map and Scalable Vector figure binding modules are also included in described event adds figure, word and video display button, and user completes content displaying by button click.
The map that described map and Scalable Vector figure binding modules are also included in described Geographic Information System (GIS) data shows that interface is that map picture adds 3D display function, and integrated physical engine function.
In detail the specific embodiment of the present invention is described below in conjunction with drawings and Examples.
The object of the invention is for the rehearsal script layout process of solution prior art is complicated, event evolution-information display form is single, deduce the problem of the situation poor visibility of process.。
The method use Web technology, complete visual presentation that event chain situation develops, accident chain pattern interactive editor, with the information integration such as event relevant geographic, word, picture and video with concentrate functions such as showing.Described method realizes in the following manner:
The system uses the visual presentation that Web technology completes the evolution of event chain situation.Backstage adopts PHP and MySQL database to complete loading and the process of data, foreground uses HTML, CSS and JavaScript realizes data visualization, AJAX is adopted to complete request of data and response between AM/BAM, foreground uses the process of JavaScript completion logic, SVG is used to draw event chain polar plot, CSS is used to realize style sheet management, comprehensive above technology completes the Visualization of event chain, Web technology facilitates deployment and the use of system, only need at server installation system software, client just can use the modern browser access system page to operate, Web technology provides convenient for system upgrading from now on and expansion, in addition, along with HTML5, the renewal of the technology such as CSS3, the expressive ability of browser is more and more stronger, good Consumer's Experience effect can be provided,
Client browser uses JavaScript to resolve event chain data, according to the logical organization between event, the XML adding SVG at the page describes, event chain logical relation SVG digraph is represented, SVG digraph is used to represent abstract event chain data, make the logic cause-effect relationship image between event illustrate out, take part in a performance personnel by image can be very fast to rehearsal situation carry out the overall situation hold, strengthen drill effect;
Use the state of SVG pel presentation of events of different colors, different shapes, and adopt placement algorithm that pel position is set, make digraph more easily observe and operate.Difformity and color make the more information of SVG image expression, make the personnel of taking part in a performance obtain more useful information from image, thus have current rehearsal situation and understand more clearly.Not only increase the sense of reality like this and strengthen rehearsal effect;
Interactive editor's function of SVG figure, make SVG figure to mouse-over, click, the event such as double-click makes a response, realize user to the selection of SVG figure, interpolation and delete function, complete interactive editor's function of image, SVG graphical interaction editorial logic as shown in Figure 2, pass through interactive function, controllers can according to the situation of presence, the developing direction of event is adjusted, the development of event is made to present diversity, in addition the personnel of taking part in a performance can also make rehearsal to multiple sight, improve rehearsal effect;
System provides event situation displayed page.When new event occurs, this event can be added in " event chain exploded view has occurred " by automatic powder adding, and shows time place, the pictorial information of the generation of event, and this function makes the personnel of taking part in a performance understand event in real time, grasp up-to-date rehearsal information, for Real-time Decision is offered help;
Can according to history rehearsal data in event chain digraph, the probability of happening of mark successive event.When drilling, controllers can according to the probability information of event chain digraph, the future development event that select probability is larger, and this function provides reference information and the subsidiary function of successor decision-making to layman;
The API that WebGIS provides is called by browser, achieve the inquiry of geographic information data, loading, displaying, mark and interpolation function, the interactive function of map is provided simultaneously, by the position that this interface flag event occurs, and add audio-visual, picture and button shown in word, the total data relevant with event has been added on map by this function, and geography information and event information are effectively combined, drill experience more really for the personnel of taking part in a performance provide, the displaying logic of map as shown in Figure 1;
Gauge point adds button, when click these buttons time can on map pop-up window, the information relevant with this event is shown in window, comprise word, video and picture, the overview display of much information, make user more comprehensively can understand the details of event, provide powerful support for for the personnel of taking part in a performance make a policy to provide.
A large amount of digitizing exercise scenario is stored in system database, comprise earthquake, rubble flow, checked-up lake, flood, wind spout, water pollutions, acute infectious disease and social event etc., multiple digitizing case is that various emergency drilling provides support, layman is by loading existing case, the rehearsal script of different calamity kind can be edited out easily, strengthen versatility and the practicality of system.
Reveal for different stage industrial chemicals cause damage zone, different earthquake magnitude causes that house collapse traffic hydroelectric facility damages, different infectious diseases causes that epidemic situation infects, different scales social event causes impacting the event evolutionary process such as government's beating burning and different instruction emergency command action and carries out animation simulation, event evolution-information is shown with simulation animation form, the personnel of taking part in a performance are familiar with all sidedly, experience events evolutionary process truly, thus enhance rehearsal effect.
System provides open api interface, and other software can access system resources by calling this interface, or expands systemic-function, and open interface is provide a great convenience with the joint maneuver of third party software, the expansion of function.
System provides the functions such as 3D displaying and physical engine, use the content of multimedia such as 3D function stress model and picture in a browser, complete 360 degree of comprehensive viewings by mouse action, in 3D scene, provide physical engine, complete the functions such as gravity simulation, motion and collision.3D and physical engine simulate the 3D scene of disaster, experience more really for the personnel of taking part in a performance provide.
Be below one embodiment of the invention, as follows:
System background uses MySQL database, ApacheHTTP server, PHP server and NodeJS, for the access of data and the page provides support, database is used for storing rehearsal data, according to logical relation, rehearsal script is carried out abstract and tissue, be stored in Event Information Table event, event relation table eventrelation and material table material respectively.PHP completes background business logic, for accessing database and generation JSON file, http server is used for responding the page request of user, and NodeJS is mainly used in active push and the synchronizing event information of data, and client adopts modern browser to complete data access and page rendering.Data asynchronous communication between server and client adopts the mode of AJAX, data acquisition JSON format transmission.
Below in conjunction with accompanying drawing and instantiation, the technical scheme to " a kind of accident deducing manoeuver method of Design case based " is described in further details, and the performing step of the method is as follows:
(1) digitizing rehearsal script and importing rehearsal material: undertaken abstract by textual rehearsal script, extract case event chain stored in database, under importing to system folder by rehearsal simulation material and displaying material;
(2) build base page access services: system page code is put into http server, use modern browser to access this page, complete page data and load and represent function;
(3) data asynchronous transmission service is built: client is with AJAX form to server request data, and the PHP program of service end, according to request content Query Database, returns Query Result with JSON form;
(4) client resolves event data: client JavaScript program resolves the event data of JSON form, carries out checking and resolve data attribute, obtains logical relation and the specifying information of event;
(5) client shows event data: according to the JSON data after parsing, generates event chain SVG polar plot code, and adds in the page;
(6) layout SVG image: according to the size of the logical relation between event and the page, layout is carried out to event chain figure, makes image attractive in appearance easy to operate;
(7) interactive function of SVG image is added: use the pel that DOM is SVG to add event call-back function, realize the interactive function of image and mouse.When deleting or add event node, return step (4) more new images;
(8) add event chain and automatically deduce function: use bayesian probability model, according to the internal logical relationship of event chain, adopt maximum a posteriori probability mode to carry out interpolation or the deletion of event.When deleting or add event node, return step (4) more new images;
(9) geographic information displaying of event: the opening API calling WebGIS (network geographic information system) at browser end, completes displaying and the operating function of GIS (Geographic Information System) data;
(10) mark function in realization event place: use the opening API that WebGIS provides, the dynamically labeled and interactive function in realization event place on map;
(11) event information display function: add figure, word and video display button on the venue location point of map, user completes content displaying by button click;
(12) the 3D engine of WebGL is added: show that interface realizes the 3D display function of map picture at map, and the effects such as integrated physical engine functional realiey motion, collision;
(13) synchronizing event information sending function; When event occurs, use each client that Case Number sends by WebSocket interface, trigger relative program;
(14) encapsulate code and open interface is provided: use the JavaScript program module of Facade Design Mode to inner practical function to encapsulate, for third party software provides the open interface be simple and easy to.
In step (1), the introduction method of described digitizing rehearsal script and rehearsal material is as follows:
Analyze the content of rehearsal script, the event in script is carried out abstract, extract the key message such as event, place, personage and description, and be stored into database Event and show;
Extract event composition information, comprise the information bar such as personnel amount, event evolves situation and event class.The description of these contents is stored into the information table of database;
Causal logic between analysis event, and be stored into eventrelation table, the numbering of event correspond to the numbering of event in Event table;
According to the detailed description of event and information bar, to collect pictures, the material information such as video.Material is stored in material table in the path that server file is pressed from both sides and material numbering, upgrades the material row of Event and information table according to this numbering.
In step (2), described request service construction method is as follows:
The pagefile editted is put into the www file of http server, start MySQL service routine, and in database, import rehearsal data;
Start ApacheHTTP and PHP service routine, use the modern browsers such as FireFox4.0+, IE9.0+, the URL:http of the input system page: // 192.168.1.106/project_01/page_server/Server.html.
Browser is loaded into and controls the page, resolves content of pages and represents.
In step (3), described asynchronous data transmission method builds as follows:
After page parsing completes, the JavaScript code that the browser execution page is embedded in, calls the JSON () function of JQuery, uses AJAX mode to send request of data to server;
After server PHP program receives the request of data of client transmission, the URL analyzing client-requested connects, and obtains the information such as event title;
Use PHP to connect MySQL database, generate SQL statement according to event title, inquiry event, eventrelation and material table, reads the relevant information of event;
The event essential information inquired, affair logic relation and event material information are stored in the text object of JSON form by PHP;
The details of event are stored in the nodes attribute of JOSN object, the logical relation information of event is stored in links attribute;
PHP calls echo function and is exported by the text object of JSON form, and the reply data as AJAX turns back to client.
The method of the data check described in step (4) and parsing is as follows:
Client is converted into JavaScript object after receiving the text data of the JSON form that service end is passed back automatically;
Use JavaScript program pass data, the time stored, date property are resolved to the Date object of JavaScript with text formatting.
SVG image generating method described in step (5) is as follows:
Using JavaScript to obtain id in html page is the DOM object of " graph ", adds the xml code of SVG in this DOM object;
The nodes attribute of traversal event data, for " g " label set up by each subobject in nodes, adds in the xml code of SVG.Be " nodeinactive " pattern by " class " setup of attribute of nodes subobject.In the label of g, add " rect " and " text " subtab, " rect " label is for drawing the square of event node, and " text " is for the title of flag event on node;
The links attribute of traversal event data, for an oriented arrow drawn by each subobject in links, the cause-effect relationship between presentation of events.The drafting of arrow uses " path " label of SVG to realize, and arranges the start-stop position of arrow, and is " linkinactive " by " class " setup of attribute, make arrow be shown as translucent unchecked state in " d " attribute of " path ".
SVG image layout method described in step (6) is as follows:
The links attribute of traversal event chain data object, obtains the depth capacity of digraph according to the cause-effect relationship of event;
Use the maximum height information of SVG image in the DOM object acquisition HTML of SVG.By the depth capacity of height divided by digraph, obtain the height pixel value of each level of event chain in image.According to the hierarchical information of this height value and node, calculate each pel y value in the picture;
For avoiding node in event chain overlapped, need to adjust the x value of node.The x arranged for every node is the random deviation value about image axis.The xml data of updated space postpone are;
<gclass="nodeinactive"transform="translate(316.588,102.668)">
<rectrx="5"ry="5"x="-28"y="0"height="23"width="56">
</rect>
<textx=" 0 " y=" 15.5 " text-anchor=" middle " the > victims of the disaster are panic
</text>
</g>
<gclass="linkinactive"id="link1:2">
<pathid="path1:2"d="M701.315,108.716L684.788,161.590">
</path>
</g>
According to the d attribute of the location updating path of node.
The method of the interactive function of the interpolation image described in step (7) is as follows:
JavaScript is used to obtain the DOM object of SVG;
Traversing nodes DOM array, for each node adds mouse-over, clicks and the call back function such as double-click, handles it to corresponding event;
The function such as setting, event detail displaying to node and line pattern is realized in call back function.As the call back function of: mouse-over be " linkselected " by the class setup of attribute of node, be " linkactive " by the style setting being connected to this node line, be " nodeactiveparent " by the father node style setting of this node, the style setting of its child node is " nodeactivechild ".Click and double-click style setting mode similar;
Node click in call back function, with the addition of event detail display function.Use AJAX mode from the detailed content of server end request node event, and add in page HTML and show;
When user pins keyboard " Ctrl " key and clicks SVG image, new data item can be added in nodes, represent new node.Pin after " Ctrl " key clicks two different nodes successively, in links attribute, add new data item, cause-effect relationship new between presentation of events.Return step (5) after Data Update to repaint image.
Described in step (8), bayesian probability model method is as follows;
Drill information equiprobability information according to the internal logic cause-effect relationship of event chain and history, in conjunction with Bayesian probabilistic methods, adopt Maximun Posterior Probability Estimation Method to complete deduction process.When after given incoming event X, the probability expression way of calculated for subsequent event Y is as follows:
E &lsqb; Y | X , D &rsqb; = &Sigma; &theta; &rho; ( Y | X , &theta; ) &rho; ( &theta; | D )
Wherein θ is model parameter, and ρ (θ | D) be posterior probability use formula θ mAP=argmax θρ (D| θ) ρ (θ) carries out approximate solution.
Geographic information displaying method described in step (9) is as follows:
The JavaScript header file that WebGIS provides is introduced in " head " label of HTML.For the API that Baidu provides, the code added is:
<scripttype="text/javascript"src="http://api.map.baidu.com/api?v=2.0&ak=x">
</script>
The loading position that label " <divid=" allmap " ></div> " represents map is added in the page, and add JavaScript initialization map, complete basic configuration, JavaScript code is as follows:
varmap=newBMap.Map("allmap");
varpoint=newBMap.Point(116.404,39.915);
map.centerAndZoom(point,15);
Dynamically labeled and the interactive function of the location of incident described in step (10) is as follows:
Event latitude and longitude coordinates information is obtained by AJAX from server when event occurs;
Call the opening API of WebGIS, add html tag at the specified coordinate point of map;
In this label, add HTML code, carry out the mark in place.
Information display function described in step (11) is as follows:
In the gauge point of map, add " li " label, wherein add bookmark name and hyperlink information.Bookmark name comprises " picture ", " video " and " word " etc., hyperlink comprises the URL information of access PHP file;
Map adds window and ejects code and video playback code.Window ejection function uses " magnific " plug-in unit to realize, and video playback capability uses " mediaelement " plug-in unit to realize;
Add close function, the rear interface that closes window recovers the display of cartographic information.
The 3D engine implementing method of the WebGL described in step (12) is as follows:
The library file three.js of ThreeJS engine is introduced in html page;
Use JavaScript to create 3D presentation program, create Three subclass, and call function setup illumination and the camera parameters such as AmbientLight, DirectionalLight and PlaneGeometry;
The static map picture provided by Baidu map obtains interface, obtains static map picture.Call the ImageUtils.loadTexture function of ThreeJS, map picture is attached on figure as texture;
Introduce Box3 and realize the physical engine functions such as collision detection.
Synchronized transmission function described in step (13) is as follows:
Call the interface in the socket.io storehouse of NodeJS, write WebSocket serve end program, realize the function that WebSocket message forwards in real time;
Perform " nodewebsocket.js " order in order line, start WebSocket background service process;
Introduce socket.io library file in client, and realize the call back function of WebSocket.When information is pushed to client from NodeJS, call back function has been called event handling.

Claims (10)

1. an accident deducing manoeuver method for Design case based, is characterized in that, comprising:
Step 1, generates the case case script of described case, and carries out abstract to described case case script, extracts case event chain and is deposited server database;
Step 2, client obtains from described server database, obtains described case event chain, and resolve described case event chain, generate logical relation and the specifying information of event in described case, according to described logical relation and described specifying information, generate the Scalable Vector figure of described event, described Scalable Vector figure is added to the page of webpage;
Step 3, according to described logical relation, adjusts described Scalable Vector figure, and completes the displaying of accident situation in conjunction with visualization technique, adopts the internal logic probability of Bayesian probability Statistics binding events, automatically completes the deduction of event.
2. the accident deducing manoeuver method of Design case based as claimed in claim 1, it is characterized in that, described step 2 also comprises: for the pel of described Scalable Vector figure adds event call-back function, realize the interactive function of image and mouse.
3. the accident deducing manoeuver method of Design case based as claimed in claim 1, is characterized in that, by Geographic Information System (GIS) data and described Scalable Vector figure to combination.
4. the accident deducing manoeuver method of Design case based as claimed in claim 3, is characterized in that, the scene being also included in described event adds figure, word and video display button, and user completes content displaying by button click.
5. the accident deducing manoeuver method of Design case based as claimed in claim 4, is characterized in that, the map being also included in described Geographic Information System (GIS) data shows that interface is that map picture adds 3D display function, and integrated physical engine function.
6. an accident deducing manoeuver system for Design case based, is characterized in that, comprising:
Generating case event chain module, for generating the case case script of described case, and carrying out abstract to described case case script, extract case event chain and deposited server database;
Generate Scalable Vector module, obtain for client from described server database, obtain described case event chain, and resolve described case event chain, generate logical relation and the specifying information of event in described case, according to described logical relation and described specifying information, generate the Scalable Vector figure of described event, described Scalable Vector figure is added to the page of webpage;
Adjustment is display module also, for according to described logical relation, described Scalable Vector figure is adjusted, and completes the displaying of accident situation in conjunction with visualization technique, adopt the internal logic probability of Bayesian probability Statistics binding events, automatically complete the deduction of event.
7. the accident deducing manoeuver system of Design case based as claimed in claim 6, it is characterized in that, described generation Scalable Vector module also comprises: for the pel of described Scalable Vector figure adds event call-back function, realize the interactive function of image and mouse.
8. the accident deducing manoeuver system of Design case based as claimed in claim 6, is characterized in that, also comprise map and Scalable Vector figure binding modules, for by Geographic Information System (GIS) data and described Scalable Vector figure to combination.
9. the accident deducing manoeuver system of Design case based as claimed in claim 8, it is characterized in that, the scene that described map and Scalable Vector figure binding modules are also included in described event adds figure, word and video display button, and user completes content displaying by button click.
10. the accident deducing manoeuver system of Design case based as claimed in claim 9, it is characterized in that, the map that described map and Scalable Vector figure binding modules are also included in described Geographic Information System (GIS) data shows that interface is that map picture adds 3D display function, and integrated physical engine function.
CN201510398451.XA 2015-07-08 2015-07-08 A kind of accident deducing manoeuver method and system based on case Active CN105260170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510398451.XA CN105260170B (en) 2015-07-08 2015-07-08 A kind of accident deducing manoeuver method and system based on case

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510398451.XA CN105260170B (en) 2015-07-08 2015-07-08 A kind of accident deducing manoeuver method and system based on case

Publications (2)

Publication Number Publication Date
CN105260170A true CN105260170A (en) 2016-01-20
CN105260170B CN105260170B (en) 2018-08-10

Family

ID=55099874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510398451.XA Active CN105260170B (en) 2015-07-08 2015-07-08 A kind of accident deducing manoeuver method and system based on case

Country Status (1)

Country Link
CN (1) CN105260170B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760618A (en) * 2016-03-08 2016-07-13 中国人民解放军总参谋部第五十四研究所 Target situation display method based on GIS (Geographic Information System) facing virtual process
CN107728201A (en) * 2017-09-29 2018-02-23 中国石油化工股份有限公司 A kind of two-dimension earthquake profile drawing method based on Web
CN107832054A (en) * 2017-11-30 2018-03-23 郑州云海信息技术有限公司 A kind of methods of exhibiting and device of house property model
CN109274904A (en) * 2018-11-23 2019-01-25 威创集团股份有限公司 A kind of combination caption signal method for previewing, server-side and system
CN109976713A (en) * 2017-12-28 2019-07-05 中国电信股份有限公司 Script processing method and device for Service Assembly
CN110058898A (en) * 2019-03-22 2019-07-26 壹仟零壹艺网络科技(北京)有限公司 ArchiCAD on-time model library loading method and system
CN110659399A (en) * 2018-06-28 2020-01-07 中国标准化研究院 Method and device for displaying emergency evolution diagram
CN111145292A (en) * 2019-12-11 2020-05-12 中国地质大学(武汉) Extensible vector plotting graph situation deduction method adapting to two-dimensional and three-dimensional scenes
CN112637520A (en) * 2020-12-23 2021-04-09 新华智云科技有限公司 Dynamic video editing method and system
CN113850994A (en) * 2021-09-09 2021-12-28 安徽科力信息产业有限责任公司 Road information display and change method and system
CN116307628A (en) * 2023-04-04 2023-06-23 广州欣纬智慧安全科技有限公司 Automatic generation method and device for emergency scheme

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07227041A (en) * 1994-02-09 1995-08-22 Toshiba Corp Device for supporting restoration of electric power system from fault
CN101930498A (en) * 2009-12-31 2010-12-29 北京华迪宏图信息技术有限公司 Catastrophe emergency rescue preplan visualization and deduction system
CN104361470A (en) * 2014-11-28 2015-02-18 东莞中国科学院云计算产业技术创新与育成中心 Auxiliary multi-target decision platform based on pre-arranged planning
CN104408569A (en) * 2014-11-28 2015-03-11 东莞中国科学院云计算产业技术创新与育成中心 Implementation method for plan-based multi-target aid decision-making platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07227041A (en) * 1994-02-09 1995-08-22 Toshiba Corp Device for supporting restoration of electric power system from fault
CN101930498A (en) * 2009-12-31 2010-12-29 北京华迪宏图信息技术有限公司 Catastrophe emergency rescue preplan visualization and deduction system
CN104361470A (en) * 2014-11-28 2015-02-18 东莞中国科学院云计算产业技术创新与育成中心 Auxiliary multi-target decision platform based on pre-arranged planning
CN104408569A (en) * 2014-11-28 2015-03-11 东莞中国科学院云计算产业技术创新与育成中心 Implementation method for plan-based multi-target aid decision-making platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曲毅 等: "基于情景的突发事件演变概率规则推理方法", 《系统工程学报》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760618A (en) * 2016-03-08 2016-07-13 中国人民解放军总参谋部第五十四研究所 Target situation display method based on GIS (Geographic Information System) facing virtual process
CN105760618B (en) * 2016-03-08 2019-02-19 中国人民解放军总参谋部第五十四研究所 Target situation methods of exhibiting based on Virtual process geography GIS
CN107728201B (en) * 2017-09-29 2019-07-12 中国石油化工股份有限公司 A kind of two-dimension earthquake profile drawing method based on Web
CN107728201A (en) * 2017-09-29 2018-02-23 中国石油化工股份有限公司 A kind of two-dimension earthquake profile drawing method based on Web
CN107832054A (en) * 2017-11-30 2018-03-23 郑州云海信息技术有限公司 A kind of methods of exhibiting and device of house property model
CN109976713A (en) * 2017-12-28 2019-07-05 中国电信股份有限公司 Script processing method and device for Service Assembly
CN110659399A (en) * 2018-06-28 2020-01-07 中国标准化研究院 Method and device for displaying emergency evolution diagram
CN110659399B (en) * 2018-06-28 2022-02-01 中国标准化研究院 Method and device for displaying emergency evolution diagram
CN109274904A (en) * 2018-11-23 2019-01-25 威创集团股份有限公司 A kind of combination caption signal method for previewing, server-side and system
CN110058898A (en) * 2019-03-22 2019-07-26 壹仟零壹艺网络科技(北京)有限公司 ArchiCAD on-time model library loading method and system
CN111145292A (en) * 2019-12-11 2020-05-12 中国地质大学(武汉) Extensible vector plotting graph situation deduction method adapting to two-dimensional and three-dimensional scenes
CN111145292B (en) * 2019-12-11 2021-08-27 中国地质大学(武汉) Extensible vector plotting graph situation deduction method adapting to two-dimensional and three-dimensional scenes
CN112637520A (en) * 2020-12-23 2021-04-09 新华智云科技有限公司 Dynamic video editing method and system
CN112637520B (en) * 2020-12-23 2022-06-21 新华智云科技有限公司 Dynamic video editing method and system
CN113850994A (en) * 2021-09-09 2021-12-28 安徽科力信息产业有限责任公司 Road information display and change method and system
CN113850994B (en) * 2021-09-09 2022-12-30 安徽科力信息产业有限责任公司 Road information display and change method and system
CN116307628A (en) * 2023-04-04 2023-06-23 广州欣纬智慧安全科技有限公司 Automatic generation method and device for emergency scheme

Also Published As

Publication number Publication date
CN105260170B (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN105260170B (en) A kind of accident deducing manoeuver method and system based on case
CN103597469B (en) Live browser instrument in IDE
Di Lucca et al. An approach for reverse engineering of web-based applications
CN110633436B (en) Visual and user-defined panoramic editing method, system, storage medium and equipment
CN102306174A (en) Method and equipment for interacting with user based on web page elements
CN107247591A (en) A kind of big data displaying interface alternation method based on map
Pettit et al. Developing a multi-scale visualisation framework for use in climate change response
CN103514621A (en) Case and event scene all-true dynamic 3D representation method and reconstruction system
Bogdos et al. A tool for simulation and geo-animation of wildfires with fuel editing and hotspot monitoring capabilities
Khanal et al. Virtual and augmented reality in the disaster management technology: a literature review of the past 11 years
Nandavar et al. Interactive Virtual Reality Tool for BIM Based on IFC
Dörner et al. Content creation and authoring challenges for virtual environments: from user interfaces to autonomous virtual characters
JP2008097215A (en) Data processor
CN104346174B (en) A kind of description of online polar plot modeling process and replay method
Chusetthagarn et al. A prototype of collaborative augment reality environment for hololens
CN102708167B (en) Web-based semantic annotation system and Web-based semantic annotation method for high resolution SAR (synthetic aperture radar) image interpretation
CN111429578B (en) Three-dimensional model generation method and three-dimensional virtual overhaul system for thermal power plant unit
Santos et al. A-frame experimentation and evaluation for the development of interactive VR: a virtual tour of the Conimbriga Museum
CN116452786B (en) Virtual reality content generation method, system, computer device and storage medium
Ducreux et al. Rapid prototyping of complete systems, the case study of a smart parking
Sundari et al. Development of 3D Building Model Using Augmented Reality
Bartalesi et al. Using semantic story maps to describe a territory beyond its map
Hou et al. Research and Application of Teaching-Oriented IT Visualization Simulation
JP2010015520A (en) Method of integrating display of a plurality of programs by partially correcting screen
Anslow Evaluating extensible 3D (X3D) graphics for use in software visualisation

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