Object Game Images Example Trailer version. Tsuyoshi Ushio Notice! This version is low quality Translation version from Japanese. This version has no review from native speaker. Copyright(C) 2009 Takumi Business Place Corporation All Rights Reserved. http://www.takumi-businessplace.co.jp/ Object-Oriented improvement Awareness Join OO Project Skill First BIG Awareness Learners can’t feel progress before First BIG Awareness Time OO Game makes Awareness! http://www.takumi-businessplace.co.jp/ Do you understand it? <XML> Request from browser web.xml it and t s r e und t have n a c ’ ners hey don ding. r a e L if t f co Even rience o expe <XML> struts-config.xml Table user_id :Yoda user_name:Tomoo password:sennuki Tomcat http://localhost:8080/sample/LoginAction.do Login Form Login user : pass : login Hello! Tomoo! Object Game User Controller User login.jsp menu .jsp Action Service User DAO ViewAction LoginAction User table You’ll understand it by 4 hours. http://www.takumi-businessplace.co.jp/ Rule Instantiate Before you ask a work, make instance from class. Instance Card Class Card 1:Person Person Person Role Manage “name” data Manage “height” data Sleep Display “(name) is sleeping.” Eat name height Person Role name Manage “name” data Manage “height” data Sleep Display “(name) is sleeping.” height Michael 169 Eat Unique number (Address) 2:Person Person Role name Stevie Manage “name” data height Manage “height” data 175 Sleep Display “(name) is sleeping.” http://www.takumi-businessplace.co.jp/ Eat Message Passing • Send Message – No parameter. Assign a person to class card Send message by touch shoulder. Eat it! Point your card. Copyright(C) 2009 Takumi Business Place Corporation All Rights Reserved. http://www.takumi-businessplace.co.jp/ Message Passing • Send Message – with parameters. Write down information on Post-it! Give me Employee! Copyright(C) 2009 Takumi Business Place Corporation All Rights Reserved. http://www.takumi-businessplace.co.jp/ Message Passing • Send Message – with object Pattern 1 No assign 2. Pass the person with the card. Pattern 2 Assigned card 1. Just pass the card Send Message with the card Send Message with person with the card Copyright(C) 2009 Takumi Business Place Corporation All Rights Reserved. http://www.takumi-businessplace.co.jp/ Polymorphism example James Person 1. Point it Post Post Factory Catharine Michael NoPost(Post) Chief(Post) Head(Post) 2. Instantiate Chief Post Factory instantiate Chief(Post) 3. Return Chief(Post) Point Post card and hold Chief card Hide the Chief card(Implementation) Return the Person of Chief Card! Send message to Post Y rience. e p x e t J us asily! e , t i d n ndersta u l l i w ou Copyright(C) 2009 Takumi Business Place Corporation All Rights Reserved. http://www.takumi-businessplace.co.jp/ Process Prepare a pencil, an eraser , the cards and executable applications. Place the cards. Concurrently assign -ment is OK. Assign a person to a card. Execute application. Execute Real Application Play scenarios three times. Play Game! Explanation & Compare with Source Code. Experience the Concept! Copyright(C) 2009 Takumi Business Place Corporation All Rights Reserved. http://www.takumi-businessplace.co.jp/ Other Examples TOMCAT Application Server HttpRequest Represent Request From Browser Create HttpRequest and insert the data from browser. Execute “web.xml instructions.” Manage data from browser Manage name-object pair Controller Dispatch all requests from browser Execute Configuration File (web.xml) If you’ll get a request of “ **.do” , send message to controller. Get URL from HttpRequest. Get action name and action form name from struts-config.xml compared with the URL. : http://www.takumi-businessplace.co.jp/
© Copyright 2025 Paperzz