[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655892-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-655892-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","generating-java-code-from-uml-class-and-sequence-diagrams-paper","Generating Java code from UML Class and Sequence Diagrams - Paper","","The work investigates automation and abstraction techniques for embedded software design, focusing on translating UML models into executable code. As embedded systems face rapid growth and strong time-to-market pressure, manual implementation from complex models becomes costly. The paper proposes an approach to automatically generate structural and behavioral Java code from UML class and sequence diagrams, validated via a demonstrated case study and an implemented code generator tool.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/generating-java-code-from-uml-class-and-sequence-diagrams-paper/655892/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/generating-java-code-from-uml-class-and-sequence-diagrams-paper/655892.png","ImageObject",300,407,{"name":42,"@type":43},"Mafia Boss","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-01","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What problem does the paper address for embedded software development?","Question",{"text":62,"@type":63},"It targets the difficulty of delivering embedded software quickly and with lower cost while managing increasing complexity, by automating translation from UML models to code.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What inputs does the proposed approach use to generate Java code?",{"text":67,"@type":63},"It uses a UML class diagram for structure and several UML sequence diagrams for behavior, with the main sequence diagram referenced to the method main.",{"name":69,"@type":60,"acceptedAnswer":70},"How is code generation validated in the paper?",{"text":71,"@type":63},"Validation is performed through a case study using a Washing Machine system and through the implementation of a code generator tool (GenCode) that transforms UML models represented in XMI into Java code.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},655892,1793052007,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":101,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":144},962090760730,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Generating Java code from UML Class and Sequence  \nDiagrams  \nAbilio G. Parada; Eliane Siegert; Lisane B. de Brisolara  \nGroup of Architectures and Integrated Circuits (GACI)  \nTechnology Development Center (CDTec) Federal University of Pelotas (UFPel)– Pelotas, RS – Brazil  \n{agparada,esiegert, [lisane}@inf.ufpel.edu.br](lisane}@inf.ufpel.edu.br)  \nAbstract. The increased amount of software in embedded systems and hard time-to-market have motivated the investigation for approaches to provide abstraction and automation for the embedded software design process. Recent approaches propose the use of UML to enable abstraction and deal with high complexity found on embedded applications. To support automation, models must be automatically translated to code. This paper presents an approach to automatically generate structural and behavioral code from UML class and sequence diagrams. This approach is demonstrated through a case study and was validated by the implementation of a code generator.  \n1. Introduction  \nThe amount of software in embedded systems grows up. Its increasingly complexity combined with hard time-to-market restrictions have motivated the investigation of approaches able to accelerate the product delivery and reduce costs. Usually models are used to deal with complexity [Selic 2003] through abstraction and graphical views. In the software domain, UML [OMG 2011] is the standard modeling language and offers several graphical diagrams to give different views ofa system and has been considered attractive to model complex embedded systems [Brisolara et al. 2008]. When models are used, these must be translated to code in order to obtain a functional implementation, thus, automatic translations help engineers to deliver software on time.  \nRecently, OMG and the software industry supported Model-driven Engineering (MDE) approaches [Selic 2006], which have gained attention also for the embedded community, promising automation and abstraction for embedded software development. Models are considered as primitive artifacts in these approaches, which evolved and are transformed until to be possible to automatically obtain an implementation from it. This way, MDE promises to accelerate software production. To support it, code generation approaches should be defined and tools must be available.  \nThis paper presents an approach for code generation from UML models. The proposed approach supports the generation of Java code from structural and behavioral diagrams and it is validated through the development of a tool, which captures a UML model, composed of a class diagram and several sequence diagrams and generates Java code from the model. A case study is used to for experimental validation of the code generation approach/tool.  \nThis paper is organized as following. Section 2 presents the proposed code generation approach. A Case study is presented in Section 3 and related works are discussed in Section 4. Finally, Section 5 presents conclusions and future works.  \n2. Proposal Approach  \nIn our approach, embedded applications are modeled using an UML class diagram to give a structural view and several sequence diagrams to represent the behavior. The main sequence diagram is referenced to the method main and defines the start point for the behavioral code. It obliges the designer to define a static method named main in oneof the classes, and than one sequence diagram must be built and linked to it.  \nFrom the class diagram (composed by classes and its relationships) , structural code is generated. From each class, a Java file is generated, describing its attributes and method´s signatures, and including the constructor method with attributes initialization passed by parameter. The code generation also considers relationship between classes or interfaces, the cardinality of attributes, as well as it generates get and set methods. Besides, when there is an inheritance hierarchy including an abstract class or an interface, methods d","cbCaiahq7jmmDhcw","https://ap.wps.com/l/cbCaiahq7jmmDhcw","pdf",385759,"English","# Introduction\n# Proposal Approach\n# Case Study","[{\"question\":\"What problem does the paper address for embedded software development?\",\"answer\":\"It targets the difficulty of delivering embedded software quickly and with lower cost while managing increasing complexity, by automating translation from UML models to code.\"},{\"question\":\"What inputs does the proposed approach use to generate Java code?\",\"answer\":\"It uses a UML class diagram for structure and several UML sequence diagrams for behavior, with the main sequence diagram referenced to the method main.\"},{\"question\":\"How is code generation validated in the paper?\",\"answer\":\"Validation is performed through a case study using a Washing Machine system and through the implementation of a code generator tool (GenCode) that transforms UML models represented in XMI into Java code.\"}]","Generating Java code from UML Class and Sequence Diagrams - Paper | PDF",1792964620,15]