200 likes | 322 Views
INF 123: Software Architectures, Distributed Systems, and Interoperability. Discussion Session Week 3 - Spring 2008 Instructor: Prof. Richard N. Taylor TA: Rosalva Gallardo. Overview. Questions about Assignment 1 How to create PDF files How can I see the LL architecture?
E N D
INF 123: Software Architectures, Distributed Systems, and Interoperability Discussion Session Week 3 - Spring 2008 Instructor: Prof. Richard N. Taylor TA: Rosalva Gallardo
Overview • Questions about Assignment 1 • How to create PDF files • How can I see the LL architecture? • How can I see the code related to a component? • How to configure SVN to create your repository
Questions about Assignment 1 • The source code of ArchStudio and Myx.fw have compilation errors • I cannot Download ArchStudio 4 Project Set File • I can see the Lunar Lander Menu but I can not run the game ==> Check the solutions in the Noteboard
How to create a PDF file? • MAC users: • File->Print, PDF, Save as PDF • Windows users: • Online free service: • https://www.pdfonline.com/convert_pdf.asp
How can I see the LL architecture? • Go to the ArchStudio Perspective • In the Navigator view, select LunarLander->arch.xml • Right click on arch.xml and select Open with Archipelago
How can I see the LL architecture? • In the Outline View, double click on “Lunar Lander” • You will see the Lunar Lander architecture. Adjust the % of Zoom for better visualization. • To see the different types of connectors that you can use in Myx.fw. Refer to the Myx Whitepaper here: http://www.isr.uci.edu/projects/archstudio/resources/myx-whitepaper.pdf
How can I see the code related to a component? • Go to the ArchStudio Perspective • In the Navigator view, select LunarLander->arch.xml • Right click on arch.xml and select Open with ArchEdit
How can I see the code related to a component? • In the Outline View, select one of the components and double click on its type. • Its type will be selected in the tree. Select implementation to see the java class related to the component type.
What about the connectors? • You can see the java class related to a Connector using ArchEdit and checking the “implementation.” Just in the same way we can see the implementation for a Component as described in previous slides.
How to configure SVN to create your repository • Step 1: Configure your Unix Shell • Step 2: Add Directory and Initialize your repository • Step 3: Configure Subclipse • Step 4: Connect to your SVN repository using Subclise • Step 5: Create folders in your repository • Step 6: Check In your project
Step 1: Configure your Unix Shell • Connect to your Unix account (openlab.ics.uci.edu) using SecureCRT, Putty or other ssh client in Windows or Terminal (ssh username@openlab.ics.uci.edu) in MAC. • Type the command “module list” and check if subversion has been loaded.
Step 1: Configure your Unix Shell • If the Subversion module has not been loaded, add the line “module load subversion” to your .cshrc file located in your H: drive. Log out and log in again to check that the module is loaded now.
Step 2: Add Directory and Initialize your repository • Create a directory called “123-svnrepository” (command: mkdir 123-svnrepository) • Enter that directory using the command “cd”. Type the command “pwd” and take note of the full path. We need this <path> later. • Initialize your repository: • Type in the command “svnadmin create --fs-type fsfs <path>”. Be sure to substitute the string that you wrote down in the previous bullet instead of <path>.
Step 3: Configure Subclipse • Go to Window (or Eclipse in MAC)-> Preferences. Expand Team and click SVN. Select “SVNKit (Pure Java)” in the SVN interface information. Click “Apply” and “OK.”
Step 4: Connect to your SVN repository using Subclipse • Go to the SVN Perspective. In the SVN Repositories tab, right-click and select New -> Repository Location. • Indicate the location of the repository. Type in “svn+ssh://openlab.ics.uci.edu/<path>”. Be sure to substitute the string that you wrote down in a previous slide instead of <path>. In the next screens you will be asked to enter your password (check if your username is correct) and author name.
Step 5: Create folders in your repository • Right-click on the repository and select New -> New remote folder. • In the New remote folder window create the folder “trunk” and press “Finish.” Repeat this step to create the folders “branches” and “tags.”
Step 5: Create folders in your repository • Your repository should look like this:
Step 6: Check In your project • Right-click on the project (LunarLander) and select the Team -> Share Project… menu item. • Select the SVN repository plug-in and click “Next.” • Select “Use existing repository location” and select the repository you just created. Click “Next”.
Step 6: Check In your project • In the Enter Folder Name Window, select “Use specified folder name:” and click “Browse.” Select the “trunk” folder and click OK.
Step 6: Check In your project • Enter a comment for your first commit. • You will see your project in the Package Explorer similar to the following screenshot: