Enterprise Architect is installed on the laptop image. However, the license key must be installed in order for the software to work. You should obtain the license key from your instructor. Then run the EA application. Follow this procedure to create your first class diagram:
Copy a Base Project… .New Project field, browse to the directory where you want to create your design model, and enter “1020MSOEloginL1” (without the quotes, where MSOElogin is your MSOE login, e.g., jonesm) as the file name. The file type (.eap) will be added automatically.Model Project field at its default value (probably something like “C:\Program Files\Sparx Systems\EA\EABase.eap”). Later, you may use a special file here to configure EA in a certain way, but we don't need to do that right now.Reset New Project GUIDs box should be checked.Create Project to create your project.Recent Projects list in the main EA window, and the project should be openned (“1020MSOEloginL1 - EA” should now appear in the EA title bar.Project Browser from the View menu. (If the project browser tends to disappear, you can lock it in place by clicking the “push pin” icon; to release the browser, click the icon again.)Model and select New View from the context menu.Name field, select Class View and click OK.Add → Add Diagram from the context menu.New Diagram dialog, enter “Lab 1 Class Diagram” in the Name field, select UML Structural for the Type and select Class in the Type list. Then, click OK.Toolbox from the View menu. (Again, you can lock it in place with the “push pin” icon.)Class Elements section in the Toolbox window, select Package. When you move the mouse pointer into the diagram area, it should show a plus sign to indicate that you are preparing to insert the package into the diagram. At a convenient location in the diagram window, left-click to insert the package.Package Name dialog, enter “lab1” (lower case and without the quotes) and click OK. The “lab1” package should appear in the diagram, and the Package dialog box should open.Author field, enter your last name, make sure the Language field is set to Java, and click on OK.Project View, you should see the “lab1” package with a “lab1” diagram below it. In the “Lab 1 Class Diagram”, double-click on the “lab1” package to open the “lab1” diagram. You should now see a “lab1” tab at the bottom of the EA window.Class tab in the Toolbox window, select Class. At a convenient location in the diagram window, left-click to insert the class.Class dialog, enter “Circle” (without the quotes) in the Name field and enter your name in the Author field. In the Notes field, enter a short description like “This class represents a circle.”.OK. The class name (“Circle”) should appear in the class symbol and the “Circle” class should appear in the Project View window.Attributes… from the context menu. This will open the Circle Attributes dialog box.New to add a new attribute. (It is not strictly necessary to do this for the first attribute, but you will need to do it for the rest.)Name field, enter “radius” (without the quotes).Type field, select double.Scope is set to Private.Notes field, enter a brief description like “Radius of the circle”Initial field.Save to add this attribute to the attribute list for the class. It should appear (selected) in the list at the bottom of the Circle Attributes dialog.Close to close the Circle Attributes dialog. The “radius” attribute should now appear in the “Circle” class symbol.Operations… from the context menu. This will open the Circle Operations dialog box.New and then enter “setRadius” in the Name field. (As with the first attribute, clicking New is not necessary for the first operation.)Return Type to “void” (without the quotes) and the Scope to Public.Notes field, enter a brief description like “Setter method for the radius attribute.”.Parameters field, enter “theRadius: double” to indicate the name and variable type for the parameter passed. Alternatively, you could select the Edit button to the right of the Parameters field which allows you to add multiple parameters via a dialog box.Save to add this operation to the class.Close to close the Circle Operations dialog. The “setRadius” operation should now appear in the “Circle” class symbol.Properties… from the Diagram menu and select the Features tab. In the Show Parameter Detail drop-down box, select “Full Details” and click on OK.Project View window, click on the plus sign next to the “Circle” class. You should see the attribute(s) and operation(s) you have created for the class.Save from the Diagram menu. (Many changes will be saved automatically, but some will not.)Save Image to File from the Diagram menu. Alternatively, you can copy the class diagram to the clipboard by selecting Save Image to Clipboard from the Diagram menu.When you're done, you should have something that looks like this: