Live Sequence Diagrams Flashcards

1
Q

What is the definition of well-formedness?

A

For each location l, if l is the location of a condition or a local invariant, then there is a location l’ simultaneous to l, which is the location of an instance head or a message

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

What are all the parts of the abstract syntax?

A
  1. set of locations with partial order and simultaneity
  2. the set of instance lines (a partition of the set of locations)
  3. set of messages
  4. set of conditions
  5. set of local invariants
  6. assignment of temperature to each location/element
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Are cyclic LSDs allowed?

A

No, they do not have an abstract syntax

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

Relationship between abstract and concrete syntax?

A

multiple concrete syntaxes for one abstract syntax

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

What is the definition of a cut?

A

A nonempty set of locations which is:

1. downward-closed (if b is in the cut and a<b></b>

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

What is the temperature of a cut?

A

C is hot if and only if at least one of its maximal elements (latest in cut) is hot

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

What are always the first and last cuts?

A

first cut = all instance heads

last cut = entire diagram (all locations)

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

What is a fired set F of a cut C?

A

“difference between one cut and the following cut” denoted by squiggly line between cuts

  1. C and F are disjoint
  2. union of C and F is a cut
  3. all locations of F are “direct successors” of locations in C (no location between location in C and location in F)
  4. locations in F that are on the same instance line are pairwise unordered
  5. for each asynchronous message reception in F, the corresponding sending is already in C
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the 3 syntaxes of LSDs?

A

abstract, concrete (diagram), semantics (automat)

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

What is the TBA construction principle?

A

The TBA B(L) of LSC L is (C, Q, q_ini, –>, Q_F) where:
Q = set of cuts,
q_ini = instance heads cut,
C_B = union of C and E!?,
–> consists of loops, progress conditions (fired set), and legal exits (cold cond or local invariant),
F is the set of cold cuts

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

List the components of a full LSC

A

pre-chart (possibly empty), main chart (non-empty), activation condition (condition/location invariant), strictness flag (strict or permissive), activation mode (initial or invariant), chart mode (existential (cold) or universal (hot)), strictness flag

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

When is a “universal” LSC satisfied by software? (hot)

A

A universal LSC is satisfied by a software

S if and only if all words induced by the computation paths of S are accepted by the LSC’s TBA

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

When is a “existential” LSC satisfied by software? (cold)

A

An existential LSC is satisfied by a software
S if and only if there is a word induced by a computation path of S which is accepted by the LSC’s TBA. Prove by demonstrating the computation path.

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

What is the purpose of precharts?

A

allow us to specify anti-scenarios (“this must not happen”) and activation interactions

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

invariant v. initial?

A

invariant: software can satisfy the LSC starting at any state
initial: software must satisfy the LSC starting at the first state

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

relationship between word and computation path of software?

A

word = sequence of (state disjunction next action)

17
Q

When is software compatible with LSC?

A

states are valuations of the conditions, events are of the form E?, E!