|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.Node
public final class Node
The main class
Method Summary | |
---|---|
java.lang.Object |
clone()
Implementation of the singleton design pattern. |
void |
forwardMessage(java.net.InetAddress sourceAddress,
Message message)
The method evaluates if the incoming message should be forwarded, and acts accordingly. |
int |
getAMessageSequenceNumber()
The method returns the next message sequence number to be used. |
java.util.ArrayList<java.net.InetAddress> |
getGateways()
The method gets the gateways attached to the node. |
java.util.ArrayList<Interface> |
getInterfaces()
Returns the Interfaces |
int |
getIpVersion()
The method gets the IP version used (either 4 or 6). |
java.util.ArrayList<java.net.InetAddress> |
getMprs()
The method return the MPRs |
static Node |
getNode()
Implementation of the singleton design pattern |
java.net.InetAddress |
getOriginatorAddress()
The moethod gets the address used as originator address on the node |
Values |
getWillingness()
The method return a node's willingness |
static void |
main(java.lang.String[] args)
The main method. |
void |
populateDerivedSets()
The method populates the derived sets, meaning: RelaySet AdvertisedNeighbourSet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Node getNode()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.util.ArrayList<java.net.InetAddress> getMprs()
public java.util.ArrayList<Interface> getInterfaces()
public void populateDerivedSets()
public int getAMessageSequenceNumber()
public Values getWillingness()
public void forwardMessage(java.net.InetAddress sourceAddress, Message message)
sourceAddress
- the address of the interface receiving the messagemessage
- the messagepublic java.net.InetAddress getOriginatorAddress()
public static void main(java.lang.String[] args)
args
- public int getIpVersion()
public java.util.ArrayList<java.net.InetAddress> getGateways()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |