CN105808265A - Behavior model generation method and system - Google Patents

Behavior model generation method and system Download PDF

Info

Publication number
CN105808265A
CN105808265A CN201610146436.0A CN201610146436A CN105808265A CN 105808265 A CN105808265 A CN 105808265A CN 201610146436 A CN201610146436 A CN 201610146436A CN 105808265 A CN105808265 A CN 105808265A
Authority
CN
China
Prior art keywords
state
behavior model
entrance
editor
atom
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.)
Pending
Application number
CN201610146436.0A
Other languages
Chinese (zh)
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.)
Beijing Shenzhou Zhihui Technology Co Ltd
Original Assignee
Beijing Shenzhou Zhihui Technology 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 Beijing Shenzhou Zhihui Technology Co Ltd filed Critical Beijing Shenzhou Zhihui Technology Co Ltd
Priority to CN201610146436.0A priority Critical patent/CN105808265A/en
Publication of CN105808265A publication Critical patent/CN105808265A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The invention discloses a behavior model generation method and system. The method comprises a step of providing a behavior model edition interface, wherein the edition interface comprises edition entries, and the edition entries comprise an atomic state edition entry, a state diagram drawing entry, a state transfer relation edition entry and a state nest relation edition entry. A behavior model generated through the method is used for simulating the human decision behaviors in simulation systems, completing behavior model edition through carrying out state synthesis and condition transfer on basic atomic states, and rehearsing the state transfer process in real time. The method is visual, simple and convenient to carry out model edition by non-technical personnel, for example, the military personnel that do not understand programing only need to combine atomic conditions during the edition of tactic behavior models. The method is popular, easy to understand and convenient to use, and the edition model can be conveniently provided to various simulation systems for calling.

Description

