Research on Modeling of the RoHS Compliance System on UML

With the application of the ROHS standard in the products management, the Product Overall Lifecycle Management has been increasingly complex. Based on the UML2.0 modeling technology, this paper discussed the ROHS conformity system modeling process by the modeling tool VP-UML. According to the information model, the core data about Product Life Cycle can be converted to the XMI document, and be used to get the optimization of the model.


Introduction
The goal of EU Green environmental protection instruction RoHS (Restriction of Hazardous Substances) is to eliminate six toxic substances in electronic and electrical products. Lack of basic theory and methods in RoHS conformity information management and product design in China results in that some enterprises can't deal with RoHS directive Implementing intra-organizational RoHS compliance management system, which needs a feasible enterprise management system and integrate it into the PLM system, is a kind of feasible solutions. This paper adopts the mainstream visual modeling language-UML in order to ensure the structure of the system design good and the management system development quickly and efficiently. UML can play a considerable role in the software development with its good inheritance of the development process, life stage and implementation technology. This paper displays how to use UML2.0 for object-oriented analysis and modeling from the ROHS conformity model development process, with emphasis on Model building management process.

System modeling with UML
UML (Unified Modeling Language) is a kind of object technology support visual modeling language. Static modeling mechanism of UML includes use case diagram, class and object diagram, package diagram, construction diagram and layout diagram. Kinematic model of UML includes state diagram, sequence diagram, cooperation diagram and activity diagram [1].

Use case diagram
Use case diagram is used to describe system requirements which have user and case as two core elements from the user's point of view. User is the system-use and system-interactive object outside of the system [2]. Case is a group of description about action sequence including variable, the system implementing these actions, and generate observed results which transfer the value of specific participants.
As indicated in Fig. 1, the user (actor) is raw materials suppliers, components suppliers and Products business. Three main users complete the related operation of whole system. First, raw material suppliers need to provide the material declaration of conformity, generate material database and modify materials database. And the components business in the middle position needs to complete information interaction and provide product information management model. As the top, products business is mainly responsible for the product information optimization calculation and feed back the information to the downstream. In the final, optimal results and BOM have a integration and generating conformity BOM information.

Activity diagram
As shown in Fig .2 shows, this activity diagram use three lane to describe the role of business scope, the name of each lane on behalf of the business role, elliptic representative business activity, rectangular representative business entity. The specific business activity is: Material supplier will provide the materials to detection mechanism with professional appraisal qualification. If the test content to comply with relevant standards, a written proof can be deposited in the product database, in order to reference. Then components suppliers will integrate harmful material testing data into product material database, and uploaded to the product business PLM system. Product business then make BOM and material database combination, generate conformity BOM, and finally put it into the corresponding XMI file for later use optimized.

Class diagram
Description and management of the object are conducted with a mechanism of Class. First of all, search object from the problem domain determined by requirements, abstract into class and build relationships .And then analysis the interaction between objects around the cases and reconstruct the relationship among the objects [3]. Class diagram shows the static relationship between class (object), mainly including relevance, polymerization, generalization (inherit), etc. Fig. 2 The activity diagram of ROHS compliance system Fig. 1 The use case diagram of ROHS compliance system

Industrial Instrumentation and Control Systems II
In Fig. 3, the Class diagram contains mutual static relationship between several different types of class. The whole class diagram mainly display the information interaction process between Request party (Request) and Response party (Response).The whole process will follow the information standard from IPC -1751.

XML of UML model
In the UML modeling software, it offers a variety of operating mode with interoperability. The following is a meta-model class definition of "Substance": <ClassName="Substace"UserIDLastNumericValue="0"Root="false"QualityScore="92"QualityRe ason="1122"PmLastModified="2012-07-05T11:05:56.012"PmCreateDateTime="2012-05-09T21: 55:38.949"PmAuthor="Administrator"Leaf="false"Id="otxHjOyB0xiUSgmU"Documentation_plai n=""BusinessModel="false"Abstract="false"Visibility="public"ConnectToCodeModel="1"Busines sKeyMutable="true" Active="false"> In the above class diagram XMI document description, the source document is a direct modeling software conversion, so the text includes not only the direct description of class, but also the description of related class diagram. In data processing, this paper adopted the XML data file which is relatively simple for data processing. A system may contain many different models [4]. Each meta-model class is expressed by XML element: element name corresponding class name, elements definition listing the class attribute, the references of association end related to class and inner classes. The order of the attributes and the relationship does not make the request. The XML document content is only a XML grammatical form description for class diagram which have limited help data concise effectiveness required for this article, so we need a reconversion to achieve this effect. Below is a XML file derived from content which can be found miscellaneous and low operable.

XSLT transformation on XMI document
XSLT (eXtensible Stylesheet Language Transformation) is a part of W3C developing standard XSL (eXtensible Stylesheet Language), which is responsible for the conversion of the XML document. XSLT defines the conversion rules of the source tree and results tree corresponding part, namely template rule, which with the tag < XSL: template >, can indicate that treatment of objects (element/attribute), the means of processing or conversion results. Rules will be instantiated, when meet document element of the root node in XSLT processor. From the DOM tree as shown in Fig. 4 , the data are included in a

Conclusions
In the production of full life cycle of the product design, integration and optimization about product information is the key technology to reduce the redundancy of the product management and upgrade real-time interactive management of the product information at all levels of manufacturers. Using object-oriented visualization modeling technology to achieve information interaction at all levels of physical layer, simplify the model calculation complexity and achieve the optimization design real-time guidance of all manufacturer production process.