All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface vnet.remote.VirtualNetIntf

public interface VirtualNetIntf
extends Remote
Interface for a virtual net remote. The virtual net doesn't need to implement this interface, it is only for the VirtualNetRemote, whose purpose is to allow a remote interaction with the virtual net.

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

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)

Methods

 o addNode
 public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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