CN112817584B - Non-programming visual chess rule design editing system based on script - Google Patents

Non-programming visual chess rule design editing system based on script Download PDF

Info

Publication number
CN112817584B
CN112817584B CN202110123327.8A CN202110123327A CN112817584B CN 112817584 B CN112817584 B CN 112817584B CN 202110123327 A CN202110123327 A CN 202110123327A CN 112817584 B CN112817584 B CN 112817584B
Authority
CN
China
Prior art keywords
rule
script
editing
data
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110123327.8A
Other languages
Chinese (zh)
Other versions
CN112817584A (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.)
BEIJING HUARU TECHNOLOGY CO LTD
Original Assignee
BEIJING HUARU 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 HUARU TECHNOLOGY CO LTD filed Critical BEIJING HUARU TECHNOLOGY CO LTD
Priority to CN202110123327.8A priority Critical patent/CN112817584B/en
Publication of CN112817584A publication Critical patent/CN112817584A/en
Application granted granted Critical
Publication of CN112817584B publication Critical patent/CN112817584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a script-based non-programming visual chess rule design editing system, which isolates rule editing and encoding, and the rule design and editing completely adopts a visual graphic UI (user interface) to complete the complete process of rule design, realization, test, code conversion and 'hot plug' use without encoding. The system comprises: the system comprises a rule factor design and expansion module, a rule visual design and editing module, a rule checking, verifying and testing module, a rule modeling module based on script, an auxiliary decision and analysis evaluation module and a rule flow viewing and rule data visual module. In the expansibility level, the system integrally adopts a model-view-controller (ModelViewController, MVC) mode, and a plug-in mode is used for realizing the system function. In the usability level, the system is friendly in human-computer interaction, a graphical editing interface is adopted, script codes are automatically generated, and a user can design efficient and correct chess rules based on the system.

Description

