Check out the new USENIX Web site. next up previous
Next: Validation of a Message Up: Validation Class Previous: IBDLObject Class

Validation Code for a Message Declaration

Every message declaration with a behavior description is translated into a code which has a generic part that does the general book-keeping of storing parameters, return values and/or exceptions and a specific part that implements the behavior specification. Below, we discuss the specific part related to implementing the behavior specification.

The specific part has 3 methods (or functions) - enabled, interpretation, isNormal corresponding to the enables/disables, interpretations and the defined by clauses, respectively, of a specification. These methods are for validating subsequent messages, and they are defined below :

The specific part also has a boolean method validate that first checks if the message, given the history, behaves as expected. It raises an error, indicating a failure of the test if

The IBDL expressions used in the predicates are translated accordingly so that the above methods can be evaluated. A part of the generated class for the Account interface as specified in Section 2 is given in Fig. 2.


next up previous
Next: Validation of a Message Up: Validation Class Previous: IBDLObject Class
Sreenivas Viswanadha
1998-03-17