Slide 1

Slide 1 text

jgs CSC 309 Software Engineering II Lecture 06: Connecting Services Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment

Slide 2

Slide 2 text

jgs Previously…

Slide 3

Slide 3 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 3 What if …?

Slide 4

Slide 4 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 4 Version 02

Slide 5

Slide 5 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 5 Version 02 :: update our constructor

Slide 6

Slide 6 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 6 Unique From: CMU/SEI Linda Northrop

Slide 7

Slide 7 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 7 Reuse From: CMU/SEI Linda Northrop

Slide 8

Slide 8 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 8 Library

Slide 9

Slide 9 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 9 Maven Repository

Slide 10

Slide 10 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 10 Maven Directories A build automation tool used

Slide 11

Slide 11 text

jgs Next

Slide 12

Slide 12 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 12 Reuse From: CMU/SEI Linda Northrop

Slide 13

Slide 13 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 13 What if …? Box Name1 Name2 Cat Car What is Tower of Hanoi? _

Slide 14

Slide 14 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 14 What if …? Box Name 1 Name 2 Cat Car What is a Flowchart diagram? _

Slide 15

Slide 15 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 15 What if …? Box Name 1 Name 2 Cat Car What is a Flowchart diagram? _

Slide 16

Slide 16 text

jgs Bing Maps API

Slide 17

Slide 17 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 17 Version 02

Slide 18

Slide 18 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 18 We need keys String key = "XYZabc123259#$%#$Fcaskjhdux_2342445Calp";

Slide 19

Slide 19 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 19 1.Go to the Bing Maps Dev Center website (https://www.bingmapsportal.com/). 2.Sign in using your Microsoft account or create a new account if you don't have one. 3.Click on "My Account" and select "Create or view keys" from the drop-down menu. 4.Click on "Create a new key.” 5.Select the type of key you want to create (e.g., Basic). 6.Enter a name for your key and click on "Create.” 7.Your new API key will be displayed on the "Keys" page. Copy the key to use in your code. Bing Maps

Slide 20

Slide 20 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 20 We need a Network Connection String mapUrl = "https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/" + location + "?zoomLevel=10&mapSize=200,200&key=” + apiKey; URL mapImageUrl = new URL(mapUrl); URLConnection connection = mapImageUrl.openConnection(); InputStream inputStream = connection.getInputStream();

Slide 21

Slide 21 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 21 Code Bing Maps (1/3)

Slide 22

Slide 22 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 22 Code Bing Maps (2/3)

Slide 23

Slide 23 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 23 Code Bing Maps (3/3)

Slide 24

Slide 24 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 24 Version 02

Slide 25

Slide 25 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 25 Let’s Work Stories

Slide 26

Slide 26 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 26 Let’s Work Tasks

Slide 27

Slide 27 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 27 Let’s Work Class Diagram

Slide 28

Slide 28 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 28 Let’s Work Code

Slide 29

Slide 29 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 29 Questions

Slide 30

Slide 30 text

jgs To be continued …

Slide 31

Slide 31 text

jgs

Slide 32

Slide 32 text

jgs CSC 309 Software Engineering II Lab 09: Work in your Sprint Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment

Slide 33

Slide 33 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 34 Version 02

Slide 34

Slide 34 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 35 Let’s Work Step 01 Make It Work https://github.com/javiergs/TowerOfHanoi/tree/main/version-02

Slide 35

Slide 35 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 36 Let’s Work Step 02 - Can you add some kind of menu to select from among a number of cities? - Then click on some button and get the map for that city. - It can be on the same Hanoi APP, or you can start a new empty one.

Slide 36

Slide 36 text

jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 | 37 Let’s Work References: GitHub with HanoiTowers version 2: https://github.com/javiergs/TowerOfHanoi/tree/main/version-02 About Ciirdinates: https://support.google.com/maps/answer/18539?hl=en&co=GENIE.Pla tform%3DDesktop

Slide 37

Slide 37 text

jgs CSC 309 Software Engineering II Javier Gonzalez-Sanchez, Ph.D. [email protected] Winter 2023 Copyright. These slides can only be used as study material for the class CSC308 at Cal Poly. They cannot be distributed or used for another purpose.