Non-programming visual chess rule design editing system based on script
Technical Field
The application relates to the field of simulation modeling and chess deduction, in particular to a script-based non-programming visual chess rule design editing system.
Background
At present, in the deduction of the chess, the decision rule is a basic rule and core for implementing the deduction of the chess, is a summary and induction of combat experience, is a decision method and a rule designed according to actual combat situations and combining the principle of probability statistics, and is mainly used for deciding the conditions of maneuver, combat damage, logistic replenishment and the like of both parties. The decision flow informs the limit condition and action result of the action of the opposite parties in executing the maneuver, the fight and the like according to the rule. The realization system for the rule and the process of the soldier chess is always the basis of important components and the requirements for realizing the countermeasure.
At present, most of the existing rule editing technologies need to be realized by adopting a programming language and bound to corresponding judging flows to execute codes, when the rules need to be changed, the rules need to be finished after the stages of code modification, recompilation, running debugging, restarting a system and the like, the rule editing personnel need to be closely matched with military personnel, and the defects of low efficiency and incapability of online setting and adjustment exist.
The Script Language (Script Language) is a kind of computer Language, and is also called dynamic Language because its structure can be modified after the program starts, and the original function can be deleted and a new function can be added. Scripting languages are computer programming languages created to shorten the traditional write-compile-link-run (edit-run) process, with a script typically being interpreted rather than compiled. In recent years, with the maturation of internet technology and innovation of programming methods, scripting languages are becoming more and more widely used and becoming more popular.
Disclosure of Invention
Aiming at the problems of poor usability, difficult expansion, high complexity and the like of the conventional rule editing method for the soldier chess deduction system based on coding modification rules, the application discloses a non-programming visual soldier chess rule design editing system based on scripts, which isolates rule editing from coding, and the rule design and editing completely adopts a visual graphic UI to complete the complete process of rule design, realization, test, code conversion and 'hot plug' use without coding.
In the expansibility level, the system is integrally in a model-view-controller (Model View Controller, MVC) mode, system functions are realized by using a plug-in mode, each functional module provides an expansion specification, a user can cut and splice the system functions, and new plug-ins can be realized according to the expansion specification of the system functions, so that the system functions are expanded.
In the usability level, the system is friendly in human-computer interaction, adopts a graphical editing interface, is provided with detailed use instructions, provides rich operation prompts, automatically checks various errors, verifies test data flow, automatically generates script codes, and enables a user to design efficient and correct chess rules based on the system.
In the practicality level, the system generates rules based on scripts, so that a user can construct rules and design flows in a graphical mode under the condition of not contacting codes, the generated rules can be directly used without compiling and debugging or restarting the system, the rules are hot plugged, and the rules scripts can be set and adjusted in a plug-and-play and instant effect mode.
The application discloses a script-based non-programming visual chess rule design editing system, which comprises: the system comprises a rule factor design and expansion module, a rule visual design and editing module, a rule checking, verifying and testing module, a rule modeling module based on script, an auxiliary decision and analysis evaluation module and a rule flow viewing and rule data visual module. The rule factor design and expansion module is connected with the rule visual design and editing module, the rule visual design and editing module is connected with the rule checking, verifying and testing module, the rule checking, verifying and testing module is connected with the rule modeling module based on script, the rule modeling module based on script is connected with the auxiliary decision and analysis evaluation module, and the auxiliary decision and analysis evaluation module is connected with the rule flow checking and rule data visual module.
The rule factor design and expansion module is used as a minimum unit of design and composition rules, and is internally provided with various rule factors, including flow control rule factors, operation rule factors, data source rule factors, form rule factors, sub-flow rule factors and the like, and is used for meeting various rule design requirements; an expansion mechanism is provided for the rule factors, so that the rule factors are customized by a user, and the requirements of special rules are met; and (3) rule factors are classified and managed, and the graphical interface, the attribute editing, the inspection test and the script template of each rule factor are flexibly customized according to actual requirements.
The rule visual design and editing module is used for realizing rule editing of the chess based on a graphic form and realizing flow editing of the rules of the chess by adopting a friendly man-machine interaction mode; for setting of input/output data connection modes among flow nodes in the chess rules, the modules are realized by adopting a mouse dragging mode; the method has the advantages of providing functions of scaling roaming, layout management, alignment operation, background grid and the like of rule elements, and carrying out complete prompt on operation rules in the operation process so as to assist users to complete design and editing of the chess rules.
The rule checking, verifying and testing module is used for checking, verifying and testing the chess rules output by the rule visual design and editing module, wherein the checking comprises general detection and special checking; the verification is that the data flow in rule editing is carried out in Json (JavaScript Object Notation, json) format, and the input and output of each module are verified to be complete and legal by the corresponding JsonSchema; the test means that external test data are input into a rule checking, verifying and testing module and the chess rule is operated to test whether the flow of the chess rule accords with the expectation and whether the output result is correct.
The rule modeling module based on the script designs a script language aiming at the rule modeling method of the chess, defines corresponding keywords, terms, symbols and grammar, and defines the structure of the rule model of the chess based on the corresponding keywords, the terms, the symbols and the grammar.
The auxiliary decision-making and analysis evaluation module is used for calculating the occurrence probability of various operation results based on the probability statistics principle, and carrying out statistical analysis on the occurrence probability of all the operation results to obtain the overall probability evaluation result of the operation instruction input and the operation result output under the chess rule, so as to assist the commander in making decisions.
And the rule flow view and rule data visualization module is used for completing arbitration data visualization, rule flow visualization, process data visualization, operator attribute visualization and the like.
The system architecture adopts a design mode of a model-view-controller (Model View Controller, MVC) to carry out system development and system maintenance in a mode of separating business logic, data and interface display. According to the design pattern of MVC, system functions include rule models, edit views, and control views.
The rule model function is used for describing the combat and arbitration rules, namely describing the principle on which the combat and arbitration processes are based in the combat process. The rule model is composed of rule elements, each rule element is bound with a corresponding script template, when the rule elements are serialized, the script templates are modified and combined to generate a final rule model script file, the rule model script file is bound with specific arbitration and behaviors, and when the server receives an operation request of deduction operators, the rule engine of the server automatically loads and analyzes the corresponding rule scripts. The Serialization (Serialization) is a process of converting state information of an object into a form that can be stored or transmitted. The server is a platform for the system to operate.
The editing view function is a function of adding, deleting, editing and the like of view elements. The view elements are visual display of the rule model on the editing interface, and are in one-to-one correspondence with the rule model and the script template. According to the rule factor types, functions and the relation among the rule factors, view elements such as colors, shapes and the like are designed and displayed.
The view control function is used for converting between service logic data and view display data, wherein the service logic data comprises model parameters, and the view display data comprises types, positions, attributes, front-back relations, connection relations and the like of view elements in view display. The control view function is responsible for reading data from the view and sending the data to the model; and the model is responsible for acquiring data, transmitting the data to a display layer for visual display, and synchronously updating the display layer when the model data change.
The rule factor design and expansion module is used for completing the built-in rule factors, the custom rule factors and the rule factor parameter editing and storing and rule factor classification management functions. The built-in rule factors include: the flow control class comprises a start, an end and a connecting line; the operation class comprises addition, subtraction, multiplication and division; the data source class comprises constant parameters, input parameters and attribute parameters; form class including look-up table, random number, script code; sub-flow classes, including sub-flows.
The rule visual design and editing module is used for completing functions of adding, deleting, editing, connecting in series and the like of view elements, and specifically comprises the following steps: creating a view element, adding the view element in the main window of the editor by clicking or dragging, and performing related editing operation on the view element; deleting the elements, namely deleting the selected view elements through clicking or keyboard operation; renaming view elements, and modifying view element names, wherein the view element names are unique identifiers of the view elements and are core factors of view element management; modifying the attribute, and providing a related attribute modification function; layout adjustment, namely adjusting the layout (upper alignment, lower alignment, left alignment, right alignment, transverse distribution and longitudinal distribution) of view elements in a view main window; the flow is connected in series, and the input/output data connection modes among view element nodes are realized by adopting a mouse dragging mode; overall zoom roaming control of views.
The rule checking, verifying and testing module is used for checking, verifying and testing the chess rules output by the rule visual design and editing module, marking and prompting after errors are checked; verifying the integrity and validity of input and output data of the system; and testing the correctness of the final result of the rule flow. The functions of the rule checking, verifying and testing module are that general checking comprises type matching checking, description conflict checking, pin idle checking and the like, special checking comprises flow loop checking, input disagreement checking and the like; verification, including integrity verification and validity verification, wherein the integrity verification verifies necessary attribute constraints, and the validity verification verifies type constraints of parameters, regular constraints of character strings, range constraints of numbers and the like; the test is to call a rule script under given input data to obtain an output result, and judge whether the output result accords with the expected one. For the rule checking, verifying and testing module, the input data is manually input by a user or imported by adopting the existing test case data.
The rule modeling module based on the script is used for generating a rule script, editing a complex script template, binding the script template with a rule factor, serializing and storing a rule flow, and automatically generating the rule script by the rule flow. The specific functions include:
editing a script template, namely adding, deleting, modifying and viewing the rule element script template;
binding rule factors, namely binding edited script templates to generate a final rule script;
serializing a rule flow, serializing the rule flow into Json data and storing the Json data, or reading the existing Json data, and displaying a flow chart interface after analysis;
automatically generating scripts, automatically arranging the generation sequence according to the front-back dependency relationship of rule factors in the flow chart, generating script codes one by one factor, and combining the codes to generate a final rule script.
The auxiliary decision-making and analysis evaluation module is used for completing analysis statistics of possible results under a certain rule through a large amount of calculation based on the principle of probability statistics and displaying the statistical results in a graphical mode.
The rule flow checking and rule data visualization module completes the interface display of related data in rule editing, is convenient for a user to intuitively and rapidly check data and display the data, and comprises the following modes: the method comprises the steps of judging data displayed in a table form, process data displayed in a flow chart form, operator attributes displayed in a tree structure form, equipment parameters displayed in a tree structure form and statistical results displayed in a histogram form.
The beneficial effects of the application are as follows:
(1) The method adopts the plug-in design idea to construct the system, achieves the aims of high cohesion and low coupling of the system function, has high tailorability and high expansibility, and is convenient for customizing and expanding the soldier chess deduction system rules suitable for the requirements of various fields.
(2) The application provides visual design and editing tools for the chess rules, a user can rely on various rule factors built in the system to carry out the design and implementation of the deduction rules and the judgment rules of the chess in a flow chart mode, and the user can construct a full-new chess rule system under the condition of not contacting program codes.
(3) The application provides evaluation analysis and visual display of data for the deduction action of the chess, thereby achieving the purpose of providing assistance and reference for the decision making of the fighter participants.
(4) The application provides abundant items of inspection (description conflict, null attribute, pin idle, flow loop, and the like), verification (JsonSchema verifies the integrity and validity of data) and test (tests data operation output) for the designed rule, so as to ensure the correctness and rationality of the rule.
(5) The rule designed by the application is based on the script, faces to non-coding personnel, avoids complex processes of code compiling, debugging, system restarting and the like, realizes the hot plug of the rule, and can realize plug and play and immediate effect of the rule script and set and adjust on line.
Drawings
FIG. 1 is a diagram of the overall architecture of a script-based non-programming, visual chess rule design editing system.
Detailed Description
For a better understanding of the present disclosure, an embodiment is presented herein.
The application discloses a script-based non-programming visual chess rule design editing system, which comprises: the system comprises a rule factor design and expansion module, a rule visual design and editing module, a rule checking, verifying and testing module, a script-based rule modeling module, an auxiliary decision and analysis evaluation module and a rule flow viewing and rule data visual module. FIG. 1 is a diagram of the overall architecture of a script-based non-programming, visual chess rule design editing system. The rule factor design and expansion module is connected with the rule visual design and editing module, the rule visual design and editing module is connected with the rule checking, verifying and testing module, the rule checking, verifying and testing module is connected with the rule modeling module based on script, the rule modeling module based on script is connected with the auxiliary decision and analysis evaluation module, and the auxiliary decision and analysis evaluation module is connected with the rule flow checking and rule data visual module.
The system architecture adopts a design pattern of a model-view-controller (Model View Controller, MVC) to carry out system development and system maintenance in a mode of separating business logic, data and interface display. According to the design pattern of MVC, system functions include rule models, edit views, and control views.
The rule model function is used for describing the combat and arbitration rules, namely describing the principle on which the combat and arbitration processes are based in the combat process. The rule model is composed of rule elements, each rule element is bound with a corresponding script template, when the rule elements are serialized, the script templates are modified and combined to generate a final rule model script file, the rule model script file is bound with specific arbitration and behaviors, and when the server receives an operation request of deduction operators, the rule engine of the server automatically loads and analyzes the corresponding rule scripts. The Serialization (Serialization) is a process of converting state information of an object into a form that can be stored or transmitted. The behavior in the deduction of the chess mainly refers to the striking, reconnaissance and detection behaviors among the fight entities. The script generated by the system runs on a deduction engine of the server when being finally used. The server is a platform for the system to operate.
The editing view function is a function of adding, deleting, editing and the like of view elements. The view elements are visual display of the rule model on the editing interface, and are in one-to-one correspondence with the rule model and the script template. Script-based non-programming visual soldier chess rule design editing needs to logically and datanize combat and judge rules in a script-based mode, needs to split the combat and judge rules into various rule factors, designs view elements corresponding to the rule factors for the rule factors, can edit the view elements through a rule editor window with a good interface, and finally maps the view elements to the rule factors. According to the types, functions and the mutual connection of the rule factors, view elements such as colors, shapes and the like are designed and displayed, so that view operation is clearer and more convenient.
The control view function is used for converting between service logic data and view display data, the service logic data comprises model parameters, the view display data comprises types, positions, attributes, front-back relations, connection relations and the like of view elements in view display, and the model layer and the display layer are separated, so that the model data layer can be used for displaying various views under the condition that the model data layer is unchanged. The view control function is used as a bridge between a service layer and a display layer in the system and is responsible for reading data from views and sending the data to a model; and the model is responsible for acquiring data, transmitting the data to a display layer for visual display, and synchronously updating the display layer when the model data change.
The rule factor design and expansion module is used for completing the built-in rule factors, the custom rule factors and the rule factor parameter editing and storing and rule factor classification management functions. The built-in rule factors include: flow control class: starting, ending and connecting wires; operation class: adding, subtracting, multiplying and dividing; data source class: constant parameters, input parameters, attribute parameters; form class: look-up table, random number and script code; sub-flow class: sub-flows.
The rule visual design and editing module is used for completing functions of adding, deleting, editing, connecting in series and the like of view elements, and specifically comprises the following steps: creating a view element, adding the view element in the main window of the editor by clicking or dragging, and performing related editing operation on the view element; deleting the elements, namely deleting the selected view elements through clicking or keyboard operation; renaming view elements, and modifying view element names, wherein the view element names are unique identifiers of the view elements and are core factors of view element management; modifying the attribute, and providing a related attribute modification function; layout adjustment, namely adjusting the layout (upper alignment, lower alignment, left alignment, right alignment, transverse distribution and longitudinal distribution) of view elements in a view main window; the flow is connected in series, and the input/output data connection modes among view element nodes are realized by adopting a mouse dragging mode; overall zoom roaming control of views.
The rule checking, verifying and testing module is used for checking, verifying and testing the chess rules output by the rule visual design and editing module, marking and prompting after errors are checked; verifying the integrity and validity of input and output data of the system; and testing the correctness of the final result of the rule flow. The functions of the rule checking, verifying and testing module are that general checking comprises type matching checking, description conflict checking, pin idle checking and the like, special checking comprises flow loop checking, input disagreement checking and the like; verification, including integrity verification and validity verification, wherein the integrity verification verifies necessary attribute constraints, and the validity verification verifies type constraints of parameters, regular constraints of character strings, range constraints of numbers and the like; the test is to call a rule script under given input data to obtain an output result, and judge whether the output result accords with the expected one. For the rule checking, verifying and testing module, the input data is manually input by a user or imported by adopting the existing test case data.
The rule modeling module based on the script is used for generating a rule script, editing a complex script template, binding the script template with a rule factor, serializing and storing a rule flow, and automatically generating the rule script by the rule flow. The specific functions include:
editing a script template, namely adding, deleting, modifying and viewing the rule element script template;
binding rule factors, namely binding edited script templates to generate a final rule script;
serializing a rule flow, serializing the rule flow into Json data and storing the Json data, and also reading the existing Json data, and displaying a flow chart interface after analysis;
automatically generating scripts, automatically arranging the generation sequence according to the front-back dependency relationship of rule factors in the flow chart, generating script codes one by one factor, and combining the codes to generate a final rule script.
The auxiliary decision-making and analysis evaluation module is used for completing analysis statistics of possible results under a certain rule through a large amount of calculation based on the principle of probability statistics, and displaying the statistical results in a graphical mode, so that the user can intuitively understand the statistical results. Based on the auxiliary decision result, the commander can intuitively analyze the trend of input (operation instruction) and output (operation result) to make the decision which is most favorable for the commander to achieve the purpose of trending and avoiding the harm.
The rule flow checking and rule data visualization module completes the interface display of related data in rule editing, is convenient for a user to intuitively and rapidly check data and display the data, and comprises the following modes: arbitration data (tabular form presentation), process data (flow chart form presentation), operator attributes (tree structure form presentation), equipment parameters (tree structure form presentation), statistics (histogram form presentation).
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (7)