A kind of behavior model generates method and system
Technical field
The present invention relates to model editing technical field, particularly relate to a kind of behavior model and generate method and system.
Background technology
The expert of military field has abundant tactics behavior knowledge, but the computer model realizing these knowledge needs to write substantial amounts of computer code.Usual domain expert does not have programming skill, so that domain knowledge could be converted into computer model by depended software programming technique and programming personnel.Concrete mode is the knowledge run by relevant physical entity of domain expert and data are compiled into document, programming personnel is submitted to after forming description, it is then passed through code to realize and testing procedure formation computer model, finally returns to this domain expert or emulate user's use.Had at present substantial amounts of entity behavior to have employed flow chart, state machine, this kind of procedural structure of rule set are modeled, but are mostly be directly realized by by code.This mode makes there is a large amount of basic acts repeated between model, brings wasted storage and difficult in maintenance;The related data of entity behavior is hard-coded in model, it is difficult to customization and amendment, lacks motility;Behavior owing to lacking programming skill directly can not be modeled, verify and revise by domain expert.
Summary of the invention
The invention provides a kind of behavior model and generate method and system.
The invention provides following scheme:
A kind of behavior model generates method, including:
Thering is provided behavior model editing interface, described editing interface includes editor's entrance, and described editor's entrance includes: entrance, state transfer relationship editor's entrance, state nest relation editor's entrance are drawn in state of atom editor's entrance, state diagram;
State of atom that behavior model to be generated includes, transfer relationship between each state and nest relation is received by described editor's entrance;
After receiving the request preserving edited result, by calling preset bottom code, create the state of atom, state transfer relationship and the nest relation that comprise in described edited result, and generate behavior model.
Preferably: state of atom, state transfer relationship and the nest relation comprised in the described edited result of described establishment, and generate behavior model, including:
Undertaken the behavior model of described generation preserving and form behavior model storehouse.
Preferably: described behavior model is used for simulation training operation scene.
Preferably: receive state of atom that behavior model to be generated includes, transfer relationship between each state and nest relation by described editor's entrance, including:
Described state of atom includes starting state, close dbjective state and target of attack state, described transfer relationship includes described starting state, near the distance relation between dbjective state and target of attack state, described nest relation includes being returned by described target of attack state described near dbjective state.
A kind of behavior model generates system, including:
Editing interface provides unit, for providing behavior model editing interface, described editing interface includes editor's entrance, and described editor's entrance includes: entrance, state transfer relationship editor's entrance, state nest relation editor's entrance are drawn in state of atom editor's entrance, state diagram;
Receive unit, for the transfer relationship between the state of atom included by described editor's entrance reception behavior model to be generated, each state and nest relation;
Model generation unit, after receiving the request preserving edited result, by calling preset bottom code, creates the state of atom, state transfer relationship and the nest relation that comprise in described edited result, and generates behavior model.
Preferably: described model generation unit, including:
Model library generates unit, for being undertaken preserving and generate behavior model storehouse by the behavior model of described generation.
Preferably: described behavior model is used for simulation training operation scene.
Preferably: described reception unit, including:
Described state of atom includes starting state, close dbjective state and target of attack state, described transfer relationship includes described starting state, near the distance relation between dbjective state and target of attack state, described nest relation includes being returned by described target of attack state described near dbjective state.
According to specific embodiment provided by the invention, the invention discloses techniques below effect:
Pass through the present invention, a kind of behavior model can be realized and generate method and system, under a kind of implementation, the method can include providing behavior model editing interface, described editing interface includes editor's entrance, and described editor's entrance includes: entrance, state transfer relationship editor's entrance, state nest relation editor's entrance are drawn in state of atom editor's entrance, state diagram;State of atom that behavior model to be generated includes, transfer relationship between each state and nest relation is received by described editor's entrance;After receiving the request preserving edited result, by calling preset bottom code, create the state of atom, state transfer relationship and the nest relation that comprise in described edited result, and generate behavior model.The behavior model generated by the method is for simulating human decision behavior in analogue system, by basic state of atom is carried out state synthesis, conditional jump etc., thus consummatory behavior model editing, and state conversion process can be previewed in real time.The method is intuitively simple, it is simple to non-technical personnel carries out model editing, and the army personnel being such as ignorant of programming edits tactics behavior model, it is only necessary to atom condition is combined.Easy-to-understand, easy to use, institute's edit model can conveniently call for various analogue systems.
Certainly, the arbitrary product implementing the present invention it is not absolutely required to reach all the above advantage simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart that a kind of behavior model that the embodiment of the present invention provides generates method;
Fig. 2 is the schematic diagram that a kind of behavior model that the embodiment of the present invention provides generates system.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, broadly fall into the scope of protection of the invention.
Embodiment
Referring to Fig. 1, a kind of behavior model provided for the embodiment of the present invention generates method, as it is shown in figure 1, the method comprises the following steps:
S101: provide behavior model editing interface, described editing interface includes editor's entrance, and described editor's entrance includes: entrance, state transfer relationship editor's entrance, state nest relation editor's entrance are drawn in state of atom editor's entrance, state diagram;The method that the embodiment of the present application provides, realizes based on state machine principle, and state machine (statemachine) defines the migration between multiple state and state.State machine runs by responding sequence of events, when event meets some trigger condition, will cause that state machine is from current state transition to next state.Among defined multiple states, there is at least one initial state and at least one final state, state machine brings into operation from initial state, and when moving to final state, state machine is out of service.The behavior model editing interface provided the user in the method, can by initialized for state machine mode be realized, after this state machine initializes, can show at the display interface place of the method operational outfit that the operation entries such as entrance, state transfer relationship editor's entrance, state nest relation editor's entrance are drawn in state of atom editor's entrance, state diagram, for carrying out selecting for user.When implementing, user can use the instrument that above-mentioned entrance provides that the various forms of state of atom of input are carried out editing and processing, such as, when the state of atom of input is " under battle conditions map ", the graphical authoring tools that user can draw entrance by state diagram and provide carries out that Status icons is newly-built, replicates, revises, leaves out, it is achieved the editor to fundamental figure unit.
S102: receive state of atom that behavior model to be generated includes, transfer relationship between each state and nest relation by described editor's entrance;User can first pass through each entrance state of atom that carries out the model to generate is comprised provided in step S101 and input, and then passes through that entrance is drawn in state diagram, the transfer relationship between each state of atom of input and nest relation are set by state transfer relationship editor's entrance, state nest relation editor's entrance.
S103: after receiving the request preserving edited result, by calling preset bottom code, create the state of atom, state transfer relationship and the nest relation that comprise in described edited result, and generate behavior model.After in step S102, transfer relationship and nest relation set, when receiving the request preserving edited result, the state of atom of current active can be determined, when the state of atom of current active meets the state transfer relationship or state nest relation that pre-set, then it is transferred to next state of atom by the state of atom of current active, the state of follow-up each state machine changes, and this current active state all can be updated to the state after transfer, and then wait that state updates next time.
The behavior model that the method that the embodiment of the present application provides generates, described behavior model is used for simulation training operation scene.When specifically applying, described state of atom includes starting state, close dbjective state and target of attack state, described transfer relationship includes described starting state, near the distance relation between dbjective state and target of attack state, described nest relation includes being returned by described target of attack state described near dbjective state.Such as, this starting state can be " taking off " state, state of " taking off " with this near the distance relation of dbjective state for less than 10 kms, this near the distance relation of dbjective state and target of attack state less than for 5 kms, during " taking off " state of entrance, next state is " near target ", when meeting distance relation less than 10 kms, it is transferred to next state " near target ", when meeting new distance relation less than entering next state " target of attack " during for 5 km, this state can return state " near target " according to the nest relation returned after completing, such a basic taking off just is edited complete with attacking behavior model.Again such as, this state of atom can be starting state, close dbjective state and target of attack state, described transfer relationship includes described starting state, near the planned time relation between dbjective state and target of attack state, this planned time relation can include the departure time, the cycle of taking off and spatial domain activity time etc..When this planned time is the departure time, this departure time is then entered near dbjective state by starting state after reaching 10 minutes, target of attack state is entered near dbjective state when reaching 15 minutes, distance relation can certainly be associated with planned time relation, generating the behavior model needed, concrete generation method repeats no more.Then by meeting it is also possible that the behavior model stating generation carries out preserving forms behavior model storehouse.The model library generated can supply relevant analogue system to call.
Multiple behavior model can be previously generated by the method to call for user, for instance, it is possible to include equipment experimental model, military model, environmental model, threedimensional model etc..Behavior model can provide the user various disease model framework and code, and user can carry out parameter modification or extension easily, carries out equipment model modeling or military model modeling.May be provided for equipment model resource pool management function, SQL2005/Oracle data base can be adopted, be specifically designed to equipment model that management generates, military model, cartographic model, the data such as simulation scenario, according to the right to use limit the use of family can inquire about, additions and deletions, each behavior model in amendment model resource storehouse content.
In a word, by the embodiment of the present application, the behavior model generated by the method is for simulating human decision behavior in analogue system, by basic state of atom is carried out state synthesis, conditional jump etc., thus consummatory behavior model editing, and state conversion process can be previewed in real time.The method is intuitively simple, it is simple to non-technical personnel carries out model editing, and the army personnel being such as ignorant of programming edits tactics behavior model, it is only necessary to atom condition is combined.Easy-to-understand, easy to use, institute's edit model can conveniently call for various analogue systems.
Generating method with a kind of behavior model that the embodiment of the present invention provides corresponding, the embodiment of the present invention additionally provides a kind of behavior model and generates system, and referring to Fig. 2, this system can include with lower unit:
Editing interface provides unit 201, for providing behavior model editing interface, described editing interface includes editor's entrance, and described editor's entrance includes: entrance, state transfer relationship editor's entrance, state nest relation editor's entrance are drawn in state of atom editor's entrance, state diagram;
Receive unit 202, for the transfer relationship between the state of atom included by described editor's entrance reception behavior model to be generated, each state and nest relation;
Model generation unit 203, after receiving the request preserving edited result, by calling preset bottom code, creates the state of atom, state transfer relationship and the nest relation that comprise in described edited result, and generates behavior model.
Described model generation unit, including:
Model library generates unit, for being undertaken preserving and generate behavior model storehouse by the behavior model of described generation.
Described behavior model is used for simulation training operation scene.
Described reception unit, including:
Described state of atom includes starting state, close dbjective state and target of attack state, described transfer relationship includes described starting state, near the distance relation between dbjective state and target of attack state, described nest relation includes being returned by described target of attack state described near dbjective state.
As seen through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of required general hardware platform by software to the present invention and realize.Based on such understanding, the part that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this specification all adopts the mode gone forward one by one to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is the difference with other embodiments.Especially for device or system embodiment, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part illustrates referring to the part of embodiment of the method.Apparatus and system embodiment described above is merely schematic, the wherein said unit illustrated as separating component can be or may not be physically separate, the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Above a kind of behavior model provided by the present invention is generated method and system, it is described in detail, principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, all will change in specific embodiments and applications.In sum, this specification content should not be construed as limitation of the present invention.

