A material management method and device
By generating material models and monitoring module attribute information in real time, identifying and updating material status attributes, the problem of inefficient material risk identification is solved, and efficient material management and resource protection is achieved.
Patent Information
- Application Number
- CN202211325048.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-10-27
AI Technical Summary
In the prior art, material risk identification methods are inefficient and prone to waste of resources, making it difficult to effectively identify and manage risks in a modular bill of materials.
By hierarchical division based on the parent-son relationship between modules in the material, a material model is generated, the module attribute information is monitored in real time, the risk value is obtained according to the preset risk identification rules, and the material status attribute is updated compared with the threshold.
It improves the effectiveness and timeliness of material risk identification, avoids resource consumption, ensures the accuracy and safety of material management, and prevents economic losses caused by misuse of risky materials.
Smart Images

Figure CN115907456B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of material management, and particularly to a material management method and device. Background Art
[0002] With the rapid development of fields such as Internet technology, big data, cloud computing, and artificial intelligence, the configurations of servers in various application scenarios are becoming more and more complex, intelligent, and precise. The complexity of product development and the frequency of product maintenance are also increasing accordingly. In the life cycle of a product, the BOM (English: Bill Of Material; Chinese: Material Bill) changes with the change of the product, and the BOM data of server products is also becoming more and more huge. For the BOM of server products, its common forms are modular BOM, fixed BOM, etc. Among them, the material bill means a list containing several materials. It should be understood that the modular material bill can be understood as that the material bill contains several materials, and the materials are composed of modules; or it can be understood that the material bill is composed of modules.
[0003] For a modular material bill, when the modules inside it change, it is very likely that the material status will be abnormal, that is, it is very likely that there will be application risks for the materials. If the materials with application risks are directly applied, it may cause irreparable losses. In the prior art, the means for risk identification of materials is relatively single, and only the risk assessment of materials can be carried out through material application experiments; and the method for material risk assessment based on application experiments is not only inefficient, but also causes waste of resources.
[0004] In view of this, there is an urgent need to propose a material management method and device that can solve the above technical problems. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide a material management method and device that can improve the effectiveness of material risk identification.
[0006] On the one hand, a material management method is provided, and the method includes:
[0007] Based on the parent-child relationship between the modules inside the material, hierarchically divide the modules inside the material to generate a material model;
[0008] Real-time monitor the attribute information of the modules in the material model. If the attribute information of the module changes, obtain the risk value of the material model according to the preset risk identification rules;
[0009] Compare the risk value with the preset risk threshold, and update the status attribute of the material model based on the comparison result;
[0010] Update the status attributes of the material corresponding to the material model based on the status attributes of the material model.
[0011] In one embodiment, based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a material model, including: in response to a material model generation request, generate a binary tree root node based on the modules within the material, where the material model generation request includes root node category information; generate a sub-structure of the binary tree based on the parent-child relationship between the modules within the material, and the sub-structure includes at least one node; assign a risk level and a risk coefficient to each node in the binary tree, and each node in the binary tree corresponds to a module; hierarchically traverse the binary tree, hierarchically divide the binary tree, and generate the material model.
[0012] In one embodiment, the preset risk identification rule includes: defining the module whose attribute information within the material model changes as the first module, and the first module is at least one; based on the first module and the binary tree, defining the node corresponding to the first module as the reference node; based on the reference node, hierarchically traverse the sub-structure where the reference node is located in reverse order until the root node; obtain all the nodes passed from the root node to the reference node, and the nodes are at least one; obtain the product of the risk coefficient of each node and the risk level of the child node, and obtain the first risk value.
[0013] In one embodiment, obtain the risk value of the material model according to the preset risk identification rule, including: when the first module is one, then the first risk value is the risk value of the material model; when the first module is not one, then the sum of the first risk values corresponding to each first module is the risk value of the material model.
[0014] In one embodiment, based on the following formula, obtain the risk value of the material model:
[0015]
[0016]
[0017] Wherein, N is the risk value of the material model; A is the risk value of the sub-structure where the node corresponding to the first module is located; P is the risk level value of the module corresponding to the root node of the sub-structure; L is the risk coefficient of the module corresponding to the child node of the sub-structure; i is the number of sub-structures; m is the maximum value of the number of sub-structures; j is the number of sub-structure layers; n is the maximum value of the number of sub-structure layers.
[0018] In one embodiment, after updating the status attribute of the material model based on the comparison result, the method further includes: obtaining the status attribute of the material model, where the status attribute of the material model includes disabled and available; when the status attribute of the material model is disabled, locating the module that causes the status attribute of the material model to be disabled; determining whether the module is replaceable; if the module is replaceable, replacing the module to generate a material model.
[0019] In one embodiment, when the module is not replaceable, the method further includes: defining the node corresponding to the module as a reference node based on the module and the sub-structure where the module is located; traversing the sub-structure in reverse hierarchical order based on the reference node, and sequentially determining layer by layer whether the module corresponding to the parent node of the reference node is replaceable; when the module corresponding to the parent node is replaceable, replacing the module corresponding to the parent node to generate a material model.
[0020] In one embodiment, when the module is replaceable, the method further includes: obtaining the attribute information of the module, and determining whether there is a bridging attribute in the attribute information of the module; if so, obtaining the bridging module bridged by the module based on the bridging attribute of the module; determining whether the bridging module is replaceable; if the bridging module is replaceable, replacing the bridging module and the module to generate a material model; otherwise, prohibiting the replacement of the module.
[0021] In one embodiment, the method further includes: obtaining the replaced module; changing the status attribute of the replaced module to disabled.
[0022] On the other hand, a material management device is provided, and the device includes:
[0023] A material model generation unit for hierarchically dividing the modules in the material based on the parent-child relationship between the modules in the material to generate a material model;
[0024] A risk monitoring unit for real-time monitoring of the attribute information of the modules in the material model. If the attribute information of the module changes, obtaining the risk value of the material model according to a preset risk identification rule;
[0025] A status attribute update unit for comparing the risk value with a preset risk threshold, updating the status attribute of the material model based on the comparison result; and also for updating the status attribute of the material corresponding to the material model based on the status attribute of the material model.
[0026] On the other hand, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0027] Based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a material model;
[0028] Real-time monitor the attribute information of the modules within the material model. If the attribute information of the module changes, obtain the risk value of the material model according to the preset risk identification rules;
[0029] Compare the risk value with a preset risk threshold, and update the status attribute of the material model based on the comparison result; Based on the status attribute of the material model, update the status attribute of the material corresponding to the material model.
[0030] On another aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0031] Based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a material model;
[0032] Real-time monitor the attribute information of the modules within the material model. If the attribute information of the module changes, obtain the risk value of the material model according to the preset risk identification rules;
[0033] Compare the risk value with a preset risk threshold, and update the status attribute of the material model based on the comparison result;
[0034] Based on the status attribute of the material model, update the status attribute of the material corresponding to the material model.
[0035] The above material management method, device, and computer device. The method includes: Based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a material model; Real-time monitor the attribute information of the modules within the material model. If the attribute information of the module changes, obtain the risk value of the material model according to the preset risk identification rules; Compare the risk value with a preset risk threshold, and update the status attribute of the material model based on the comparison result; Based on the status attribute of the material model, update the status attribute of the material corresponding to the material model. Based on the above method, the timeliness of material risk detection is improved, the management of the material is realized, and resource consumption is avoided.
[0036] Among them, based on the parent-child relationship between the models within the material, the modules within the material are hierarchically divided to generate a material model, making the relationship between the modules within the material more intuitive and more conducive to maintaining the modules within the material;
[0037] The attribute information of the modules within the material model is monitored in real time. If the attribute information of the module changes, then according to the preset risk identification rules, the risk value of the material model is obtained, realizing the real-time monitoring of the attribute information of the modules within the material model; according to the preset risk identification rules, the risk value of the material model is obtained, standardizing the risk identification process of the material model and improving the accuracy of the obtained risk value of the material model;
[0038] Based on the comparison result, the status attribute of the material model is updated. When the risk value of the material model exceeds the preset risk threshold, the status attribute of the material model is promptly set to disabled to prevent economic losses caused by misusing the risky material model. Description of the Drawings
[0039] Figure 1 It is an application environment diagram of the material management method in an embodiment;
[0040] Figure 2 It is a schematic diagram of the verification result of the material model in an embodiment;
[0041] Figure 3 It is a schematic diagram of the verification result of the material model in an embodiment;
[0042] Figure 4 It is a flowchart of the material management method in an embodiment;
[0043] Figure 5 It is a schematic diagram of the material model in an embodiment;
[0044] Figure 6 It is a structural block diagram of the material model device in an embodiment;
[0045] Figure 7 It is an internal structure diagram of a computer device in an embodiment. Detailed Embodiments
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] The material management method provided by the present application can be applied to, for example Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. Technicians send a material management request to the server 104 through the terminal 102, and the server 104 executes a material management method in response to the material management request to achieve the management of the material. Among them, the terminal 102 can be but is not limited to various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0048] In one embodiment, a material management method is proposed. Taking an electronic board as an example, the method includes the following steps:
[0049] Name the electronic board according to a preset material naming rule; wherein, the naming rule is: "English abbreviation of the electronic board - part number of the electronic board".
[0050] Divide the electronic board into modules according to a preset module type; the preset module type includes but is not limited to appearance size, label, material, technical specification performance parameters, and characteristics. Define A as the appearance size module, B as the label module, C as the material module, D as the technical specification performance parameter module, and E as the characteristics module.
[0051] Based on the preset module subdivision rules, the module is subdivided; the preset module subdivision rules include, but are not limited to, subdividing the label module B into sub-modules B1, B2, B3, and B4, where the B1 sub-module is the QID sub-module, the B2 sub-module is the MAC sub-module, the B3 sub-module is the version label sub-module, and the B4 sub-module is the SAS label sub-module; the module D is subdivided into sub-modules D1, D2, D3... D6 according to different parameter types, where D1 is defined as the processor sub-module, D2 is defined as the chipset sub-module, D3 is defined as the interface and expansion slot sub-module, D4 is defined as the Jumper and DIP switch definition sub-module, D5 is defined as the FW module, and D6 is defined as the power control module. The preset module subdivision rules also include: lower-level module subdivision rules for dividing the sub-modules. Taking the sub-modules included in module D as an example, the lower-level module subdivision rules include, but are not limited to, subdividing the sub-module D2 into lower-level modules D21, D22, and D23, where the lower-level module D21 is defined as the BMC chip, the lower-level module D22 is defined as the BIOS chip, and the lower-level module D23 is defined as the X710 chip; the sub-module D3 can be subdivided into lower-level modules D31, D32, D33, and D34, and the lower-level module D31 is defined as the slot interface, the lower-level module D32 is defined as the audio-video interface, the lower-level module D33 is defined as the network cable interface, and the lower-level module D34 is defined as the SATA interface; the sub-module D5 can be subdivided into lower-level modules D51, D52, D53, and D54, and the lower-level module D51 is defined as the BIOS FW, the lower-level module D52 is defined as the BMC FW, the lower-level module D53 is defined as the CPLD, and the lower-level module D54 is defined as the VR Code. It should be understood that those skilled in the art can determine whether it is necessary to further subdivide the module into sub-modules and whether it is necessary to further subdivide the sub-modules into lower-level modules in combination with the actual application scenario; and determine which modules need to be further subdivided into sub-modules and which sub-modules need to be further subdivided into lower-level modules. Similarly, those skilled in the art can also determine based on the actual application scenario whether it is necessary to further subdivide the lower-level modules into lower-level module sub-modules and which lower-level modules need to be further subdivided into lower-level module sub-modules.
[0052] Assign a risk level and a risk coefficient to each module in the material. The risk levels include, from low to high: P1, P2, P3... P10, and the risk coefficients include, from low to high: 0.1, 0.2, 0.3... 1.
[0053] When a module within the material changes, the risk level and risk coefficient corresponding to the module before the change are correspondingly changed to the risk level and risk coefficient of the module after the change, generating a new material. It should be understood that the new material described in this application means that when any module within the material and its corresponding information change, it indicates that a new material has been generated.
[0054] According to a preset material risk calculation method, calculate the risk value of the new material; the preset material risk calculation method includes: obtaining the changed module, sequentially indexing the superior modules of the module until the topmost module is indexed; obtaining the risk levels and risk coefficients of all modules indexed based on the module; starting from the topmost module, sequentially calculate the risk value of each level of module until the risk value of the changed module is calculated; obtain the sum of the risk values of each level of module. The sum of the risk values of each level of module is the risk value of the new material.
[0055] Specifically, based on the topmost module, obtain the risk coefficients of the modules subordinate to the topmost module until the module to be changed is located, and obtain the risk level of the module to be changed. Based on the following formula, obtain the risk value of the material model:
[0056]
[0057]
[0058] Where N is the risk value of the material model; A is the risk value corresponding to all modules between the topmost module and the module to be newly changed; P is the risk level value of the topmost module; L is the risk coefficient of the module subordinate to the topmost module; i is the number of topmost modules; m is the maximum value of the number of topmost modules; j is the number of modules between the topmost module and the module; n is the number of modules between the topmost module and the module to be changed.
[0059] Specifically, taking the hard disk disabling as an example to elaborate on obtaining the risk value of the material model. In an actual application scenario, for example, the hard disk has a disconnection quality problem at the client side. Through analysis by R & D technicians, it is found that there are problems with FW and power control. Therefore, corresponding changes need to be made to FW and power control. After the change, through the above material model risk value calculation method, obtain the risk value of the material model; among them, the FW is the topmost module, with a corresponding risk value of 10 and a corresponding risk coefficient of 0.7; the power control is the next-level module of the topmost module M, the corresponding risk coefficient of the topmost module M is 0.8, the corresponding risk value of the power control is 7, and the corresponding risk coefficient is 0.6. Then calculate A1 = 10 * 0.7 = 7; calculate A2 = 1 * 0.08 * 7 * 0.6 = 3.36; calculate N = 10.36.
[0060] Based on a preset risk threshold, determine whether the risk value of the new material meets the requirements. If the risk value of the new material meets the requirements, then generate a new material based on the change of the corresponding module in the material; otherwise, do not change the corresponding module in the material and disable the material. Among them, the preset risk threshold is 10. When the calculated risk value of the new material is not less than 10, the corresponding module in the material is not changed and the material is disabled; when the calculated risk value of the new material is less than 10, the corresponding module in the material is changed to generate a new material for production use.
[0061] Taking the above-mentioned change of FW and power control as an example, the calculated risk value of the changed hard disk is 10.36, which is greater than the preset risk threshold, so the FW and power control are not changed and the hard disk is disabled.
[0062] Before changing the module in the material, it is also necessary to determine whether the currently to-be-changed module has an associated relationship with other modules in the material. If so, the modules associated with it are changed synchronously.
[0063] In one embodiment, when it is detected that the status attribute of the material model is disabled, locate the module that causes the status attribute of the material model to be disabled, and determine whether the module is replaceable. If the module is replaceable and no bridging module is bridged to the module, directly replace the module; if the module is not replaceable, based on the module, traverse the upper-level modules of the module in turn until the top-level module.
[0064] In some special business scenarios, it is necessary to process the purchase order for the old PN to meet the business requirements. After the disabling is completed, normal ordering is not possible. Based on this business scenario, the material management method described in this application further includes temporarily lifting the material disabling to complete the processing of the purchase order. It should be understood that in actual application scenarios, to prevent conflicts with normal business, when temporarily lifting the material disabling, the time period with a high normal usage traffic value should be avoided, and a special time period should be opened to establish a storage medium for temporarily lifting the disabling of the disabled material.
[0065] The material verification of the prior art is carried out according to the traditional specification, with low efficiency and large errors. To overcome the drawbacks of large material inspection errors, easy occurrence of misinspection and missed inspection in the prior art, the material management method described in this application further includes: generating a material model resource library, the material model resource library including at least one material model; matching the to-be-detected material model with the material models in the material model resource library; verifying whether the to-be-detected module meets the requirements based on the material models in the material model resource library. Such as Figure 2 andFigure 3 As shown, it is a schematic diagram of the material model verification. When the verification values of each module, sub-module, lower-level module... in the material model to be detected are all "TRUE", the inspection result is PASS; when one or more of the verification values of the modules, sub-modules, lower-level modules... in the material model to be detected are "FALSE", the inspection result is Fail. Based on the above method, the material verification efficiency can be greatly improved, and abnormal situations such as missed inspection and mis-inspection can be avoided.
[0066] In one embodiment, as Figure 4 shown, a material management method is provided. Taking the server in Figure 1 as an example, the method includes the following steps:
[0067] Based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a material model;
[0068] Real-time monitor the attribute information of the modules within the material model. If the attribute information of the module changes, obtain the risk value of the material model according to the preset risk identification rules;
[0069] Compare the risk value with the preset risk threshold, and update the status attribute of the material model based on the comparison result;
[0070] Based on the status attribute of the material model, update the status attribute of the material corresponding to the material model.
[0071] Specifically, as Figure 5 shown, taking the electronic board X as an example, based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a schematic diagram of the material model.
[0072] In one of the embodiments, based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a material model, including: in response to a material model generation request, generate a binary tree root node based on the modules within the material, and the material model generation request includes root node category information; generate a sub-structure of the binary tree based on the parent-child relationship between the modules within the material, and the sub-structure includes at least one node; assign a risk level and a risk coefficient to each node in the binary tree, and each node in the binary tree corresponds to a module; hierarchically traverse the binary tree, hierarchically divide the binary tree, and generate the material model.
[0073] In the above material management method, the management of materials is realized by real-time monitoring of the attribute information of the modules in the materials, and the timeliness of material management is improved; moreover, when the attribute information of the modules in the materials changes, that is, when the modules in the materials change, according to the preset risk identification rules, the risk value of the material model is calculated in real time to ensure the availability of the materials corresponding to the material model and prevent the occurrence of economic losses caused by using risky materials.
[0074] In one embodiment, the preset risk identification rules include: defining the modules whose attribute information changes in the material model as the first modules, and the number of the first modules is at least one; based on the first modules and the binary tree, defining the nodes corresponding to the first modules as the reference nodes; based on the reference nodes, traversing the sub-structure where the reference nodes are located in reverse hierarchical order until the root node; obtaining all the nodes passed from the root node to the reference nodes, and the number of the nodes is at least one; obtaining the product of the risk coefficient of each node and the risk level of the child node to obtain the first risk value.
[0075] In one embodiment, obtaining the risk value of the material model according to the preset risk identification rules includes: when the number of the first modules is one, the first risk value is the risk value of the material model; when the number of the first modules is not one, the sum of the first risk values corresponding to each first module is the risk value of the material model.
[0076] In one embodiment, based on the following formula, the risk value of the material model is obtained:
[0077]
[0078]
[0079] Wherein, N is the risk value of the material model; A is the risk value of the sub-structure where the node corresponding to the first module is located; P is the risk level value of the module corresponding to the root node of the sub-structure; L is the risk coefficient of the module corresponding to the child node of the sub-structure; i is the number of sub-structures; m is the maximum value of the number of sub-structures; j is the number of layers of the sub-structure; n is the maximum value of the number of layers of the sub-structure.
[0080] In one embodiment, after updating the status attribute of the material model based on the comparison result, the method further includes: obtaining the status attribute of the material model, and the status attribute of the material model includes disabled and available; when the status attribute of the material model is disabled, locating the module that causes the status attribute of the material model to be disabled; judging whether the module is replaceable; if the module is replaceable, then replacing the module to generate a material model.
[0081] In one embodiment, when the module is not replaceable, the method further includes: defining a node corresponding to the module as a reference node based on the module and the sub-structure where the module is located; traversing the sub-structure in reverse hierarchical order based on the reference node, and sequentially determining whether the module corresponding to the parent node of the reference node is replaceable layer by layer; when the module corresponding to the parent node is replaceable, replacing the module corresponding to the parent node to generate a material model.
[0082] In one embodiment, when the module is replaceable, the method further includes: obtaining attribute information of the module, and determining whether there is a bridging attribute in the attribute information of the module; if so, obtaining a bridging module bridged by the module based on the bridging attribute of the module; determining whether the bridging module is replaceable; if the bridging module is replaceable, replacing the bridging module and the module to generate a material model; otherwise, prohibiting the replacement of the module.
[0083] Specifically, as Figure 2 shown, there is a bridging relationship between the lower-level module D21 and the lower-level module D52. Therefore, when replacing any one of the lower-level module D21 or the lower-level module D52, an adaptive change needs to be made to the other module.
[0084] In one embodiment, the method further includes: obtaining the replaced module; changing the status attribute of the replaced module to disabled.
[0085] It should be understood that although Figure 4 the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figure 4 at least a part of the steps in
[0086] In one embodiment, as Figure 6 shown, a material management device is provided, including: a material model generation unit, a risk monitoring unit, and a status attribute update unit, where:
[0087] The material model generation unit is used to hierarchically divide the modules in the material based on the parent-child relationship between the modules in the material to generate a material model;
[0088] A risk monitoring unit for real-time monitoring of the attribute information of the modules within the material model. If the attribute information of a module changes, the risk value of the material model is obtained according to a preset risk identification rule.
[0089] A status attribute update unit for comparing the risk value with a preset risk threshold and updating the status attribute of the material model based on the comparison result. It is also used to update the status attribute of the material corresponding to the material model based on the status attribute of the material model.
[0090] In one embodiment, the material model generation module is further configured to respond to a material model generation request, generate a binary tree root node based on the modules within the material, where the material model generation request includes root node category information; generate a sub-structure of the binary tree based on the parent-child relationship between the modules within the material, and the sub-structure includes at least one node; assign a risk level and a risk coefficient to each node in the binary tree, and each node in the binary tree corresponds to a module; traverse the binary tree hierarchically, perform hierarchical division on the binary tree, and generate the material model.
[0091] In one embodiment, the risk monitoring unit is further configured to define the module whose attribute information changes within the material model as a first module, and the first module is at least one; based on the first module and the binary tree, define the node corresponding to the first module as a reference node; based on the reference node, perform a reverse hierarchical traversal of the sub-structure where the reference node is located until the root node; obtain all the nodes passed from the root node to the reference node, and the nodes are at least one; obtain the product of the risk coefficient of each node and the risk level of the child node, and obtain a first risk value; where when the first module is one, the first risk value is the risk value of the material model; when the first module is not one, the sum of the first risk values corresponding to each first module is the risk value of the material model.
[0092] In one embodiment, the risk monitoring unit is further configured to obtain the risk value of the material model based on the following formula:
[0093]
[0094]
[0095] Where N is the risk value of the material model; A is the risk value of the sub-structure where the node corresponding to the first module is located; P is the risk level value of the module corresponding to the root node of the sub-structure; L is the risk coefficient of the module corresponding to the child node of the sub-structure; i is the number of sub-structures; m is the maximum value of the number of sub-structures; j is the number of sub-structure layers; n is the maximum value of the number of sub-structure layers.
[0096] In one embodiment, the device further includes a module replacement unit, and the status attribute update unit is further configured to obtain the status attribute of the material model, where the status attribute of the material model includes disabled and available; when the status attribute of the material model is disabled, locate the module that causes the status attribute of the material model to be disabled; determine whether the module is replaceable; if the module is replaceable, the module replacement unit replaces the module to generate a material model.
[0097] In one embodiment, the module replacement unit is further configured to define the node corresponding to the module as a reference node based on the module and the sub-structure where the module is located; based on the reference node, perform a reverse hierarchical traversal of the sub-structure, and sequentially determine layer by layer whether the module corresponding to the parent node of the reference node is replaceable; when the module corresponding to the parent node is replaceable, replace the module corresponding to the parent node to generate a material model.
[0098] In one embodiment, the module replacement unit is further configured to obtain the attribute information of the module, and determine whether there is a bridging attribute in the attribute information of the module; if so, based on the bridging attribute of the module, obtain the bridging module bridged by the module; determine whether the bridging module is replaceable; if the bridging module is replaceable, replace the bridging module and the module to generate a material model; otherwise, prohibit replacing the module.
[0099] In one embodiment, the status attribute update unit is further configured to obtain the replaced module; change the status attribute of the replaced module to disabled.
[0100] For the specific limitations of the material management device, reference can be made to the limitations on the material management method in the foregoing text, which will not be elaborated here. Each module in the above material management device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above respective modules.
[0101] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as Figure 7As shown in the figure. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a material management method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.
[0102] Those skilled in the art can understand that Figure 7 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0103] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0104] Based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a material model;
[0105] Real-time monitor the attribute information of the modules within the material model. If the attribute information of the module changes, then according to the preset risk identification rule, obtain the risk value of the material model;
[0106] Compare the risk value with a preset risk threshold, and update the status attribute of the material model based on the comparison result;
[0107] Based on the status attribute of the material model, update the status attribute of the material corresponding to the material model.
[0108] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0109] In response to a material model generation request, a binary tree root node is generated based on the modules within the material, and the material model generation request includes root node category information; a sub-structure of the binary tree is generated based on the parent-child relationship between the modules within the material, and the sub-structure includes at least one node; a risk level and a risk coefficient are assigned to each node in the binary tree, and each node in the binary tree corresponds to a module; the binary tree is traversed hierarchically, and the binary tree is hierarchically divided to generate the material model.
[0110] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0111] Define the modules in which the attribute information in the material model changes as the first modules, and the number of the first modules is at least one; based on the first modules and the binary tree, define the nodes corresponding to the first modules as reference nodes; based on the reference nodes, perform a reverse hierarchical traversal of the sub-structure where the reference nodes are located until the root node; obtain all the nodes passed from the root node to the reference nodes, and the number of the nodes is at least one; obtain the product of the risk coefficient of each node and the risk level of the child node to obtain a first risk value.
[0112] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0113] When the number of the first modules is one, the first risk value is the risk value of the material model; when the number of the first modules is not one, the sum of the first risk values corresponding to each first module is the risk value of the material model.
[0114] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0115] Based on the following formula, obtain the risk value of the material model:
[0116]
[0117]
[0118] Wherein, N is the risk value of the material model; A is the risk value of the sub-structure where the node corresponding to the first module is located; P is the risk level value of the module corresponding to the root node of the sub-structure; L is the risk coefficient of the module corresponding to the child node of the sub-structure; i is the number of sub-structures; m is the maximum value of the number of sub-structures; j is the number of layers of the sub-structure; n is the maximum value of the number of layers of the sub-structure.
[0119] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0120] Obtain the status attribute of the material model, where the status attribute of the material model includes disabled and available; when the status attribute of the material model is disabled, locate the module that causes the status attribute of the material model to be disabled; determine whether the module is replaceable; if the module is replaceable, replace the module to generate a material model.
[0121] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0122] Based on the module and the sub-structure where the module is located, define the node corresponding to the module as the reference node; based on the reference node, perform a reverse hierarchical traversal of the sub-structure, and sequentially judge whether the module corresponding to the parent node of the reference node is replaceable layer by layer; when the module corresponding to the parent node is replaceable, replace the module corresponding to the parent node to generate a material model.
[0123] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0124] Obtain the attribute information of the module, and judge whether there is a bridging attribute in the attribute information of the module; if so, based on the bridging attribute of the module, obtain the bridging module bridged by the module; judge whether the bridging module is replaceable; if the bridging module is replaceable, replace the bridging module and the module to generate a material model; otherwise, prohibit replacing the module.
[0125] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0126] Obtain the replaced module; change the status attribute of the replaced module to disabled.
[0127] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0128] Based on the parent-child relationship between the modules within the material, hierarchically divide the modules within the material to generate a material model;
[0129] Real-time monitor the attribute information of the modules within the material model. If the attribute information of the module changes, obtain the risk value of the material model according to the preset risk identification rule;
[0130] Compare the risk value with the preset risk threshold, and update the status attribute of the material model based on the comparison result;
[0131] Based on the status attribute of the material model, update the status attribute of the material corresponding to the material model.
[0132] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0133] In response to a material model generation request, based on the modules within the material, generate the root node of a binary tree, where the material model generation request includes root node category information; based on the parent-child relationships between the modules within the material, generate the sub-structure of the binary tree, where the sub-structure includes at least one node; assign a risk level and a risk coefficient to each node in the binary tree, where each node in the binary tree corresponds to a module; traverse the binary tree hierarchically, perform hierarchical partitioning on the binary tree, and generate the material model.
[0134] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0135] Define the modules in the material model whose attribute information has changed as the first modules, where the number of the first modules is at least one; based on the first modules and the binary tree, define the nodes corresponding to the first modules as reference nodes; based on the reference nodes, perform a reverse hierarchical traversal of the sub-structure where the reference nodes are located until the root node; obtain all the nodes on the path from the root node to the reference nodes, where the number of the nodes is at least one; obtain the product of the risk coefficient of each of the nodes and the risk level of the child nodes, and obtain a first risk value.
[0136] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0137] When there is only one first module, then the first risk value is the risk value of the material model; when the number of the first modules is not one, then the sum of the first risk values corresponding to each of the first modules is the risk value of the material model.
[0138] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0139] Based on the following formula, obtain the risk value of the material model:
[0140]
[0141]
[0142] Where N is the risk value of the material model; A is the risk value of the sub-structure where the node corresponding to the first module is located; P is the risk level value of the module corresponding to the root node of the sub-structure; L is the risk coefficient of the module corresponding to the child node of the sub-structure; i is the number of sub-structures; m is the maximum value of the number of sub-structures; j is the number of layers of the sub-structure; n is the maximum value of the number of layers of the sub-structure.
[0143] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0144] Obtain the status attribute of the material model, where the status attribute of the material model includes disabled and available; when the status attribute of the material model is disabled, locate the module that causes the status attribute of the material model to be disabled; determine whether the module is replaceable; if the module is replaceable, replace the module to generate a material model.
[0145] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0146] Define the node corresponding to the module as a reference node based on the module and the sub-structure where the module is located; based on the reference node, perform a reverse hierarchical traversal of the sub-structure, and sequentially determine layer by layer whether the module corresponding to the parent node of the reference node is replaceable; when the module corresponding to the parent node is replaceable, replace the module corresponding to the parent node to generate a material model.
[0147] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0148] Obtain the attribute information of the module, and determine whether there is a bridging attribute in the attribute information of the module; if so, obtain the bridging module bridged by the module based on the bridging attribute of the module; determine whether the bridging module is replaceable; if the bridging module is replaceable, replace the bridging module and the module to generate a material model; otherwise, prohibit replacing the module.
[0149] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0150] Obtain the replaced module; change the status attribute of the replaced module to disabled.
[0151] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0152] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0153] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A material management method, characterized in that, The method includes: Based on the parent-child relationship between modules within the material, hierarchically divide the modules within the material to generate a material model; Monitor in real time the attribute information of the modules within the material model. If the attribute information of a module changes, obtain the risk value of the material model according to a preset risk identification rule; Compare the risk value with a preset risk threshold, and update the status attribute of the material model based on the comparison result; Based on the status attribute of the material model, update the status attribute of the material corresponding to the material model; wherein, based on the parent-child relationship between modules within the material, hierarchically divide the modules within the material to generate a material model, including: In response to a material model generation request, generate a binary tree root node based on the modules within the material, and the material model generation request includes root node category information; Based on the parent-child relationship between modules within the material, generate the sub-structure of the binary tree, and the sub-structure contains at least one node; Assign a risk level and a risk coefficient to each node in the binary tree, and each node in the binary tree corresponds to a module; Hierarchically traverse the binary tree, hierarchically divide the binary tree, and generate the material model; The preset risk identification rule includes: Define the module whose attribute information changes within the material model as the first module, and the first module is at least one; Based on the first module and the binary tree, define the node corresponding to the first module as the reference node; based on the reference node, hierarchically traverse the sub-structure where the reference node is located in reverse order until the root node; Obtain all the nodes passed from the root node to the reference node, and the nodes are at least one; Obtain the product of the risk coefficient of each node and the risk level of the child node, and obtain the first risk value.
2. The material management method according to claim 1, wherein According to the preset risk identification rule, obtaining the risk value of the material model includes: When the first module is one, the first risk value is the risk value of the material model; When the first module is not one, the sum of the first risk values corresponding to each first module is the risk value of the material model.
3. The material management method according to claim 2, wherein Based on the following formula, obtain the risk value of the material model: Wherein, N is the risk value of the material model; A is the risk value of the sub-structure where the node corresponding to the first module is located; P is the risk level value of the module corresponding to the root node of the sub-structure; L is the risk coefficient of the module corresponding to the child node of the sub-structure; i is the number of sub-structures; m is the maximum value of the number of sub-structures; j is the number of sub-structure layers; n is the maximum value of the number of sub-structure layers.
4. The material management method according to any one of claims 1 to 3, characterized in that, After updating the status attribute of the material model based on the comparison result, the method further includes: Obtain the status attribute of the material model, and the status attribute of the material model includes disabled and available; when the status attribute of the material model is disabled, locate the module that causes the status attribute of the material model to be disabled; Determine whether the module is replaceable; If the module is replaceable, replace the module to generate a material model.
5. The material management method according to claim 4, characterized in that, If the module is not replaceable, the method further includes: Define the node corresponding to the module as the reference node based on the module and the sub-structure where the module is located; Based on the reference node, traverse the sub-structure in reverse hierarchical order, and sequentially judge whether the module corresponding to the parent node of the reference node is replaceable layer by layer; When the module corresponding to the parent node is replaceable, replace the module corresponding to the parent node to generate a material model.
6. The material management method according to claim 5, characterized in that, When the module is replaceable, the method further includes: Obtain the attribute information of the module, and judge whether there is a bridging attribute in the attribute information of the module; if so, based on the bridging attribute of the module, obtain the bridging module bridged by the module; Judge whether the bridging module is replaceable; If the bridging module is replaceable, replace the bridging module and the module to generate a material model; otherwise, prohibit replacing the module.
7. The material management method according to claim 6, characterized in that, The method further includes: Obtain the replaced module; Change the status attribute of the replaced module to disabled.
8. A material management device for implementing the material management method described in claim 1, characterized in that, The device includes: A material model generation unit for hierarchically dividing the modules in the material based on the parent-child relationship between the modules in the material to generate a material model; A risk monitoring unit for real-time monitoring of the attribute information of the modules in the material model. If the attribute information of the module changes, obtain the risk value of the material model according to the preset risk identification rules; A status attribute update unit for comparing the risk value with a preset risk threshold, updating the status attribute of the material model based on the comparison result; and also for updating the status attribute of the material corresponding to the material model based on the status attribute of the material model.
Citation Information
Patent Citations
Product technical state supervision system
CN105590149A
BIM-based building material processing and distribution management method and device
CN108428194A