Sample specifications in LePUS3 and Class-Z:

Java's Remote Method Invocation (RMI)

This page demonstrates how to combine constants and variables LePUS3 to specify application frameworks

Links

Java's Remote Method Invocation (RMI) mechanism allows objects of one program to invoke methods in objects that belong to programs that are not executed on the same machine. Sun's documentation of Java RMI includes the following statement:

A remote interface must extend, either directly or indirectly, the interface java.rmi.Remote.

We use this statement to demonstrate how variables are used in LePUS3 to model yet-to-be implemented classes and their relations to existing classes. To model this statement we use a combination of a 0-dimensional class constant (java.rmi.remote), which stands for an existing class (java.rmi.Remote), and a 0-dimensional class variable () which stands for the class that the user must implement.

Java RMI
A remote interface must extend, either directly or indirectly, the interface java.rmi.Remote (legend)