Claims (8)

1. a behavior model generates method, it is characterised in that including:
Thering is provided behavior model editing interface, described editing interface includes editor's entrance, and described editor's entrance includes: entrance, state transfer relationship editor's entrance, state nest relation editor's entrance are drawn in state of atom editor's entrance, state diagram;
State of atom that behavior model to be generated includes, transfer relationship between each state and nest relation is received by described editor's entrance;
After receiving the request preserving edited result, by calling preset bottom code, create the state of atom, state transfer relationship and the nest relation that comprise in described edited result, and generate behavior model.
2. method according to claim 1, it is characterised in that state of atom, state transfer relationship and the nest relation comprised in the described edited result of described establishment, and generate behavior model, including:
Undertaken the behavior model of described generation preserving and form behavior model storehouse.
3. method according to claim 1, it is characterised in that described behavior model is used for simulation training operation scene.
4. method according to claim 1, it is characterised in that described receive state of atom that behavior model to be generated includes, transfer relationship between each state and nest relation by described editor's entrance, including:
Described state of atom includes starting state, close dbjective state and target of attack state, described transfer relationship includes described starting state, near the distance relation between dbjective state and target of attack state, described nest relation includes being returned by described target of attack state described near dbjective state.
5. a behavior model generates system, it is characterised in that including:
Editing interface provides unit, for providing behavior model editing interface, described editing interface includes editor's entrance, and described editor's entrance includes: entrance, state transfer relationship editor's entrance, state nest relation editor's entrance are drawn in state of atom editor's entrance, state diagram;
Receive unit, for the transfer relationship between the state of atom included by described editor's entrance reception behavior model to be generated, each state and nest relation;
Model generation unit, after receiving the request preserving edited result, by calling preset bottom code, creates the state of atom, state transfer relationship and the nest relation that comprise in described edited result, and generates behavior model.
6. system according to claim 5, it is characterised in that described model generation unit, including:
Model library generates unit, for being undertaken preserving and generate behavior model storehouse by the behavior model of described generation.
7. system according to claim 5, it is characterised in that described behavior model is used for simulation training operation scene.
8. system according to claim 5, it is characterised in that described reception unit, including:
Described state of atom includes starting state, close dbjective state and target of attack state, described transfer relationship includes described starting state, near the distance relation between dbjective state and target of attack state, described nest relation includes being returned by described target of attack state described near dbjective state.
CN201610146436.0A 2016-03-15 2016-03-15 Behavior model generation method and system Pending CN105808265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610146436.0A CN105808265A (en) 2016-03-15 2016-03-15 Behavior model generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610146436.0A CN105808265A (en) 2016-03-15 2016-03-15 Behavior model generation method and system

