12.07.2015 Views

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

XMI for AllFusion Component Modeler tutorial ... - SupportConnect

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Review the Interface Specifications and Transition ClassesCreate a Transition ClassYou will copy the Rental Shop class to a new class named Location<strong>Component</strong>, anddelete the operations that won’t be implemented by the Location<strong>Component</strong>.1. Right-click on RentalShop in the Project Tree and select Copy.2. Right-click on Car Rental Analysis Model andthen select Paste, a new class RentalShop1 is inserted in the ProjectTree.3. Right-click on RentalShop1 and select Rename, typeLocation<strong>Component</strong> and then press Enter.4. Expand the Location<strong>Component</strong>. Select all the operations by clicking thefirst operation and then press the Shift key and simultaneously click thelast operation.5. Press and hold the Ctrl key and click on these operations to de-select them,while the entire list of operations of Location<strong>Component</strong> is highlighted:• getReturnLocationList( )• createLocation( )• getLocationList( )6. Right-click on any place of the highlighted operations and select Delete.Click the Yes button on the Confirm Delete dialog.7. Right-click on Car Rental Analysis Model andselect Create Interfaces Interface Specification. Type ITempas the name of the interface and press Enter to create a temporary interface.The Specification to Implementation Wizard requires that the componentspecification to be implemented offer at least one interface. You will removethis transition object later in the <strong>tutorial</strong>.Review the OperationsFor the implementation, you may discover that the required input and output ofan operation is different from the earlier analysis phase. The createLocationoperation should contain one parameter that accepts an instance of the Locationclass and returns a text message to report the creation status. The getLocationListoperation should return an array of Location class.3–6 Advantage Joe Integrating with <strong>AllFusion</strong> <strong>Component</strong> <strong>Modeler</strong> – <strong>XMI</strong> Import/Export

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!