chapter_5 Flashcards

1
Q

object-oriented style: components are _______

A

objects: data and associated operations

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

object-oriented style: connectors are ________

A

messages and method invocations

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

object-oriented style invariants: objects are responsible for

A

their internal representation integrity

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

oo-style internal representation is _______

A

hidden from other objects

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

oo-style advantages: “infinite malleability of”

A

object internals

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

oo-style system decomposition _______

A

into sets of interacting agents

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

disadvantages of object-oriented style (2)

A

objects must know identities of servers, side effects in object method invocations

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

layered style: hierarchical system organization (2)

A

multi-level client server, each layer exposes an interafce (API) to be used by above layers

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

layered style: each layer acts as a (2)

A

server: service provider to layers “above”, client: service consumer of layer(s) “below”

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

layered style: connectors are _____

A

protocols of layer interaction. example: operating systems

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

virtual machine style ______

A

results from fully opaque layers

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

layered style advantages (5)

A
  1. increasing abstraction levels 2. evolvability 3. changes in a layer affect at most the adjacent two layers (resuse) 4. different implementations of layer are allowed as long as interface is preserved 5. standardized layer interfaces for libraries and frameworks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

layered style disadvantages (2)

A

disadvantages (not universally applicable, performance), layers may have to be skipped (determining the correct abstraction level)

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

client-server style (4)

A

components are clients and servers, servers do not know number or identities of clients, clients know server’s identity, connects are RPC-based network interaction protocols.

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

data-flow style: batch sequential (3)

A

batch sequential separate programs are executed in order; data is passed as an aggregate from one program to the next. connectors: “the human hand” carryign tpaes between the programs, aka “sneaker-net”, data elements: explicity aggregate elements passed from one component to the next upon completion of the producing program’s execution.

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

data-flow styles: typical uses ______

A

transaction processing in financial systems. “the granddaddy of styles”

17
Q

pipe and filter style: components are filters (2)

A

transform input data streams into output data streams, possibly incremental production of output

18
Q

pipe and filter style: connects are _____

A

pipes: conduits for data streams

19
Q

pipe and filter style: style invariants (2)

A

filters are independent( no shared state), filter has no knowledge of up or down-stream filters

20
Q

pipe and filter style example (4)

A

unix shell, signal processing, distributed systems, parallel programming

21
Q

pipe and filter variations (3)

A

pipelines -linear sequences of filters, bounded pipes -limited amount of data on a pipe, typed pipes -data strongly typed

22
Q

pipe and filter advantages (4)

A

system behavior is a cuccession of component behaviors, filter addition, replacement, and resuse (possible to hook any two filters together), certain analyses (throughput, latency, deadlock), concurrent execution

23
Q

pipe and filter disadvantages (3)

A

batach organization of processing, interactive applications, lowest common denominator on data transmission

24
Q

blackboard style: two kinds of components

A

central data structure - blackboard, components oeprating on the blackboard

25
Q

blackboard style: system control is ______

A

entirely driven by the blackboard state

26
Q

blackboard style: examples (3)

A

typically used for AI systems, integrated software environments (interlisp), compiler architecture

27
Q

rule based style:

A

interference engine parses user input and determines whether it is a fact/rule or a query. if it is a fact/rule, it adds this entry to the knowledge base. otherwise it queries the knowledge base for applicable rules and attemps to resolve the query.