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
-
VirtualNetRemote(VirtualNet)
-
-
addLink(LinkId, NodeId, NodeId)
- Inserts a new link in the net, with the default delay
-
addLink(LinkId, NodeId, NodeId, long)
- Inserts a new link in the net, with the default delay
-
addNode(NodeId)
- Inserts a new node in the net, with the default delay
-
addNode(NodeId, long)
- Inserts a new node in the net, with the specified delay
-
build(String)
- Building of the net from a string
-
getName()
- Gives the name of the net
-
removeLink(LinkId)
- Removes a Link out of the net.
-
removeNode(NodeId)
- Removes a Node out of the net.
-
setNetDelay(long)
- Sets an additional delay that applies to every message operation between nodes
(and links)
VirtualNetRemote
public VirtualNetRemote(VirtualNet net) throws RemoteException
- Parameters:
- net - The virtual Net connected to this class
- Throws: RemoteException
- mandatory for remote objects
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
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
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
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
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
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
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
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
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