Next: , Up: Creating an Interface   [Contents][Index]


3.2.1 Interface Syntax

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
   { /* ...  */ }
}