Slide 1 Title Here

This is slide 1 description - Designcart.org

Slide 2 Title Here

This is slide 2 description - Designcart.org

Slide 3 Title Here

This is slide 3 description - Designcart.org

Slide 4 Title Here

This is slide 4 description - Designcart.org

Thursday, October 22, 2015

Question:

Consider a workflow system supporting software developers. The system enables managers to model the process the developers should follow in terms of processes and work products. The manager can assign specific processes to each developer and set deadlines for the delivery of each work product. The system supports several types of work products, including formatted text, picture, and URLs. The manager, while editing the workflow, can dynamically set the type of each work product at run time. Assuming one of your design goals is to design the system so that more work product types can be added in the future, which design pattern would you use to represent work products? Draw a UML class diagram to connect the classes namely WorkflowSystem, WorkProduct, WorkProductContent, TextContent, PictureContent, and URLContent.

Answer:

We use a bridge pattern. The interface class stores the deadline and type of work product and provides the interface to the rest of the application. The implementor classes store the content of the work product and can be substituted at run time. All implementor classes comply to the same abstract WorkProductContent interface.


Consider an existing game of bridge written in Java. We are interested in integrating this bridge game into ARENA. What is ARENA? ARENA is a multi-user game management system. Which design pattern would you use? Draw a UML class diagram relating the ARENA objects with some of the classes you would expect to find in the bridge game.


Guide: Integrating an existing game requires writing one adapter per ARENA class in the game interface.


Tuesday, October 20, 2015

Question:

Imagine that you are running a case study of a multi-user game management system called ARENA. For each of the following objects in the ARENA object design model, indicate if it is an application object or a solution object:

Answer:

  • LeagueOwner solution object
  • TournamentStore solution object
  • Game application objects
  • Player application objects 
  • Move application objects
  • ResultDisplay solution object 
  • Statistics application objects


Guide:
(a) (i) Application objects also called domain object represent concept of the domain that are relevant to the system. (ii) Solution object represent components that do not have a counterpart in the application domain, such as persistent data stores, user interface object. Or middle ware.

(b) (i) Most entity object are application objects that are independent of any specific system. (ii) During analysis we identify solution object that are visible to the user, such as boundary and control objects representing forms and transaction defined as the system. During system design, we identify more solution objects in terms of software and hardware platforms
Question:

Indicate which occurrences of the following inheritance relationships are specification inheritance and which are implementation inheritance.

Answer:

  • A Rectangle class inherits from a Triangle class (Implementation inheritance)
  • A Vector class inherits from an Array class (Implementation inheritance)
  • A Circle class inherits from a Sphere class (specification inheritance)
  • A Arc class inherits from a Circle class (Implementation inheritance)
  • A Student class inherits from a Person class (specification inheritance) 


Guide:
A) Implementation inheritance refers to the use of inheritance for the sole  purpose of reusing code. Developers reuse code quickly by sub classing an existing class  and refining tis behavior. Implementation inheritance represent refuse among  conceptually unrelated classes.

B) Specification inheritance refers to inheritance used as a means of subtyping. The classification of concept into type hierarchies is called specification inheritance (also called interface inheritance’)
Question

Assuming the same file system as before, consider a scenario consisting of selecting a File in a folder, right clicking on the mouse, and renaming the file. Identify and define at least one control object associated with this scenario.

Answer

The purpose of a control object is to encapsulate the behavior associated with a user level transaction. In this example, we identify a CopyFile control object, which is responsible for remembering the path of the original file, the path of the destination folder, checking if the file can be copied (access control and disk space), and to initiate the file Copying.
Question 

Consider a file system with a graphical user interface, such as Macintosh’s Finder, Microsoft’s Windows Explorer, or Linux’s KDE. The following objects were identified from a use case describing how to rename a file: File, Icon, TrashCan, Folder, Disc, Pointer. Specify which are entity objects, which are boundary objects, and which are control objects. 


Answer

Entity object represent the persistent information( or long lived information) tracked by the system. .g year, month, day. 

 Boundary object represent the interaction between the actor and the system e.g button, and lcdddisplay. 

Control object are in charge of realizing use cases. E.g changedatecontrol is a control object that represent the activity of changing the date by pressin combination of buttons. 

 Entity objects: File, Folder, Disk 
 Boundary objects: Icon, Pointer, TrashCan 
 Control objects: none in this example

Sunday, October 12, 2014


Simple example of Movie Booking System use Java Application . Database use is MySQL .
Have 5 table which is : Customer , Movie , Admin , Hall , Booking .

Role for Customer/User:
  • Login
  • Register
  • Choose Movie
  • Choose Date and Time
  • Choose Seats
  • View Booking Details
  • View Movie Details
Role for Admin:
  • Login
  • Add New Movie
  • View Movie Details

Incoming Search:
Zul Ameen Blog © 2013 | Powered by Blogger | Blogger Template by DesignCart.org