Publications (1)

Publication Number Publication Date
CN105808265A true CN105808265A (en) 2016-07-27

Family

ID=56467447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610146436.0A Pending CN105808265A (en) 2016-03-15 2016-03-15 Behavior model generation method and system

Country Status (1)

Country Link
CN (1) CN105808265A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176772A (en) * 2019-12-24 2020-05-19 安克创新科技股份有限公司 Method and device for state switching and robot

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6317638B1 (en) * 1997-08-22 2001-11-13 Honeywell Inc. Multi-layer state machine for a hybrid real-time control system and method of operation thereof
JP2004301535A (en) * 2003-03-28 2004-10-28 Kurimoto Ltd Method for analyzing bonding state of organic film on surface of metal
CN101464796A (en) * 2008-12-29 2009-06-24 武汉大学 Method for establishing software requirement model
CN101673198A (en) * 2009-03-06 2010-03-17 华东师范大学 Method for verifying consistency of dynamic behavior in UML model and time-sequence contract
CN103336694A (en) * 2013-07-08 2013-10-02 北京航空航天大学 Entity behavioral modeling assembling method and system
CN103488568A (en) * 2013-09-30 2014-01-01 南京航空航天大学 Embedded software trusted attribute modeling and verification method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6317638B1 (en) * 1997-08-22 2001-11-13 Honeywell Inc. Multi-layer state machine for a hybrid real-time control system and method of operation thereof
JP2004301535A (en) * 2003-03-28 2004-10-28 Kurimoto Ltd Method for analyzing bonding state of organic film on surface of metal
CN101464796A (en) * 2008-12-29 2009-06-24 武汉大学 Method for establishing software requirement model
CN101673198A (en) * 2009-03-06 2010-03-17 华东师范大学 Method for verifying consistency of dynamic behavior in UML model and time-sequence contract
CN103336694A (en) * 2013-07-08 2013-10-02 北京航空航天大学 Entity behavioral modeling assembling method and system
CN103488568A (en) * 2013-09-30 2014-01-01 南京航空航天大学 Embedded software trusted attribute modeling and verification method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴雨淋等: "CGF行为建模的可重用技术研究", 《系统仿真学报》 *
王佳乐等: "《世界经典文库 世界军事百科 第1册 图文珍藏版》", 31 October 2013 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176772A (en) * 2019-12-24 2020-05-19 安克创新科技股份有限公司 Method and device for state switching and robot
CN111176772B (en) * 2019-12-24 2022-07-01 安克创新科技股份有限公司 Method and device for state switching and robot

Similar Documents

Publication Publication Date Title
Hemingway et al. Rapid synthesis of high-level architecture-based heterogeneous simulation: a model-based integration approach
CN106127453B (en) Building design management system based on BIM and VR and management method thereof
Cesta et al. MrSPOCK—STEPS IN DEVELOPING AN END‐TO‐END SPACE APPLICATION
Zeigler et al. DEVS-C++: a high performance modelling and simulation environment
CN106156186A (en) A kind of data model managing device, server and data processing method
Olszewska et al. DevOps meets formal modelling in high-criticality complex systems
CN109472104A (en) A kind of 500KV substation VR Construction simulation method and device
Jafer et al. Graphical specification of flight scenarios with aviation scenario defintion language (ASDL)
Jeon et al. Metamodel-based CPS modeling tool
Jin et al. Power grid simulation applications developed using the GridPACK™ high performance computing framework
Nägele et al. Rapid construction of co-simulations of cyber-physical systems in HLA using a DSL
CN105808265A (en) Behavior model generation method and system
US8533616B2 (en) Time support for service adaptation
D'Ambrogio et al. A Model Transformation Approach for the Development of HLA-based Distributed Simulation Systems.
CN116360294A (en) Simulation method and device based on active power distribution network
Freitas et al. Limitations and divergences in approaches for agent-oriented modelling and programming
Juhás et al. Petriflow language and Netgrif Application Builder.
Yuan et al. Virtual reality platform based on open sourced graphics toolkit openscenegraph
CN110968363A (en) Data configuration synchronization method and device, electronic equipment and readable storage medium
Gorecki et al. BPMN Modeling for hla based simulation and visualization
Béhé et al. Semantic management of intelligent multi-agents systems in a 3d environment
Loher Solving the Fisher/KPP Evolution on the Globe
Schöttle et al. Specification of domain-specific languages based on concern interfaces
Mironescu et al. Developing of a High Level Architecture based Beer Game Simulation in the ADOxx Environment
Mrozek et al. Teaching object oriented software engineering with UML

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160727

RJ01 Rejection of invention patent application after publication