ist.palcom.routing.util
Class DSDVPeer

java.lang.Object
  extended by ist.palcom.collections.Link
      extended by ist.palcom.routing.util.DSDVPeer

public class DSDVPeer
extends Link

DSDV-Peer


Constructor Summary
DSDVPeer(URN routingURN, Selector routingSelector, URN nextHopURN, Selector nextHopSelector, int metric, int seq_nr)
           
 
Method Summary
 DSDVPeer copy()
           
 int getMetric()
           
 Selector getNextHopSelector()
           
 URN getNextHopURN()
           
 Selector getRoutingSelector()
           
 URN getRoutingURN()
           
 int getSequenceNumber()
           
 int getStatus()
           
 boolean isActive()
           
 java.lang.String marshall()
          Marshalling
 void setIsActive(boolean active)
           
 void setMetric(int new_metric)
           
 void setNextHop(URN nextHopURN, Selector nextHopSelector)
           
 void setSequenceNumber(int new_seqnr)
           
 void setStatus(int newstatus)
           
 java.lang.String toString()
           
static DSDVPeer unmarshall(java.lang.String input)
          Unmarshalling
 
Methods inherited from class ist.palcom.collections.Link
getNext, getPrev
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DSDVPeer

public DSDVPeer(URN routingURN,
                Selector routingSelector,
                URN nextHopURN,
                Selector nextHopSelector,
                int metric,
                int seq_nr)
Method Detail

getRoutingURN

public URN getRoutingURN()

getRoutingSelector

public Selector getRoutingSelector()

getNextHopURN

public URN getNextHopURN()

getNextHopSelector

public Selector getNextHopSelector()

setNextHop

public void setNextHop(URN nextHopURN,
                       Selector nextHopSelector)

getMetric

public int getMetric()

setMetric

public void setMetric(int new_metric)

getSequenceNumber

public int getSequenceNumber()

setSequenceNumber

public void setSequenceNumber(int new_seqnr)

getStatus

public int getStatus()

setStatus

public void setStatus(int newstatus)

copy

public DSDVPeer copy()

setIsActive

public void setIsActive(boolean active)

isActive

public boolean isActive()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

marshall

public java.lang.String marshall()
Marshalling

Returns:
String

unmarshall

public static DSDVPeer unmarshall(java.lang.String input)
Unmarshalling

Parameters:
input - The String from the marshalling
Returns:
DSDVPeer