CN115686474A - Classification attribute inheritance implementation method based on Java - Google Patents

Classification attribute inheritance implementation method based on Java Download PDF

Info

Publication number
CN115686474A
CN115686474A CN202211415931.9A CN202211415931A CN115686474A CN 115686474 A CN115686474 A CN 115686474A CN 202211415931 A CN202211415931 A CN 202211415931A CN 115686474 A CN115686474 A CN 115686474A
Authority
CN
China
Prior art keywords
classification
attribute
classification attribute
java
inheritance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211415931.9A
Other languages
Chinese (zh)
Inventor
杨松贵
王子禾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Witsoft Technology Co Ltd
Original Assignee
Nanjing Witsoft 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 Nanjing Witsoft Technology Co Ltd filed Critical Nanjing Witsoft Technology Co Ltd
Priority to CN202211415931.9A priority Critical patent/CN115686474A/en
Publication of CN115686474A publication Critical patent/CN115686474A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a Java-based classification attribute inheritance realization method, which comprises the following steps of S1: newly building part classification; s2: obtaining the classification attribute of the part classification in the step S1; s3: judging the condition selection in the step S2; s4: adding a classification attribute of the current classification; the Java-based classification attribute inheritance implementation method not only ensures the consistency of the attributes of the parts with parent-child classification relations, but also reduces the configuration time of the classification attributes in data configuration.

Description

Classification attribute inheritance implementation method based on Java
Technical Field
The invention relates to the field of industrial component design, in particular to a classification attribute inheritance implementation method based on Java.
Background
When a designer uses industrial software to design a product, a large number of parts are used, the parts are generally classified according to categories, and when the parameters are set according to the classification of the parts, the parameters are not convenient to remember due to more parameters; meanwhile, the parameters of the parts need to be configured every time the parts are used, so that great inconvenience is brought to a user.
Disclosure of Invention
The invention aims to solve the defects in the prior art and provides a classification attribute inheritance implementation method based on Java.
In order to achieve the purpose, the invention adopts the following technical scheme: a classification attribute inheritance implementation method based on Java comprises the following steps:
s1: newly building part classification;
in the design process, the parts are classified in a multi-stage mode in a using mode;
s2: obtaining the classification attribute of the part classification in the step S1;
the classification attributes comprise the common parameters of length, width, height and diameter of the parts; meanwhile, carrying out condition selection on the classification attributes;
s3: judging the condition selection in the step S2;
judging according to the condition selection in the step S2; the condition selection comprises whether the classification attribute is inherited or not;
s4: adding a classification attribute of the current classification;
when the upper-level classified part classification attribute is selected not to be inherited in step S3, the newly added lower-level classified part classification attribute is not brought out.
Preferably, the inheritance of the classification property in step S3 further includes a constraint of the classification property.
Compared with the prior art, the invention has the beneficial effects that: the Java-based classification attribute inheritance implementation method not only ensures the consistency of the attributes of the parts with parent-child classification relations, but also reduces the configuration time of the classification attributes in data configuration.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
In order to further understand the objects, structures, features, and functions of the present invention, the following embodiments are described in detail.
Referring to fig. 1, the present invention provides a Java-based classification attribute inheritance implementation method, which includes the following steps:
s1: newly building part classification;
in the design process, the parts are classified in a first-level mode, such as a crane classification, including a rotary table seat body, a seat body special part, a winch box and the like; secondly, performing secondary classification on the basis, wherein the hoisting boxes can be classified into a single hoisting box and a double hoisting box; meanwhile, in the reclassification process, parameters of parts in each classification can be labeled;
s2: obtaining classification attributes of the part classification in the step S1;
the classification attributes comprise common parameters of length, width, height, diameter and the like of the parts; meanwhile, the classification attribute is restrained; the constraint comprises whether the classification attribute is inherited;
s3: judging the constraint conditions in the step S2;
judging according to the constraint of the step S2;
when the classification attribute of the first-level classification part is inherited, the classification attribute of the first-level classification part can be automatically inherited by a second-level classification part under the part, and the classification attribute of the second-level classification part is consistent with the classification attribute of the first-level classification part;
when the classification attribute of the first-level classification part is not inherited, the classification attribute of the first-level classification part is not inherited by a second-level classification part under the part, and the classification attribute of the second-level classification part is inconsistent with the classification attribute of the first-level classification part;
s4: adding classification attributes and constraints of the current classification;
when the first-level classified part classification attribute is selected not to be inherited in the step S3, the newly added second-level classified part and the classification attribute are not brought out.
Preferably, the inheritance of the classification property in step S3 further includes a constraint of the classification property.
The constraints of the lower level are in an adjustable state in the constraints of the upper level by classifying the constraints of the attributes.
The upper level constraint provides an implementable ideal range value for the lower level classification attribute in the implementation process, and the lower level classification attribute can be adjusted by itself in the design process to reach the optimal value within the implementable ideal range value.
The present invention has been described in relation to the above embodiments, which are only examples of the implementation of the present invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. Rather, it is intended that all such modifications and variations be included within the spirit and scope of this invention.

Claims (2)

1. A Java-based classification attribute inheritance realization method is characterized in that: the method comprises the following steps:
s1: newly building part classification;
in the design process, the parts are classified in a multi-stage mode in a using mode;
s2: obtaining the classification attribute of the part classification in the step S1;
the classification attributes comprise the common parameters of length, width, height and diameter of the parts; meanwhile, carrying out condition selection on the classification attributes;
s3: judging the condition selection in the step S2;
judging according to the condition selection in the step S2; the condition selection comprises whether the classification attribute is inherited or not;
s4: adding a classification attribute of the current classification;
when the first-level classified part classification attribute is selected not to be inherited in the step S3, the newly added second-level classified part and the classification attribute are not brought out.
2. The Java-based classification attribute inheritance realization method of claim 1, wherein: the inheritance of the classification property in the step S3 further includes a constraint of the classification property.
CN202211415931.9A 2022-11-11 2022-11-11 Classification attribute inheritance implementation method based on Java Pending CN115686474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211415931.9A CN115686474A (en) 2022-11-11 2022-11-11 Classification attribute inheritance implementation method based on Java

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211415931.9A CN115686474A (en) 2022-11-11 2022-11-11 Classification attribute inheritance implementation method based on Java

Publications (1)

Publication Number Publication Date
CN115686474A true CN115686474A (en) 2023-02-03

Family

ID=85051698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211415931.9A Pending CN115686474A (en) 2022-11-11 2022-11-11 Classification attribute inheritance implementation method based on Java

Country Status (1)

Country Link
CN (1) CN115686474A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170103434A1 (en) * 2015-10-08 2017-04-13 Paypal, Inc. Automatic taxonomy alignment
CN111984633A (en) * 2020-09-10 2020-11-24 云智汇(武汉)科技服务有限公司 Method for expanding CMDB configuration classification as required and automatically establishing relationship
CN114971547A (en) * 2022-05-24 2022-08-30 中车青岛四方机车车辆股份有限公司 Component product level borrowing analysis method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170103434A1 (en) * 2015-10-08 2017-04-13 Paypal, Inc. Automatic taxonomy alignment
CN111984633A (en) * 2020-09-10 2020-11-24 云智汇(武汉)科技服务有限公司 Method for expanding CMDB configuration classification as required and automatically establishing relationship
CN114971547A (en) * 2022-05-24 2022-08-30 中车青岛四方机车车辆股份有限公司 Component product level borrowing analysis method and system

Similar Documents

Publication Publication Date Title
CN104035754A (en) XML (Extensible Markup Language)-based custom code generation method and generator
CN109245167B (en) Control method for improving grid-connected current quality of LCL type grid-connected inverter under weak grid
CN115686474A (en) Classification attribute inheritance implementation method based on Java
CN106911691A (en) IEC61850 and OPC_UA configurable data mapping method
CN113409555A (en) Real-time alarm linkage method and system based on Internet of things
CN110874717B (en) Data management method
CN110955736B (en) Management model modeling method of basic data
CN103164230A (en) Requirement modeling method based on new characteristic model and model transformation method
CN115906379A (en) Electromagnetic transient automatic modeling method and system for large-scale power grid new energy unit
CN107844639B (en) Project standard structure automatic generation method and system
Gao et al. The research of applying domain ontology to case-based reasoning system
CN110502476B (en) Part retrieval and renaming method based on CAD system
CN114336736A (en) Energy storage inverter grid-connected system stability improvement method based on current mode control
WO2020078110A1 (en) Method and apparatus for generating electrical diagram, and electronic device
CN115146417B (en) Method for converting different three-dimensional software model data into universal model data
CN116052389A (en) Low-voltage capacitor cabinet fault alarm method, system and device
CN114861939B (en) AHP model self-learning-based energy consumption analysis method and device
CN114004045B (en) Y-type pipe node stress concentration coefficient calculation method, device and storable medium
CN116230149B (en) Medical variable data processing method and device, electronic equipment and storage medium
CN109840243A (en) A kind of digitlization O&M support process data conversion method based on multistage rule
CN110765218B (en) Relational database persistence configuration method for composite attribute data in CIM (common information model) class
CN113760913B (en) Elasticity-extensible equipment cost acquisition method
CN113852119B (en) Method and device for per unit value conversion of modeling of new energy grid-connected control system
CN209388982U (en) A kind of breaker conductor
CN106054837A (en) Method for realizing interoperability between IEC61850 standard data and DCS real-time database

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20230203

RJ01 Rejection of invention patent application after publication