ics for specification is all very well for small exam-
ples, but for more realistically sized problems, things
start to get out of hand. To deal with this, Z in-
cludes the schema notation to aid the structuring and
modularization of specifications. A boxed notation
called schemas is used for structuring Z specifica-
tions. This has been found to be necessary to han-
dle the information in a specification of any size. In
particular, Z schemas and the schema calculus enable
a structured way of presenting large state spaces and
their transformation. But Z itself is cumbersome for
specifying parallel systems. Its use will produce a
much longer specification than if some other speci-
fication languages are used. Hence it is more con-
venient to use a language like CSP (Hoare, 1985) in
such cases. Work has been undertaken to attempt to
combine some of the features of CSP with Z (Fischer,
1996; Fischer, 1997; Fischer, 1998).
In this paper, we present a new specification lan-
guage which combines interface automata, hybrid au-
tomata and Z language. Interface automata are a kind
of intuitive models for interface property of software
components. Hybrid automata are a model of mixed
discrete-continuous systems. Z can describe the data
property of states and transitions of a system. To
specify mixed discrete-continuous software/hardware
components, we give the definition of HZIA. Roughly
speaking, a HZIA is in a style of hybrid interface au-
tomata but its states and operations are described by Z
language. Furthermore, we define the approximated
refinement relation between HZIAs and prove some
propositions of such refinement relation. This paper
is organized as follows: Section 2 gives a brief re-
view of interface automata, hybrid automata and Z
language. In Section 3, we propose a specification
language-HZIA. Furthermore, the approximated re-
finement relation for HZIA are presented and studied.
The paper is concluded in Section 4.
2 OVERVIEW OF INTERFACE
AUTOMATA, HYBRID
AUTOMATA AND Z LANGUAGE
In this section, we give a brief overview of interface
automata, hybrid automata and Z language.
2.1 Interface Automata
An interface automaton (IA) (Luca de Alfaro,
2001), introduced by de Alfaro and Henzinger, is
an automata-based model suitable for specifying
component-based systems. IA is part of a class of
models called interface models, which are intended
to specify concisely how systems can be used and
to adhere to certain well-formedness criteria that
make them appropriate for modelling component-
based systems. The two main characteristics of in-
terface models are that they assume a helpful envi-
ronment and support top-down design.
Definition 1. An interface automaton (IA) P = hV
P
,
V
i
P
, A
I
P
, A
O
P
, A
H
P
, T
P
i consists of the following ele-
ments:
(1) V
P
is a set of states,
(2) V
i
P
⊆ V
P
is a set of initial states. If V
i
P
=
/
0 then
P is called empty.
(3) A
I
P
, A
O
P
and A
H
P
are disjoint sets of input, out-
put, and internal actions, respectively. We denote by
A
P
= A
I
P
∪ A
O
P
∪ A
H
P
the set of all actions.
(4) T
P
is the set of transitions between states such
that T
P
⊆ V
P
× A
P
× V
P
.
The interface automaton P is closed if it has only
internal actions, that is, A
I
P
= A
O
P
=
/
0; otherwise we
say that P is open.
The composition of two IAs consists of all possi-
ble interleaved transitions of the two IAs, except for
those actions that are shared. Two IAs are composable
if they do not take any of the same inputs, do not pro-
duce any of the same outputs and the internal actions
of the two components do not overlap. An internal
action is created through the composition of IA when
an output action of one component is internally con-
sumed by an input action of another component. This
synchronization reduces the two actions to an internal
action on a single transition.
IA Q refines IA P if Q provides the services of P;
it can have more inputs but no more output actions.
As such, a refinement of an IA does not constrain the
environment more than the original IA does.
2.2 Hybrid Automata
A hybrid system is a dynamical system with both dis-
crete and continuous components. Hybrid automata
(Henzinger, 1996) are a model of hybrid systems.
Definition 2. A hybrid automaton H consists of the
following components.
(1) Variables. A finite set X = {x
1
,...,x
n
} of real-
numbered variables. The number n is called the di-
mension of H. We write X
0
for the set {x
0
1
,...,x
0
n
} of
primed variables (which represent values at the con-
clusion of change).
(2) Q is a finite set of states.
(3) q
0
∈ Q is the initial state.
(4) φ
init
∈ Φ(X) is the initial condition.
HYBRID ZIA AND ITS APPROXIMATED REFINEMENT RELATION
261