1. A script-based non-programming, visual chess rule design editing system, comprising: the system comprises a rule factor design and expansion module, a rule visual design and editing module, a rule checking, verifying and testing module, a rule modeling module based on a script, an auxiliary decision and analysis evaluation module and a rule flow checking and rule data visual module; the rule factor design and expansion module is connected with the rule visual design and editing module, the rule visual design and editing module is connected with the rule checking, verifying and testing module, the rule checking, verifying and testing module is connected with the rule modeling module based on script, the rule modeling module based on script is connected with the auxiliary decision and analysis evaluation module, and the auxiliary decision and analysis evaluation module is connected with the rule flow checking and rule data visual module;
the rule factor design and expansion module is used as a minimum unit of design and composition rules, and is internally provided with various rule factors, including flow control rule factors, operation rule factors, data source rule factors, form rule factors and sub-flow rule factors, and is used for meeting various rule design requirements; an expansion mechanism is provided for the rule factors, so that the rule factors are customized by a user, and the requirements of special rules are met; rule factors are classified and managed, and a graphical interface, attribute editing, inspection testing and script templates of each type of rule factors are flexibly customized according to actual requirements;
the rule visual design and editing module is used for realizing rule editing of the chess based on a graphic form and realizing flow editing of the rules of the chess by adopting a friendly man-machine interaction mode; for setting of input/output data connection modes among flow nodes in the chess rules, the modules are realized by adopting a mouse dragging mode; providing functions of scaling roaming, layout management, alignment operation and background grid of rule elements, and completely prompting operation rules in the operation process to assist users to complete design and editing of chess rules;
the rule checking, verifying and testing module is used for checking, verifying and testing the chess rules output by the rule visual design and editing module, wherein the checking comprises general detection and special checking; the verification means that the data flow in rule editing is carried out in a Json format, and the input and output of each module verify the integrity and legitimacy of the data by using the corresponding JsonSchema; the test means that external test data are input into a rule checking, verifying and testing module and a chess rule is operated to test whether the flow of the chess rule accords with expectations and whether the output result is correct;
the rule modeling module based on the script designs a script language aiming at a chess rule modeling method, defines corresponding keywords, terms, symbols and grammar, and defines the structure of a chess rule model based on the corresponding keywords, the terms, the symbols and the grammar; the rule model consists of rule elements, each rule element is bound with a corresponding script template, when the rule elements are serialized, the script templates are modified and combined to generate a final rule model script file, the rule model script file is bound with specific arbitration and behaviors, and when the server receives an operation request of a deduction operator, the rule engine of the server automatically loads and analyzes the corresponding rule script; the serialization is a process of converting the state information of the object into a form capable of being stored or transmitted; the server is a platform for running the system;
the auxiliary decision-making and analysis evaluation module is used for calculating the occurrence probability of various operation results based on the probability statistics principle, and carrying out statistical analysis on the occurrence probability of all the operation results to obtain the overall probability evaluation result of the operation instruction input and the operation result output under the chess rule;
and the rule flow view and rule data visualization module is used for completing arbitration data visualization, rule flow visualization, process data visualization and operator attribute visualization.
2. A script-based non-programming, visual chess rules design editing system as claimed in claim 1, wherein,
the system architecture adopts the design mode of model-view-controller MVC, and performs system development and system maintenance in a mode of separating business logic, data and interface display; according to the design pattern of MVC, the system functions comprise rule models, editing views and control views;
the rule model function is used for describing the combat and arbitration rules, namely describing the principle on which the combat and arbitration processes are based in the combat process;
the editing view function is to provide functions of adding, deleting and editing view elements; the view elements are visual display of the rule model on the editing interface, and are in one-to-one correspondence with the rule model and the script template; according to the types, functions and the relation among the rule factors, designing and displaying color and shape view elements;
the view control function is used for converting between service logic data and view display data, wherein the service logic data comprises model parameters, and the view display data comprises types, positions, attributes, front-back relations and connection relations of view elements in view display; the control view function is responsible for reading data from the view and sending the data to the model; and the model is responsible for acquiring data, transmitting the data to a display layer for visual display, and synchronously updating the display layer when the model data change.
3. A script-based non-programming, visual chess rules design editing system as claimed in claim 1, wherein,
the rule factor design and expansion module is used for completing the built-in rule factors, custom rule factors and rule factor parameter editing and saving, and rule factor classification management functions; the built-in rule factors include: the flow control class comprises a start, an end and a connecting line; the operation class comprises addition, subtraction, multiplication and division; the data source class comprises constant parameters, input parameters and attribute parameters; form class including look-up table, random number, script code; sub-flow classes, including sub-flows.
4. A script-based non-programming, visual chess rules design editing system as claimed in claim 1, wherein,
the rule visual design and editing module is used for completing the functions of adding, deleting, editing and connecting view elements in series, and specifically comprises the following steps: creating a view element, adding the view element in the main window of the editor by clicking or dragging, and performing related editing operation on the view element; deleting the elements, namely deleting the selected view elements through clicking or keyboard operation; renaming view elements, and modifying view element names, wherein the view element names are unique identifiers of the view elements and are core factors of view element management; modifying the attribute, and providing a related attribute modification function; layout adjustment, namely adjusting the layout of view elements in a view main window; the flow is connected in series, and the input/output data connection modes among view element nodes are realized by adopting a mouse dragging mode; overall zoom roaming control of views.
5. A script-based non-programming, visual chess rules design editing system as claimed in claim 1, wherein,
the rule checking, verifying and testing module is used for checking, verifying and testing the chess rules output by the rule visual design and editing module, marking and prompting after errors are checked; verifying the integrity and validity of input and output data of the system; testing the correctness of the final result of the rule flow; the functions of the rule checking, verifying and testing module are that general checking comprises type matching checking, description conflict checking, pin idle checking and special checking, and the special checking comprises flow loop checking and input disagreement checking; the verification comprises integrity verification and validity verification, wherein the integrity verification verifies necessary attribute constraints, and the validity verification verifies type constraints of parameters, regular constraints of character strings and range constraints of numbers; the test is to call a rule script under given input data to obtain an output result, and judge whether the output result accords with the expected or not; for the rule checking, verifying and testing module, the input data is manually input by a user or imported by adopting the existing test case data.
6. A script-based non-programming, visual chess rules design editing system as claimed in claim 1, wherein,
the rule modeling module based on the script is used for generating a rule script, editing a complex script template, binding the script template with a rule factor, serializing and storing a rule flow, and automatically generating the rule script by the rule flow; the specific functions include:
editing a script template, namely adding, deleting, modifying and viewing the rule element script template;
binding rule factors, namely binding edited script templates to generate a final rule script;
serializing a rule flow, serializing the rule flow into Json data and storing the Json data, or reading the existing Json data, and displaying a flow chart interface after analysis;
automatically generating scripts, automatically arranging the generation sequence according to the front-back dependency relationship of rule factors in the flow chart, generating script codes one by one factor, and combining the codes to generate a final rule script.
7. A script-based non-programming, visual chess rules design editing system as claimed in claim 1, wherein,
the rule flow viewing and rule data visualization module completes the interface display of related data in rule editing, is convenient for a user to intuitively and rapidly view data and display the data, and comprises the following modes: the method comprises the steps of judging data displayed in a form, process data displayed in a flow chart form, operator attributes displayed in a tree structure form, equipment parameters displayed in a tree structure form and statistical results displayed in a histogram form.
CN202110123327.8A 2021-01-29 2021-01-29 Non-programming visual chess rule design editing system based on script Active CN112817584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110123327.8A CN112817584B (en) 2021-01-29 2021-01-29 Non-programming visual chess rule design editing system based on script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110123327.8A CN112817584B (en) 2021-01-29 2021-01-29 Non-programming visual chess rule design editing system based on script

