[5]
DejaVU Online:
Principles of Object-Oriented Software Development
(©)
object-oriented =
objects + classes + inheritance
An example of the declaration of an active object in sC++ is given in slide ex-active.
active class S {
public:
m () { ... }
private:
@S () { pseudo-constructor
select {
01 -> m(); external call
instructions ...
||
accept m; accept internal method
instructions ...
||
waituntil (date); time-out
instructions ...
||
default default
instructions ...
}
}
}
The sC++ language is implemented as an extension to the GNU C++ compiler.
The sC++ runtime environment offers the possibility
to validate a program by executing random walks,
which is a powerful way to check the various synchronization conditions.
The model of active objects supported by sC++
has also been realized as a Java library, see
As argumented in
|
Hush Online Technology
hush@cs.vu.nl
12/29/99 |
|
|