課程名稱︰ 資訊系統原理 UML
課程性質︰ 資工系必修
課程教師︰ 林風
開課學院: 電資院
開課系所︰ 資訊系
考試日期(年月日)︰ 2007/6/13
考試時限(分鐘): 3 hours
是否需發放獎勵金: 是
(如未明確表示,則不予發放)
試題 :
1.(9%)請分別說明哪些圖可以用來表示一個系統靜態與動態部份?
Please write down the diagrams thatcan use to model the static part and
dynamic part of a system, respectively.
2.(5%)(a)假設今天給你一個 simple monolithic application,針對4+1個view分別
要畫哪些圖?
When modeling a simple monolithic application(that runs on a single
machine),for each of 4+1 views in UML, what diagrams you should focus on?
(5%)(b)如果今天給你的是一個complex distributed system,針對4+1個view分別
要畫哪些圖?
When modeling a complex distributed system,for each of 4+1 views in UML,
what diagrams you should focus on?
3.(14%)請畫出class diagrams以符合以下的statemant.(請在每個relationship上說明
符合哪一個requirement,並說明為何使用此relationship)
Consider the following incomplete class diagram. In this diagram, we design
a school information system. There are six classes declared: Company,
Employee, Department, Department Manager, and Project Leader.Please add
the relationship between two classes in the diagram following the specs(see
S1-S7 below) of this system, and add notes on the relationship to describe
why you use this kind of relationship between two classes.
Note that the sentences with bold face in the specs must be addressed in
your answer.
S1. An Object of Company has one or more objects of Employees.
S2. An Object of Company has xero or more objects of Department.
S3. A Department Manager is a kind of Employees, who leads the Department.
(hint: Department is the type of one attribute in Department Manager.)
S4. A Project Leader is a kind of Employee, who leads one or more Project.
S5. Department has one or more Projects. As the Department is closed, the
Projects are closed.
S6. An Employee knows the one or more Project he joins.
S7. A Department Manager does not join ant Project.
4.(2%)(a)請問有三種visibility?請針對每一種稍加說明其用法.
Please briefly to describe the usages of three levels of visibility.
(2%)(b)請問有哪兩種class scope?請以例子說明.
Please elaborate ab example to describe the usage of two kinds of class
scope.
(2%)(c)請問什麼是obstract class?什麼是singleton class?
Please describe the definition for "Abstract Class and Singleton Class".
(2%)(d)請問什麼是operation?什麼是method?
Please describe the definition for "operation and method".
5.(4%)(a)請針對以下的stereotype,畫一個圖簡單的說明其使用方法.
For each of the following stereotypes, depict a diagram to briefly
illustrate their usages. (a)access(b)import(c)extend(d)include
(1%)(b)請舉例並說明什麼是Generation關係中的mixin?
Please elaborate an example to describe the "mixin" defined in the
"Generation" relationship.
6.(10%)請將下Collaboration diagram 轉換成對應的Sequence diagram?
Please draw a sequence diagram based on the following collaboration diagram.
c:Client
| 1:create
| 2:setActions(a,d,o)
| 3:destroy
local | global
:Transaction---------------p:ODBCProxy
{transient}
2.1:setValues(d,3,4)
2.2:setValues(a,"CO")
2.(14%)(a)請畫出學生選課系統的use case diagram以滿足底下所敘述的statement.
Given the following problem statements, depict a Use diagram that satisfies
these statement.
S1. You are asked to design a "Student Registration System".
S2. The new System will allow students ro access the system, to register for
coures and view report cards from personal computer attached to the
campus LAN.
S3. Professors will be able to access the system to sign up to teach course
as well as record grades.
S4. Due to a drease in federal funding, the college cannot afford to raplace
the entire system at once. The college will keep the existing course
catalog database where all course information is maintained. The perfor-
mance of the database is rather poor, so the new system must insure that
access to the data on the legacy system occurs in a timely manner. The
new system will access course information from the database but will not
update it.
S5. The register's office will close course registration and maintain course
information and student information.
S6. Once the registration process is completed for a student, the regist-
ration sends information to the billing system so the syudent can be
billed for the semester.
S7. Since student grades are senstive information, the system must employ
extra security measures to prevent unauthorized access.
(6%)(b)請寫出login的Flow of event?
Please write down the "Flow of event" for the Use Case "Login".
8.(9%)請畫一張activity diagram來說明(a)concurrent fork(b)concurrent join
(c)swimlane.
Use an activity diagram to explain what are (a)concurrent fork(b)concurrent
join(c)swimlane?
9.(3%)(a)請問什麼時候一個系統會需要state machine?
What kind of system needs a state machine for easing implementation?
(12%)(b)請畫出state diagram 來滿足下面所述一個ATM machine的statement.
Consider the problem of modeling the behavior of an ATM. There are three
basic states in which this system night be:
Idle(waiting for customer interaction),
Active(handling a customer's transaction),
Maintenance(perhaps having its cash store replenished)
Given the following problem statement, depict a Statechart diagram that
satisfies these statement.
S1. The state of the ATM changes from Idle to Active when the customer
enters a credit card in the machine.
S2. The customer might decide to cancel the transaction, return the ATM to
its Idle state.
S3. While Active, the behavior of the ATM follows a simple path:
Validate the customer-->select a transaction-->process the transaction
-->print a receipt-->the ATM returns to the Idle state.
You might represent these stages of behavior as the states Validating,
Selecting, Processing, and Printing.
It would even be desirable to let the customer select and process
multiple transactions after Validating the account and before Printing
a final receipt.
S4. After Print, there's a triggerless transition back to the Idle state.
Notice that the Active state has an exit action, which elects the
customer's credit card.
S5. The state of the ATM changes from Idle to Maintenance when Administrator
maintains the ATM machine.
S6. The state of the ATM changes from Maintenance to Idle after
Administrator amintain the ATM machine.
--
╖ ╔ ╭═╮ ╔═╮ ╔═╕
╠╦╯ ║ ║ ╠═╣ ╠═
╜╚╛ ╰═╯ ╚═╯ ╚═╛
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.117.49.231