Publications (2)

Publication Number Publication Date
CN112817584A CN112817584A (en) 2021-05-18
CN112817584B true CN112817584B (en) 2023-09-22

Family

ID=75860005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110123327.8A Active CN112817584B (en) 2021-01-29 2021-01-29 Non-programming visual chess rule design editing system based on script

Country Status (1)

Country Link
CN (1) CN112817584B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572662B (en) * 2021-07-30 2024-02-06 北京天融信网络安全技术有限公司 Network testing method, device, electronic equipment and readable storage medium
CN113658027B (en) * 2021-08-26 2023-12-15 安徽蒂姆自动化科技有限公司 Smart city convenience service platform
CN117873478B (en) * 2024-03-11 2024-05-14 长江龙新媒体有限公司 Application program interface self-defining method based on modularized assembly

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106334A (en) * 2012-12-26 2013-05-15 深圳Tcl新技术有限公司 Method and device for controlling interactive content by utilizing two-dimension code
CN107451195A (en) * 2017-07-03 2017-12-08 三峡大学 One kind is based on the visual war game simulation system of big data
CN109343847A (en) * 2018-09-14 2019-02-15 北京华如科技股份有限公司 The expansible war game simulation platform of multi-domain Oriented
WO2019085832A1 (en) * 2017-10-31 2019-05-09 腾讯科技(深圳)有限公司 Object control apparatus and method, and readable storage medium
CN110263373A (en) * 2019-05-20 2019-09-20 中国人民解放军国防科技大学 Strategy game and war game deduction system based on non-structural data knowledge and self-adaptive Bayesian network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106334A (en) * 2012-12-26 2013-05-15 深圳Tcl新技术有限公司 Method and device for controlling interactive content by utilizing two-dimension code
CN107451195A (en) * 2017-07-03 2017-12-08 三峡大学 One kind is based on the visual war game simulation system of big data
WO2019085832A1 (en) * 2017-10-31 2019-05-09 腾讯科技(深圳)有限公司 Object control apparatus and method, and readable storage medium
CN109343847A (en) * 2018-09-14 2019-02-15 北京华如科技股份有限公司 The expansible war game simulation platform of multi-domain Oriented
CN110263373A (en) * 2019-05-20 2019-09-20 中国人民解放军国防科技大学 Strategy game and war game deduction system based on non-structural data knowledge and self-adaptive Bayesian network

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ntelligent Battle Gaming Pragmatics with Belief Network Trees;Carl G. Looney;《2006 IEEE Symposium on Computational Intelligence and Games》;第243-248页 *
以实体为中心的计算机兵棋建模技术;李云龙等;《指挥信息系统与技术》;第11卷(第6期);第37-41页 *
兵棋推演在公共卫生防疫领域的应用;宋玉豪;《舰船电子工程》;第40卷(第10期);第13-17页 *
基于模板的六角格兵棋地图可视化设计研究;汤奋等;《测绘工程》;第25卷(第4期);第55-59页 *

