09.08.2013 Views

Architecture Modeling - SPES 2020

Architecture Modeling - SPES 2020

Architecture Modeling - SPES 2020

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Architecture</strong> <strong>Modeling</strong><br />

a specific sensor measuring temperature or a computing device (e. g. ECU or IMA module)<br />

hosting software applications.<br />

The generic concept of components is extended resulting in so called Heterogeneous Rich<br />

Components (HRC)(↑). Per aspect these HRCs have a specification as well as a realization (cf.<br />

Section 2.3.1.2). Figure 2.5 depicts those fundamental principles of an HRC. Per aspect it has<br />

specifications of its behavior with respect to that aspect. Optionally an aspect realization of the<br />

component is given. Parts of the behavior are exposed at the ports(↑) of the component.<br />

2.3.1.1 Ports<br />

Ports(↑) are the interaction points of a component. Together with their types they define the<br />

syntactical interface of the component. A port can either define a data-oriented interaction<br />

point or service-oriented interaction point. Further, they have a direction and are either input<br />

port (sometimes called required ports), output ports (provided ports) or bidirectional.<br />

p1:PortSpec1<br />

p2:PortSpec2<br />

Component<br />

f1<br />

f2<br />

f3<br />

PortSpec1<br />

Flow<br />

PortSpec2<br />

s1(param,...):return<br />

s2(param,...):return<br />

Service<br />

Figure 2.6: Typing of Ports<br />

A port has a name and is typed by a port specification as illustrated in Figure 2.6. That<br />

specification is a set of flows or a set of services. A flow also has a name and is typed by a<br />

datatype like for example int. A Service has a name as well and is declared by its parameters<br />

and return type.<br />

2.3.1.2 Aspects<br />

A view modeled by an HRC may address different aspects(↑). The concept of aspects classifies<br />

descriptions of the dynamic behavior of an HRC. Though being extensible by user-defined<br />

aspects, we currently consider three pre-defined aspects: functional behavior, real-time and<br />

safety. The functional behavior aspect of an HRC characterizes its dynamics by relating events<br />

to each other and describing the handling of conditions and invariants. The real-time aspect<br />

of an HRC defines the timings of its functional behavior, such as assumed activation behavior<br />

(e.g periodic with jitter) or end-to-end deadlines of chains of functions. The real-time aspect<br />

usually abstracts from actual values received or sent at the ports of an HRC, but focusses on<br />

the timing of events instead. The safety aspect of an HRC provides specification of single point<br />

of failures, as well as failure conditions and hazards. This also encompasses probabilities for<br />

the occurrence of failure conditions. Thus aspect specifications describe functional and nonfunctional<br />

characteristics of an HRC.<br />

For each aspect of an HRC there can be a specification and an aspect realization. A specification<br />

of an aspect of an HRC is a characterization of the realization of the HRC with regard to<br />

the aspect. That means an aspect specification defines ”what” an HRC does, while a realization<br />

describes ”how” it does that. Specifications are done by means of so called contracts(↑). The<br />

10/ 156

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!