vehicle size:real capacity:real topspeed:int outputdata () get size() g et capacity()
DESCRIPTION
- PowerPoint PPT PresentationTRANSCRIPT
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
Draw an inheritance class diagram which shows “Vehicle” class. This should have the attributes Size, Capacity, Topspeed and methods to retrieve these values and one outputData(). Show two subclasses, one “Car” and one “Ship”, select some appropriate additional attributes for these classes and any new methods needed. Mark clearly which methods are overriding in the subclasses.
Vehicle
Size:realCapacity:realTopspeed:int
outputData()get size()
get capacity()get topspeed()
Car
make:stringmodel:string
outputData()get make()get mode()
Ship
shiptype:string
outputData()get shiptype()
overridingoverriding
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
Temporary teachers have all the attributes of teachers but, additionally, have an attribute lengthofcontract. Place the class ‘Tempoary Teacher’ on the class diagram in an appropriate position’.
Temporary Teacher
lengthofcontract:int
get lengthofcontract()
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
What type of UML diagrams are these? What is the difference between them?
:Student
Student1
studentid=123studentname=“Chris”dateofbirth=“240795”
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
Three entities are instantiated from the Car class:Car1, make=Seat, Model=IbizaCar2, make=Fiat, Model=PuntoCar3, make=Jaguar, Model=X-type
Draw the object diagrams for these 3 entities.
Vehicle
Size:realCapacity:realTopspeed:int
outputData()get size()
get capacity()get topspeed()
Car
make:stringmodel:string
outputData()get make()get mode()
Ship
shiptype:string
outputData()get shiptype()
Car 1
make=Seatmodel=Ibiza
Car 2
make=Fiatmodel=Punto
Car 3
make=Jaguarmodel=X-type
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
1) What type of UML diagram is this?2) Explain what this diagram depicts.3) Label up following components on the diagram:
Receiving actor, Initiating actor, Use case
Learns
Teaches
student
teacher
Receiving Actor
Initiating Actor
Use Case
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
Draw a Use Case diagram which shows the process of a “Booking being taken” at travel agents, the actors are the customer and travel agent. Label up the diagram correctly.
BookingTravel agent
customer
Receiving Actor
Initiating Actor
Use Case
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
1) What type of UML diagram is this?2) Explain what this diagram depicts.3) Explain what each box is and what is special about the labelling of the arrows.
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
At the entrance to a car park, a car driver has to stop at the barrier and press a button on the ticket machine. The machine issues a ticket to the driver, then raises the barrier to allow the car to enter. This is shown on the Communication Diagram below. The diagram is incomplete, add arrows and labels to so that it shows the process described (Do not add extra features which are not in the description).
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
1) What type of UML diagram is this?2) Explain what this diagram depicts.3) Where is the entry point to the system?4) What do the arrows represent?5) What do the rounded rectangles represent?6) What are the 3 states in this diagram?7) Name the “trigger events” that change the state of this diagram?8) Where is the exit point(s) to the system?
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
1) What type of UML diagram is this?2) Explain what this diagram depicts.3) Label up following components on the diagram:
Lifeline, Method Activation, Object
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
A shop has a lift which may be used by customers and staff. The sequence diagram below shows what happens when a person presses the button to call the lift when the lift is already at the correct floor.1) Explain the meaning of the vertical dotted lines in the diagram.2) From the diagram, give one example of each of the following:
An Object, A Message, A Signal
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
1) What type of UML diagram is this?2) Explain what this diagram depicts.3) There are 6 different types of symbol on this diagram, label them all up correctly.
Starting point
Activity
Decision
Input & Output activity
Covers more than oneactivity that is done
at a time End point
ALL students MUST be able to Identify (E) and Describe (D) the 7 most common form of UML diagrams required for OOP.MOST students WILL be able to Explain (C) the basic key features of each of the 7 most common UML diagrams when presented with drawn examples.SOME students WILL be able to Analyse (B) and Link (A) their knowledge of the 7 UML diagrams in order to interrupt them fully and create basic class, object, use case & communication diagrams from simple scenarios.
1) What is the difference between these two types of Activity Diagrams?