Lecture 9 - atomic use cases Flashcards

1
Q

(high-level petri net) contains what?

A

places - represents points in time

transitions - representing the steps (inputs, outputs, pre and post conditions)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is an atomic use case?

A

a use case that ends in the system changing, eg error occurs system exits (system hasnt changed), person enters new employee id, person added saved to system (system changed therefore it is an atomic use case)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the 2 types of responses involved in a petri net?

A

negative response - system unchanged.

positive response - changes the system and is therefore and atomic use case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how are responses handled?

A

an atomic use cases are positive responses that are indivisible (instantaneous from the perspective of the system)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how are exceptional use cases handled?

A

exceptional cases result when preconditions are not satisfied

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the simplistic way of representing an atomic use case?

A

input, output, precondition and postcondition. sometimes one of these is empty as long as postcondition or output contain something its correct.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how do atomic use cases affect UI?

A

buttons call a check and then initiate the use case OR (better) form checks fields as they are written and button initiates atomic use case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the use of a ui?

A

a well-designed system will separate user from business logic layer (implementation of atomic use cases)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how do we represent input and output variables?

A

input - question mark id?: String
output - exclamation mark (no need for type) eg permitDetails! could be output represents list of permit number, reg number and owner id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how do we determine local variables from diagram?

A
they're variables appearing in the pre and post conditions (NOT input, output variables)
let e = element in employeeList | e.id = id? (employee whose id = id we input)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what are parallel lists?

A

2 lists where the item from the Nth element of one list corresponds with the Nth element of the other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how do we represent a parallel list?

A

lists with same number of stars are parallel eg
a?: List *
b?: List *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly