|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object urv.emulator.VirtualAddressGenerator
public class VirtualAddressGenerator
This class generates InetAddresses for the simulation
Constructor Summary | |
---|---|
VirtualAddressGenerator()
|
Method Summary | |
---|---|
java.net.InetAddress |
createEmuInetAddress(int nodeNumber)
Provides a new emulated address to a new node in the simulation InetAddress and hostname are created |
java.net.InetAddress |
getEmuInetAddress(int nodeNumber)
Returns an already created Emulated InetAddres |
java.net.InetAddress |
getInetAddress(Node nodeNumber)
Returns the InetAddress of the node from the given node number |
Node |
getNodeNumber(java.net.InetAddress addr)
Returns the node number of the node from the given InetAddress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VirtualAddressGenerator()
Method Detail |
---|
public java.net.InetAddress createEmuInetAddress(int nodeNumber)
nodeNumber
- The number of the node in the simulation
public java.net.InetAddress getEmuInetAddress(int nodeNumber)
public java.net.InetAddress getInetAddress(Node nodeNumber)
nodeNumber
-
public Node getNodeNumber(java.net.InetAddress addr)
addr
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |