100 likes | 110 Views
Transfer State Machine Design from UML to XML. with a simple Example - Cruise Control. Main topic includes: UML and XML Introduction Metadata Integration with UML, MOF( Meta Object Facility) and XMI (XML Metadata Interchange format) Finite State Machine Design in UML
E N D
Transfer State Machine Design from UML to XML with a simple Example - Cruise Control • Main topic includes: • UML and XML Introduction • Metadata Integration with UML, MOF( Meta Object Facility) and XMI (XML Metadata Interchange format) • Finite State Machine Design in UML • My project: Transfer State Machine Design from UML to XML COSC6341 Presentation
UML Introduction Unified Modeling Language Why do we model? • Provide Structure for problem solving • Experiment to Explore multiple solutions • Furnish abstractions to manage complexity • Reduce time-to-market for business problem solutions • Decrease development costs • Manage the risk of mistakes
UML Introduction (cont’d) • Language for Specifying, Visualizing, constructing and documenting the artifacts of software design • Define an easy-to -learn but semantically rich visual modeling language • Unify the Booch, OMT, and Objectory Modeling language and include ideas from other modeling language • Address contemporary software development issue such as scale, distribution, concurrency and executablity. • Provide flexibility for apply different processes • Enable model interchange and define repository interfaces
UML Introduction (cont’d) • Structural Modeling • a view of an system that emphasizes the structure of the objects, including their classifiers, relationships, attributes and operations. • Use Cases Modeling • a view of a system that emphasizes the behavior as it appears to outside users. A use case model partitions system functionality into transactions (‘use cases’) that are meaningful to users (‘actors’). • Behavioral Modeling • Interactions and Collaborations • Statecharts • Activity Diagrams
XML Introduction • What is XML? • XML is a method for putting structured data in a text file • XML looks a bit like HTML but isn't HTML • What is XML for? • XML is designed ‘to make it easy and straightforward to use SGML on the Web: easy to define document types, easy to author and manage SGML-defined documents, and easy to transmit and share them across the Web.’ • How does XML handle metadata? • Because XML lets you define your own markup language, you can make full use of the extended hypertext features of XML to store or link to metadata in any format
XML Metadata Meta Object Interchange Metadata Layer Facility (XMI) Facility UML XML Document Type Definition Specification Layer OMG UML UML CORBAfacility Interface Definition Platform Domain Technology Technology profiles*** profiles*** UML Profiles for UML Profile for Customization Layer Business CORBA Domains Metadata Integration with UML, MOF, and XMI
Metadata Integration with UML, MOF, and XMI • UML is only a modeling language • most implementation information is modeled in MOF • MOF provides a set of CORBA interfaces that can be used to define and manipulate a set of interoperable metamodels • XMI make it easy to change data and model information
ON ON ON OFF Finite State Machine Design in UML What is Finite State Machine? • A machine whose output behavior is not only a direct consequence of the current input, but of some past history of its inputs • Characterized by an internal state which represents this past experience State Machines are suitable for describing event-driven, discrete behavior ON
Finite State Machine Design in UML • Direct Mapping: Initialize Object on Lamp On Waiting for Event on/print(“on”) off off Handle Event Lamp Off stop Terminate Object
My Project: Cruise Control Expample Pause Resume Off Pause /brake On Cruise Cruise On Cruise Off initial ready Off Off