Next: Interface Examples, Up: Creating an Interface [Contents][Index]
The ’interface’ keyword is used to declare an interface, followed by the interface name.
Within the interface declaration, a list of in and out events is defined followed by a behaviour declaration.
interface IntName
{
in type inEvent1(); // list of in events
in type inEvent2();
/* ... */
out void outEvent1(); // list of out events
out void outEvent2();
/* ... */
behaviour // contract; protocol description
{ /* ... */ }
}