> 14th August 1997             Antwerpen

VirtualNet (over RMI)

Interface

 

Despite the fact that there are two versions of VirtualNet, the local and the remote, there is a shared interface, defined by the classe vnet.NetLayout. This interface allows mainly to:

In the operations on this NetLayout, it is also possible to define a delay general and also particular delays for each node and each link; this delay would be the equivalent to the inherent delay on any net.

The class vnet.BuildNetLayout allows the construction of a net from a string. This string indicates the nodes and links to be created (or to be destroyed).

The server operations: [bind, rebind, unbind, lookup] are defined in the local and remote version of VirtualNet. The remote version tries to be transparent with respect to the java.rmi.Naming interface and it defines the same functionality, even it is defined the method list, with the same exceptions. These operations are:

For the remote version, this interface is given by vnet.remote.HostImpl, a RMI server. The class vnet.remote.VirtualNet is not a remote server; to make it possible to modify the net layout, there is a class, vnet.remote.VirtualNetRemote that allows to do the NetLayout operations using RMI.