All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnet.remote.VirtualNetRemote

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject
                           |
                           +----vnet.remote.VirtualNetRemote

public class VirtualNetRemote
extends UnicastRemoteObject
implements VirtualNetIntf
Class implementation for a virtual net remote. The purpose of this class is to allow a remote interaction with the virtual net.

Version:
0.1, august-1997
Author:
LuisM Pena
See Also:
VirtualNet, NetLayout

Constructor Index

 o VirtualNetRemote(VirtualNet)

Method Index

 o addLink(LinkId, NodeId, NodeId)
Inserts a new link in the net, with the default delay
 o addLink(LinkId, NodeId, NodeId, long)
Inserts a new link in the net, with the default delay
 o addNode(NodeId)
Inserts a new node in the net, with the default delay
 o addNode(NodeId, long)
Inserts a new node in the net, with the specified delay
 o build(String)
Building of the net from a string
 o getName()
Gives the name of the net
 o removeLink(LinkId)
Removes a Link out of the net.
 o removeNode(NodeId)
Removes a Node out of the net.
 o setNetDelay(long)
Sets an additional delay that applies to every message operation between nodes (and links)

Constructors

 o VirtualNetRemote
 public VirtualNetRemote(VirtualNet net) throws RemoteException
Parameters:
net - The virtual Net connected to this class
Throws: RemoteException
mandatory for remote objects

Methods

 o addNode
 public void addNode(NodeId id) throws VNException, RemoteException
Inserts a new node in the net, with the default delay

Parameters:
id - the Node identity
Throws: VNException
if the NodeId has already been added to the net
Throws: RemoteException
mandatory for remote objects
See Also:
NetLayout
 o addNode
 public void addNode(NodeId id,
                     long Delay) throws VNException, RemoteException
Inserts a new node in the net, with the specified delay

Parameters:
id - the Node identity
delay - the expected delay
Throws: VNException
if the NodeId has already been added to the net
Throws: RemoteException
mandatory for remote objects
See Also:
NetLayout
 o removeNode
 public void removeNode(NodeId id) throws VNException, RemoteException
Removes a Node out of the net.

Parameters:
id - the Node identity
Throws: VNException
if the NodeId doesn't allow to the net
Throws: RemoteException
mandatory for remote objects
See Also:
NetLayout
 o addLink
 public void addLink(LinkId id,
                     NodeId idA,
                     NodeId idB) throws VNException, RemoteException
Inserts a new link in the net, with the default delay

Parameters:
id - the Link identity
idA - any of the two nodes associated to this link
idB - the another node
Throws: VNException
if the LinkId has already been added to the net, or if the nodes don't allow to the net.
Throws: RemoteException
mandatory for remote objects
See Also:
NetLayout
 o addLink
 public void addLink(LinkId id,
                     NodeId idA,
                     NodeId idB,
                     long Delay) throws VNException, RemoteException
Inserts a new link in the net, with the default delay

Parameters:
id - the Link identity
idA - any of the two nodes associated to this link
idB - the another node
delay - the expected delay
Throws: VNException
if the LinkId has already been added to the net, or if the nodes don't allow to the net.
Throws: RemoteException
mandatory for remote objects
See Also:
NetLayout
 o removeLink
 public void removeLink(LinkId id) throws VNException, RemoteException
Removes a Link out of the net.

Parameters:
id - the Link identity
Throws: VNException
if the LinkId doesn't allow to the net or the destroy() NetLink method fails
Throws: RemoteException
mandatory for remote objects
See Also:
NetLayout
 o build
 public void build(String buildString) throws VNException, RemoteException
Building of the net from a string

Parameters:
buildString - the input stream
Throws: VNException
if the string format is not valid, or any of the operations produced raises the exception.
See Also:
BuildNetLayout
 o setNetDelay
 public void setNetDelay(long Delay) throws RemoteException
Sets an additional delay that applies to every message operation between nodes (and links)

Parameters:
delay - the delay in milliseconds
Throws: RemoteException
mandatory for remote objects
See Also:
NetLayout
 o getName
 public String getName() throws RemoteException
Gives the name of the net

Returns:
the name of the virtual net
Throws: RemoteException
mandatory for remote objects

All Packages  Class Hierarchy  This Package  Previous  Next  Index