Also Published As

Publication number Publication date
CN112817584A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN112817584B (en) Non-programming visual chess rule design editing system based on script
US9754059B2 (en) Graphical design verification environment generator
US11561772B2 (en) Low-code development platform
CN106484393B (en) Visual view design method
CN110597959B (en) Text information extraction method and device and electronic equipment
CN111694741B (en) Test case design method based on path depth coverage
CN102360331B (en) Test program automatic generation method based on formal description
CN105843630A (en) Method for graphical programming development based on robot
Hermann et al. Specification and verification of model transformations
CN103793226B (en) Pervasive application code framework fast-generating method and prototype system
CN114139475A (en) Chip verification method, system, device and storage medium
CN112527256A (en) Integrated hydropower station model development system and method
CN103176894A (en) Test data automatic derivative method and automatic derivative device facing database
CN111273900A (en) On-line drag code generation method based on gitlab real-time code sharing
CN113010168B (en) User interface generation method based on scene tree
CN109002284B (en) Visual interlocking logic implementation method
CN114238072A (en) HIL requirement design method, HIL requirement design device, computer equipment and storage medium
Guana et al. Chaintracker: Towards a comprehensive tool for building code-generation environments
CN111679809A (en) Noesis logic-based program development and verification method and system
Lamancha et al. Towards an automated testing framework to manage variability using the UML Testing Profile
Tiwari et al. Combining Model-Based Testing and Automated Analysis of Behavioural Models using GraphWalker and UPPAAL
Norhidayah et al. Development of virtual assembly layout with modeling languages approach and Simulation using Delmia Quest
CN117632093A (en) Software design method and system based on business layering
Li et al. An Integrated Development Environment for Planning Domain Modeling
CN117873468A (en) Code generation system and method based on rule engine

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